Message-ID: <1656400880.3249.1411338304050.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3248_458804230.1411338304049" ------=_Part_3248_458804230.1411338304049 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
To use FxCop and Gendarme, your .NET solution must be compiled. It is no= t necessary when using StyleCop.
FxCop needs to be installed. For Gendarme and StyleCop, versions em= bedded in the SonarQube plugins are used by default.
There are two different ways to feed the SonarQube platform with i= ssues coming from these external tools:
Log in as a System administrator and go to Settings > General=
Settings > .NET FxCop or .NET Gendarme or
This is the default mode.
There is no additional configuration. Just run a SonarQube analysis and = you'll get issues coming from these external tools.
To activate this mode, add the following lines to your analysis configur= ation file:
Then, you just need to provide SonarQube with the reports:
sonar.gendarme.confidence property. Possible values=
low / normal / high / total with + / -. Default value is=
sonar.fxcop.assemblyDependencyDirectories property =
to a comma-separated list of path patterns to locate the directories=
containing the dependency assemblies. Paths are relative to the folders co=
ntaining the ".csproj" files.
With FxCop, it is the default behavior (
For all the tools, you can also use the Switch Off Violations plugin.
sonar.stylecop.analyzers.settings property to the f=
ile that holds additional settings for StyleCop. The path is relative to th=
e folders containing the ".csproj" files.
This settings files will not be used to specify the active rules. Only s= ettings such as "expected header contents", company names and so = on will be used during the analysis.
sonar.<tool>.timeoutMinutes property (default=
value is 10).
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&quo= t; whereas the real code that matters does not contain any defects. In orde= r to avoid these false positives, you have two options:
On an ASP.NET project you may configure the Switch Off violations plugin= as follows: