Enable a disabled SonarLint rules in Android Studio

692 views Asked by At

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

1

There are 1 answers

0
ocos On BEST ANSWER

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.