In this chapter, we will use SonarQube 6.3 for static code analysis. Go to https://www.sonarqube.org/downloads/ and download the latest version available:
- Extract files:
- Go to the
bin
directory and, based on the operating system and platform of the operating system, go to a specific directory:
- Execute
StartSonar.bat
in the command window. On Linux or MacOS execute the.sh
file in the respective folder.
- Once SonarQube is up and running, open
http//:localhost:9000
in a browser to visit the SonarQube dashboard:
- Click on
Login
and give a default username and password --admin and default to-- log in as an administrator:
- As of now, there is no project available in the SonarQube dashboard:
- Click on the
Quality Profiles
tab to get details on the default quality profiles available in SonarQube.
Quality Profiles
are the heart of SonarQube; they are nothing but sets of rules specific to a language. If not mentioned explicitly, all the projects are analyzed with default...