Prerequisites: Installation of Homebrew would be ready
http://brew.sh/For installation of SonarQube
- Java would be installed on your machine. Installation link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- On terminal window type "brew install sonar". After completion.
- On terminal window type "brew install sonar-runner". After completion
- On terminal window type "sonar console". This would start sonar server. For checking type http://localhost:9000/
- Once done for your Android Projects create the sonar-project.properties file. A dummy sonar-project.properties file is created at https://gist.github.com/jayshildave/7dbe249ebeb9b3599d93. The URL expects you are using a Android Studio project
- Now go to the project directory in terminal type the command "sonar-runner" to execute SonarQube for your project
- The output would be shown as below:
I think that sonnar-runner was replaced by sonar-scanner
ReplyDeletebrew install sonar-scanner