SonarQube Setup

Category: /blog /programmer
Tags: programmer sonar

SonarQube is an open platform to manage code quality. SonarQube will be used locally to measure the quality of the code being written. The code quality will be measured based on

  1. Java code violations. SonarQube has a set of rules that determine the code violation. These are based upon
  • Java coding rules
  • Static code analysis to identify bugs - based on FindBugs (an open source
  • project).
  1. Unit test coverage. While Eclips gives unit test code coverage measurements, it does not retain history of the resutls. SonarQube retains history of the code coverage results, allowing the develpers to focus on improving code coverage on a regular or daily basis.

Add a project to SonarQube local server report

Maven build goal: mvn clean install sonar:sonar

Command shortcut

In Windows, C:\app\sonarqube-x.x\bin\windows-x86-64\StartSonar.bat

SonarQube console

http://localhost:9000

Default login: admin/admin

Resource

http://www.sonarqube.org/downloads/

评论

提示

  • 如果看不到评论部分, 请暂时关掉adblock in Firefox/Chrome
  • 本网站使用Javascript实现评论功能, 此处外链对提高您的网站PR没有帮助. (潜台词: 请不要灌水, 谢谢)