Skip to content

Instantly share code, notes, and snippets.

@SecurityIsIllusion
Created June 6, 2018 11:13
Show Gist options
  • Save SecurityIsIllusion/4756edff16e3ba240bfa15f23239f571 to your computer and use it in GitHub Desktop.
Save SecurityIsIllusion/4756edff16e3ba240bfa15f23239f571 to your computer and use it in GitHub Desktop.
Steps:
1. Setting up SonarQube
https://www.sonarqube.org/downloads/
2. Setting up SonarQube Scanner
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
3. Setting Sonar Scanner's path in environment variable
C:\Users\rohit.ranjan\Desktop\code_review\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin
4. Setting Sonar Scanner's conf
C:\Users\rohit.ranjan\Desktop\code_review\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\conf
For java:
sonar.projectKey=JavaProject
sonar.projectName=JavaProject
sonar.projectVersion=1.0
sonar.sources = C:/Users/rohit.ranjan/Desktop/java
5. Starting SonarQube Server
C:\Users\rohit.ranjan\Desktop\code_review\sonarqube-6.7.4\sonarqube-6.7.4\bin\windows-x86-64
StartSonar.bat
6. Starting Sonar Scanner
C:\Users\rohit.ranjan\Desktop\code_review\sonar-scanner-cli-3.2.0.1227-windows\sonar-scanner-3.2.0.1227-windows\bin
sonar-scanner.bat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment