Does anyone know if it’s possible to get something...
# intellij
f
Does anyone know if it’s possible to get something similar to
androidx.annotation.FloatRange
to work in IntelliJ? By work I mean the IntelliJ linter to pick up on incorrect arguments. E.g.
@FloatRange(from = 0.0, to = 1.0)
w
It does pick up this for me. I’m using IntelliJ with Android plugin enabled, and I believe it’s the Lint check integration
fixed argument type
f
@wasyl Thanks for the feedback. I'm testing using the community edition. I will check regarding the Android plugin (it's not an android project in this case).
w
androidx.annotation.*
annotations are picked up by Android Lint integration in IJ, as far as I understand. Perhaps there is a
org.jetbrains.annotations.*
equivalent that IJ understands natively
f
I need to debug why it doesn't pick up in my case. But this is great news 🙂 Thanks
@wasyl does it work in a non-android project though? 🙂 Regular gradle project (e.g spring)
w
Sorry I don’t know, by
android plugin enabled
I meant I have an android project 😕
f
I understand. Thanks for checking 🙂
w
I think you can open an issue on Youtrack, this seems like a useful check, and perhaps someone will point you to a currently working solution
👍 1