Wasting more time scouring through the COUNTLESS number of inspections (which I know how to enable and disable), I cannot find ANY way to disable the particular inspection of 'Condition is always true'
for my Kotlin (not Java) file in Android Studio. I know what I'm doing and don't need this inspection AT ALL, but more appropriately, I'd like to suppress it for the file or class or function or ANYTHING.
Incredibly frustrating, as always.
//I'm well aware the condition below is ALWAYS true
if(ANDROID_IS_AWESOME) {
fml()
}
Found it:
Settings > Editor > Inspections > Kotlin > Redundant Constructs > Condition of 'if' expression is constant