Previously, the Lint rules would underline the entire class in Android Studio. This was visible, but somewhat distracting, and could cover up other Lint issues.
This commit makes two changes:
Only highlight the offending class/constructor in the Android Studio
When the Lint violation relates to a constructor as opposed to a class, highlight the constructor itself.
Thanks to @scana for identifying the problem and solution space
Testing
To simplify testing, I created a copy of the rule called ValidConductorController, so I could A/B them using @SuppressLint("...").
Before
This is how the Conductor Lint rules currently materialize, over the entire "node":
After
With the updates, the squiggly error line only shows up under the constructor or class name, as appropriate:
What is this?
Previously, the Lint rules would underline the entire class in Android Studio. This was visible, but somewhat distracting, and could cover up other Lint issues.
This commit makes two changes:
Thanks to @scana for identifying the problem and solution space
Testing
To simplify testing, I created a copy of the rule called
ValidConductorController
, so I could A/B them using@SuppressLint("...")
.Before
This is how the Conductor Lint rules currently materialize, over the entire "
node
":After
With the updates, the squiggly error line only shows up under the constructor or class name, as appropriate: