This explains how to configure SonarQube plugin eclipse and IntelliJ, so that developers don't need to move away from the IDE in order to find and fix any code quality issues.
You either can do the analysis connecting to the remote Sonar server which Apache Stratos, or else run your own Sonar instance locally, configured with the same 'Quality Profile' used for remote analysis. It is advisable to analyse the code, either remotely or locally, before committing any new code, in order to maintain a high code quality of Apache Stratos.
Apache SonarQube server URL,
Here we explain how to setup a local SonarQube server. Remote analysis may take time in cases where you analyze multiple projects at once. In that case other option to follow is to run the Sonar server in your local machine.
This will start the SonarQube server and you can access the the web console with http://localhost:9000/
Through web console install following plugins
Settings → Update Centre→ Available Plugins
You may have to restart Sonar server after each plugin installation.
In order to be consistent, the same Quality Profile which is being used in remote analysis should be used for local analysis
Verify that 520 rules are associated with the newly added profile
Note: Ideally there should be 524 rules, but 4 rules got excluded due to a Sonar issue
In order to analyse the project from your IDE, a corresponding project needs to be created in your local SonarQube server.
This will run the analysis for the first time and will create a project in your local sonar server with the name of the component.