Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.45 KB

contributing-plugin.md

File metadata and controls

36 lines (21 loc) · 1.45 KB

Building, Testing and Debugging the SonarQube plugin

Working with the code

First or all you need to clone SonarC# repository: https://github.com/SonarSource/sonar-csharp.git.

SonarC# plugin relies on some metadata generated by the dotnet analyzer (part of the msbuild compilation).

To build the plugin by embedding the dotnet analyzer that was built locally, use the following command:

mvn clean install -P local-analyzer -D analyzer.configuration=Debug

The other alternative is to rely on an already built version of the analyzer using the following command:

mvn clean install -P download-analyzer -D analyzer.version=6.1.0.2070

This option is useful for developers in Unix, who don't build the C# analyzer themselves, because they work on other parts of the plugin.

External users can rely only on public versions hosted in maven org.sonarsource.dotnet:SonarAnalyzer.CSharp

Developing with Eclipse or IntelliJ

When working with Eclipse or IntelliJ please follow the guidelines from this page: https://github.com/SonarSource/sonar-developer-toolset

Running Tests

Commands described in working with the code section will automatically run the unit tests. To run the ITs, from your command prompt, go to its folder and run mvn clean install.

Contributing

Please see Contributing Code for details on contributing changes back to the code.