Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

There are two different ways to feed the SonarQube platform with issues coming from these external tools:

  1. Letting Let the SonarQube platform drive the execution of the external tools
  2. 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 > Configuration > General Settings > .NET FxCop or .NET Gendarme or C# StyleCop. For each tool, set the path to its installation directory through the sonar.<tool>.installDirectory properties.

...

Set 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.

...

Set the 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:

Code Block
languagenone
**/*.aspx.cs;gendarme:AvoidVisibleFieldsRule;*
**/*.ascx.cs;gendarme:AvoidVisibleFieldsRule;*