Enable a disabled SonarLint rules in Android Studio


I accidentally disable one of SonarLint plugin rules in Android Studio and I tried to open its settings but cannot see where I can re-enable it.

enter image description here

enter image description here


In Android Studio, go to Settings > Tools > Sonarlint > Rules.

You should see disabled rules are colored.

You can restore all rules by Restore Defaults or just enable the rules one by one.

Hope it helps.

Answered By – ocos

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published