androidandroid-studiosonarlintandroid-studio-plugin

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


Solution

  • 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.