Skip to content

Instantly share code, notes, and snippets.

@burubur
Last active August 16, 2018 09:14
Show Gist options
  • Save burubur/78b35785812aa8c8d7297e6932a2260c to your computer and use it in GitHub Desktop.
Save burubur/78b35785812aa8c8d7297e6932a2260c to your computer and use it in GitHub Desktop.
SonarQube installation

SonarQube for a steril Go code

1. Code Quality Report Expected

Expectation 1 Expectation 2

2. Installation

Download from here:

Copy that source to any folder you want then add to your PATH.

3. Run The SonarQube Server

./bin/sonar.sh start

4. Scan your code, Run the following CLI in project root

./bin/sonar-scanner -D sonar.projectKey=microservice -D sonar.projectName=microservice-x -D sonar.projectVersion=1.0 -D sonar.sources=.

5. Login to SonarQube admin page in browser with the following default credential

Default local SonarQube admin page: localhost:9000

user     : admin
password : admin

6. Result

You must be amazed with that result report!

result


References:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment