Building, Testing and Debugging the SonarQube plugin
December 4, 2024 ยท View on GitHub
Setup your Java environment
- Install the Java Development Kit (JDK) version 11 or later (make sure it's an LTS version) - you can install it from here
- Install IntelliJ IDEA Community Edition
- Install Apache Maven
- Setup the Maven Settings (internal link)
- Setup the Orchestrator (internal link)
Working with the code
- Clone this repository
- Build the plugin
dotnet build .\analyzers\SonarAnalyzer.slnmvn clean install
Developing with Eclipse or IntelliJ
When working with Eclipse or IntelliJ please follow the sonar guidelines
Running Tests
As for any maven project, the command mvn clean install automatically runs the unit tests.
Contributing
Please see the How to contribute section for details on contributing changes back to the code.