Sonargraph Integration Plugin
- License: Apache License 2
- Author: hello2morrow
Compatible with Sonargraph 8.7 and higher versions. Requires Java 8 runtime. Currently only supports Sonargraph systems containing Java modules.
Check the GitHub Wiki for information about compatibilities with SonarQube versions and Sonargraph versions.
Description / Features
This plugin for SonarQube can be used to check the conformance of your code base to a formal architecture definition created with Sonargraph version 8.7 and higher. A free license is available to allow you to check and measure the overall coupling and the level of cyclic dependencies at the package level. This license can be requested on the website of Sonargraph Explorer. Usually a high level of coupling and cyclic dependencies points to a high level of structural erosion. If structural erosion grows over a certain level this will have a negative impact on testability, maintainability and comprehensibility of your code.
A detailed description of the capabilities and configuration can be found here: http://eclipse.hello2morrow.com/doc/build/content/sonarqube_integration.html
- Download the latest SonarQube version.
- Download the latest Sonargraph plugin and copy it into <sonarqube-inst>/extensions/plugins (or use the Update Center, once it is available there).
- Start the SonarQube server.
- Use the built-in Sonargraph quality profile or add individual "Sonargraph Integration" rules to the profile you want to use. Assign your project to this profile.
- For the full functionality of Sonargraph, you need an "Architect" license. If you don't have one, just register on our hello2morrow web site and request a trial license.
Alternatively, use a free Sonargraph Explorer license with reduced feature set (no architecture checks, no scripts execution, etc.)
- Configure your build to run SonargraphBuild prior to the SonarQube scanner.
Check the online documentation of SonargraphBuild. There are specific chapters for the integration with Ant, Maven, Gradle and the command shell. Don't forget to configure the "prepareForSonarQube" flag!
There are various build files and batch files available that demonstrate how the analysis can be executed.
Example Maven command-line to create a report (check the online documentation for configuration details):
mvn clean package sonargraph:create-report
- Execute the build and check in the console log that the Sonargraph Integration plugin has been executed.
- If you have difficulties setting up the integration, check first the online documentation (it's searchable!). If that does not provide any answer, feel free to ask a question at the SonarQube Communit forum or directly to support at hello2morrow.com. It certainly helps us to help you, if you include the console log in the email.