

Step 5: In app level adle apply the below plugin Step 4: In project level adle add the below classpath dependencies within buildscriptĬlasspath “:sonarqube-gradle-plugin:3.0” } Step 3: We can check server on the browser by using log in the admin panel by using admin/admin credential. Note: There will be separate folder for each OS and the corresponding file to be run to start sonar server Step 2: open sonarQube directory folder and run server on the shell by using StartSonar.bat file.Ĭ:\_develop_android_studio\sonarqube-8.6\sonarqube-8.6\bin\windows-x86–64 Step 1 : Download the latest version of SonarQube and unzip it.Ĭ:\_develop_android_studio\sonarqube-8.6\sonarqube-8.6 SonarQube 7.9 added support for Kotlin language to analyze code quality of code developed in Kotlin. SonarQube supports 25+ languages as well and generates reports of code smells ,vulnerabilities and bugs.Other code quality tools focus mainly on bugs and complexity but Sonar covers 7 sections of code quality:- Architecture and design, unit tests, duplicated code, potential bugs, complex code, coding standards, and comments.It provides a clean dashboard to address bugs, coding rules, test coverage, API documentation, code duplication, complexity, and many more things.SonarQube offers code-quality management by suggesting what is wrong and helps us put it right.SonarQube is a universal tool for static code analysis that has become the industry standard.

SonarQube & Static Analysis for Kotlin Android Applications
