· Understanding the results: After the analysis, results are published and made available on SonarQube web console. On project level, it gives a snapshot of overall issues with severity wise breakup, duplications, technical debt etc. Issues: During analysis, SonarQube raises an issue whenever a piece of code breaks a coding rule. Developers can also manually raise issues that cannot be detected by SonarQube (examples: the implementation of the method does not comply to the functional requirements, the java doc of the method does not match its implementation, etc.). Each issue has one of the five securities e.g. blocker, critical, major, minor, info.
6.3. SonarQube Installation in Linux and Run as a service
Step:1 Download & Install Sonarqube Download the latest sonarqube installation file to /opt folder. You can get the latest download link from here. http://www.sonarqube.org/downloads/ Unzip package install & unzip sonarqube [root@cicdapi opt]#wget https://sonarsource.bintray.com/Distribution/sonarqube/ sonarqube-6.7.6.zip [root@cicdapi opt]# yum install unzip -y [root@cicdapi opt]# unzip sonarqube-6.7.6.zip Step:2 Start Sonarqube Service Giving Permissions To User & Navigate to the start script directory to start Sonarqube service [cicdapiadmin@cicd opt]$ sudo chown -R cicdapiadmin:cicdapiadmin sonarqube-6.7.6 [cicdapiadmin@cicd opt]$ cd /opt/sonarqube-6.7.6/bin/linux-x86-64 [cicdapiadmin@cicd opt]$ sudo ./sonar.sh start [cicdapiadmin@cicd opt]$ sudo ./sonar.sh status Step:3 Setting up SonarQube As A Service Run below commands to Auto restart SonarQube at the time of VM restart [cicdapiadmin@cicd opt]$ sudo chkconfig sonar on [cicdapiadmin@cicd opt]$ sudo service sonar start [cicdapiadmin@cicd opt]$ sudo service sonar status