Skip to end of metadata
Go to start of metadata

Description / Features

The plugin provides coding rules from StyleCop (at least version 4.7).

It is compatible with the C# plugin.

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

You also have to install StyleCop (at least version 4.7) and MSBuild (any version) on the machine(s) running the SonarQube analyses and set the path to:

  • MSBuild.exe via Settings > General Settings > C# > StyleCop > Path to MSBuild.exe or in your sonar-runner.propeties files if the installation path differs from one machine to another

  • StyleCop.dll via Settings > General Settings > C# > StyleCop > Path to StyleCop.dll or in your sonar-runner.propeties files if the installation path differs from one machine to another

Usage

If you have installed the Analysis Bootstrapper for Visual Studio Projects Plugin, then you just need to activate in your quality profile some rules provided by StyleCop and run a new analysis of your project.

Custom rules

Custom StyleCop rules are supported by the rule template "Template for custom StyleCop rules" (CustomRuleTemplate).

  • No labels