There are two different ways to feed the SonarQube platform with issues coming from these external tools:
- Letting Let the SonarQube platform drive the execution of the external tools
- Reusing Reuse reports that have been generated by these external tools prior to the SonarQube analysis
Log in as a System administrator and go to Settings > General Settings > .NET FxCop or .NET Gendarme or C# StyleCop. For each tool, set the path to its installation directory through the
sonar.fxcop.assemblyDependencyDirectories property to a comma-separated list of paths path patterns to locate the directories containing the dependency assemblies. Paths are relative to the folders containing the ".csproj" files.
sonar.<tool>.timeoutMinutes property (default value is 10).
I get many false positives for
the Gendarme rule AvoidVisibleFieldsRule
This rule works at the class level. If you are working on a Windows form or ASP.NET project, you may have many partial classes. The code generated in the "designer" parts may contain many "visible fields" whereas the real code that matters does not contain any defects. In order to avoid these false positives, you have two options:
On an ASP.NET project you may configure the Switch Off violations plugin as followfollows: