SonarQube Tutorial

SonarQube Tutorial explains about how to install /configure SonarQube server for continuous integration and improving code quality.

SonarQube (previously known as Sonar) is an open source platform for Continuous Inspection of code quality. It is written in java and supported for 25+ languages such as Java, C/C++, C#, PHP, Flex, Groovy, JavaScript, Python, PL/SQL, COBOL, etc, it is also used for Android Development

It helps for various tasks and provide reports on duplicated code, coding standards, unit tests, code coverage, complex code, potential bugs, comments and design and architecture.

SonarQube is internally using PMD,Findbugs,CheckStyle etc. You can add additionally plugins according to your requirement


You can also check about configuring SonarQube plugin with Eclipse Eclipse Sonar Tutorial

Setup / Configure Sonar

SonarQube Installation Steps:

You can follow below steps in order to installing Sonar Java Code Analysis Tool. Which will dramatically imporve code quality.

Install Sonar Server

Sonar Server Started

Sonar Server Running

Now, You can see sonar server is started

  1. Copy and unzip and
  2. Start the Sonar server using the script available in SONAR_HOME\bin\windows-x86-32\StartSonar.bat (OS dependent)
  3. After starting the server you can browse to http://localhost:9000

Creating Project & Analysing Using Sonar

For setting environment variable, you can do following steps

Set Sonar Home Variable

1 2 Next

5 Responses to "SonarQube Tutorial"
  1. Nicole 2013-10-25 10:54:18.0
  1. admin 2013-10-26 10:54:18.0
  1. sravan 2013-10-27 09:54:18.0
  1. Priti 2013-10-28 09:54:18.0
  1. admin 2013-10-29 09:54:18.0

Your email address will not be published. Required fields are marked *