android studio - Kotlin suppress 'condition is always true' -
wasting more time scouring through countless number of inspections (which know how enable , disable), cannot find way disable particular inspection of 'condition true'
kotlin (not java) file in android studio. know i'm doing , don't need inspection @ all, more appropriately, i'd suppress file or class or function or anything.
incredibly frustrating, always.
//i'm aware condition below true if(android_sucks) { fml() }
in android studio,
- put text cursor in condition you'd suppress,
- press alt+enter on keyboard , pops up:
💡 simplify expression ⯈
- press right arrow on keyboard,
select of options like, example:
- disable inspection
- suppress 'constantconditionif' statement/fun/class/file
Comments
Post a Comment