Open duncanp-sonar opened 4 years ago
Since SLVS still does not use the SonarQubeExclude
property, is there any other way we can force SonarLint to ignore certain projects within Visual Studio?
Context: We have 1 project which contains externally generated code and causes SonarLint to drop about 800 warnings. Would be great if we remove this clutter.
@MrDark if you're using standalone mode then you could use the normal VS ruleset configuration features to create a ruleset that disables all of the rules and reference it from the project that you want to exclude. See the wiki page for more pointers.
If you have further questions about the configuration please open a thread in the community forum - that's a better place to ask support questions.
Description
The SonarScanner for MSBuild ("S4MSB") has a number of properties that affect the issues that are reported to SonarQube/SonarCloud e.g.
SonarQubeExclude
andSonarQubeTestProject
.SLVS does not use these properties, leading to differences between the issues reported in the IDE and issues reported on the server.
Workaround
VS2019 supports disabling live analysis on a per-project basis as a built-in feature. See the MS docs.
Note: postponed pending upcoming work on "Tests as first class citizens"
TODO: