Troy Perales
10/10/2022, 3:18 PMVariable 'someVariable' is never used
in Kotlin files?
When I look at the suppress options, the value tied to this inspection is UNUSED_VARIABLE
but I can’t find the actual inspection that maps to. I’ve tried running the “Kotlin | Redundant constructs | Unnecessary local variable” inspection but it doesn’t detect any. I’ve even ran the full, default “Inspect Code…” analysis and don’t see the same “never used” warnings I see in the “Problems” window when I open the file directly.
Ultimately, I’m trying to get the same output for unused local variables in the “Problems” window as I would running any inspection.