How to configure the rule set of SonarLint in Visual Studio Code?

ShellZero picture ShellZero · Apr 4, 2018 · Viewed 8k times · Source

I have installed sonar lint extension on my visual studio code editor and I was wondering if there is a way to enable or disable the rules which are used by the analyzer? There is a way to do it in Visual Studio and Eclipse but I couldn't find a way to enable or disable the rules on Visual Studio Code.

I do have SonarQube running on my local server where I can disable and enable the rules from the Admin UI page. If there is a way to configure the SonarLint with the server, that would be cool. But I am not sure how to do it. If anyone does, please point me in a right direction.

Answer

ShellZero picture ShellZero · Apr 4, 2018

Currently there is no way to use the connected mode which allows the user to configure (enable/disable) the rules on the SonarLint.

According to the discussion on the SonarLint Google Group.

It's very likely that this feature will be added soon (within the year), as we already started developing it for other flavors of SonarLint (Eclipse).

This feature is currently in work in progress and can be tracked here