Skip to end of metadata
Go to start of metadata

Most of these options are only available since version 0.4

Standard

Below support/implementation status of standard maven and sonar parameters with maven/sonar for dotnet.

Key

Tool

Supported

Example

Description

sonar.importSources

sonar

yes

-Dsonar.importSources=false

hide sources

sonar.projectDate

sonar

yes

-Dsonar.projectDate=2008-02-23

inject hisorical data

sonar.exclusions

sonar

since 0.4

-Dsonar.exclusions=**/*Generated.cs

Source exclusion patterns

sonar.skippedModules

sonar

since 0.5

-Dsonar.skippedModules=CSharpProjectToExclude1,CSharpProjectToExclude2

Exclude a list of projects as if they were not part of the VS solution

sonar.includedModules

sonar

not supported

 

 

TBC

Gallio plugin

Key

Possible values

Default value

Description

sonar.dotnet.gallio

enable, skip, reuseReport

enable

Gallio activation mode. Gallio analysis may be skipped. Previously generated Gallio reports may also be reused

sonar.dotnet.gallio.reportPath

 

 

Paths to the gallio report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

Coverage plugin

Key

Possible values

Default value

Description

sonar.dotnet.coverage

enable, skip, reuseReport

enable

Coverage activation mode. Coverage analysis may be skipped. Previously generated reports may also be reused

sonar.dotnet.coverage.reportPath

 

 

Paths to the coverage report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

StyleCop plugin

Key

Possible values

Default value

Description

sonar.dotnet.stylecop

enable, skip, reuseReport

enable

StyleCop activation mode. StyleCop analysis can be skipped or existing reports may be reuse

sonar.dotnet.stylecop.reportPath

 

 

Paths to the stylecop report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

FxCop plugin

Key

Possible values

Default value

Description

sonar.dotnet.fxcop

enable, skip, reuseReport

enable

FxCop activation mode. FxCop analysis can be skipped or existing reports may be reuse

sonar.dotnet.fxcop.reportsPath

 

 

Paths to the fxcop reports when using the reuse report mode. Several reports may be specified using ';' as a delimiter. It is useful to be able to specify several reports for example when analysing a solution containing silverlight projects and plain old dotnet projects. Paths may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

Mono Gendarme plugin

Key

Possible values

Default value

Description

sonar.dotnet.gendarme

enable, skip, reuseReport

enable

gendarme activation mode. Gendarme analysis can be skipped or existing reports may be reuse

sonar.dotnet.fxcop.reportPath

 

 

Paths to the gendarme report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

sonar.dotnet.gendarme.confidence

[all | [[low | normal | high | total][+|-]]

normal+

Paths to the gendarme report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

sonar.dotnet.gendarme.severity

[all | [[audit | low | medium | high | critical][+|-]]]

all

Paths to the gendarme report when using the reuse report mode. Path may be relative to the target directory (maven generated directory child of the directory containing the sln file usually)

CPD plugin

Key

Possible values

Default value

Description

sonar.dotnet.cpd

enable or skip

enable

CPD activation mode. CPD analysis can be skipped.

sonar.dotnet.cpd.minimumTokens

 

50

Minimum number of token used to detect copy/paste code with CPD. See PMD documentation for more details

Labels
  • None