Can I customize the rule set used for SonarLint

Can I disable / enable the ruleset shown by SonarLint for VS? How? A similar question has already been asked. Is there any graphic way to create my own configuration file on SonarLint? , but I could not fulfill the answer, i.e. I did not find Project / References / Analyzers node in Solution Explorer to be able to edit the active rule set file. Can you help me on this?

+5
source share
1 answer

Here's how to open an active set of project rules:

How to open Active Rule Set from Solution Explorer in VS2015

From there, you can enable and disable the rules:

Google Rules in VS2015

The path to the rule set file to be used is saved in your .csproj file under the <CodeAnalysisRuleSet>...</CodeAnalysisRuleSet> . You can link to the same rule set file from multiple projects and store the rule set with the project sources in Git / TFVC if you want all developers to use the same rule set.

+8
source

Source: https://habr.com/ru/post/1233521/


All Articles