Once the Rule is Deactivated in Sonarqube, Same not Disabled in SonarLint

Hi Team,

We are using Sonarqube OSS 8.6 version , and Sonarlint 5.8.1 has been integrated with Eclipse 2020-09.

I have deactivated the Javascript rule which is “The Ternary operator should not be used” from my Quality Profile and same rule is not disabled in my SonarLint.
Could you please let me know whether i need to restart Sonarqube or what are all the steps i have to perform to disable the rule in SonarLint.


Hi @venkat_one - welcome to the community!

Out of the box, SonarLint will work in “standalone mode” i.e. it will use a default set of rules when analysing code in the IDE.

If you have a SonarQube/SonarCloud server and want to use the same set of rules in the IDE as are configured on the server you can configure SonarLint to use “Connected Mode” i.e. you point SonarLint at the server and tell it which project to bind to. SonarLint will then synchronize the local settings with the server settings.

Additionally, after changing a rule activation on the SonarQube server, you’ll want to “Update All Project Bindings” to get the new version of the Quality Profile from the server.

1 Like

Hi JBL/Duncanp,

Thanks for your reply. Could you please let me know how to update the project bindings in VS code to reflect the updated Quality Profile.


In VSCode, this action is available in the command palette: “View” > “Command Palette…” > “SonarLint: Update all project bindings to SonarQube/SonarCloud”

Screenshot from 2021-03-24 11-49-20

Please note that in VSCode, you have to configure:

  • sonarlint.connectedMode.connections.sonarqube in the user-level settings (with the authentication token)
  • sonarlint.connectedMode.project in the workspace- or folder-level settings (with the project key)
1 Like

Thank You JBL

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.