Skip to end of metadata
Go to start of metadata

Name

Key

Default value

Description

StyleCop install directory

sonar.stylecop.installDirectory

C:/Program Files/Microsoft StyleCop 4.4.0.14 (until version 1.4)
C:/Program Files/StyleCop 4.7 (for version 1.4+)

Absolute path of the StyleCop program install directory.

StyleCop program timeout

sonar.stylecop.timeoutMinutes

10

Maximum number of minutes before the StyleCop program will be stopped.

StyleCop activation mode

sonar.stylecop.mode

 

Possible values : empty (means active), 'skip' and 'reuseReport'.

Name of the StyleCop report files

sonar.stylecop.reports.path

 

Name of the StyleCop report file used when reuse report mode is activated. This can be an absolute path, or a path relative to each project base directory.

Warning

Each time you need to specify a path, or a pattern to locate files, use "/" instead of "\"

 

Advanced Parameters

Name

Key

Default value

Description

StyleCop analyzers settings

sonar.stylecop.analyzers.settings

 

Path to a StyleCop configuration file that holds additional settings for StyleCop analyzers. This settings files will not be used to specify the active rules. Only settings such as "expected header contents", company names and so on will be used during the analysis.
The path is relative to the root of the project, where the csproj file is located. If you need to specify a path relative to the solution root, where the sln file is located, you can use expression $(SolutionDir). 

Labels
  • None