How to enable/disable any rule from SonarLint in Eclipse

You want to use the connected mode in order to apply the same ruleset on your IDE that the one running on your SonarQube instance. Have a look at the relevant documentation : http://www.sonarlint.org/eclipse/#Connected


In your Java code, you can disable a specific rule for a single method using annotations:

@java.lang.SuppressWarnings("java:S2699") 

I thought I would leave this up here for anyone looking.....

To Disable/Re-Enable Rules in SonarLint/Eclipse. -Window-Preferences-SonarLint-Rules Configuration. -Select Your Language(in my case Java). -Select the drop for changed rules or open the + symbol to show all rules.