Tuesday 16 August 2016

SonarQube setup

SonarQube (formerly Sonar) is an open source platform for continuous inspection of code quality.

Step1: download sonar and extract zip file
Step2: run StartSonar(which can be found in bin directory)
Step3: open browser and enter localhost:9000, then you should able to see sonar home page.
Step4: open your project pom.xml path in cmd and enter mvn sonar:sonar
Step5:after mvn sonar:sonar you can see project sonar issues in web(ie localhost:9000)

Default login:
user:admin
pwd:admin

Note: Rules has to be uploaded(or created) before runing mvn sonar:sonar.Rules has to uploaded in Quality profile.