Home > OS >  How can a disabled SonarLint rule be re-enabled in IntelliJ?
How can a disabled SonarLint rule be re-enabled in IntelliJ?

Time:09-26

I disabled a SonarLint rule in IntelliJ, and then decided that it was a mistake. I disabled the rule using the popup in the editor:

enter image description here

What is the easiest and safest way to re-enable the rule?

The file sonarlint.xml in ~/Library/Application Support/JetBrains/<product><version>/options/ (on Mac, similar for other platforms) holds the information about the disabled rules. I can probably edit it manually, but it would feel safer with a GUI tool to do it.

Is there a better way to re-enable the rule?

CodePudding user response:

I found it. The setting is in Preferences -> Tools -> SonarLint, and NOT in the sub-section Tools -> SonarLint -> Project Settings, where I had looked previously.

Easiest in my case, was to filter the settings by "Show Only Changed":

enter image description here

  • Related