Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

By SonarSource – GNU LGPL 3 – Issue TrackerSources – Supported by SonarSource
More versions
SonarGo 1.6 – Aug 06, 2019 – SonarQube 7.9+ (Compatible with LTS)
Add 6 new rules, improve existing rules, import golangci-lint issues reports and drop 8 rules.
DownloadRelease notes

Description

Enables the powerful SonarGo analyzer.

Prerequisites

  • Go > 1.10

First Analysis of a Go Project

  1. Install SonarQube Server (see Setup and Upgrade for more details)
  2. Install SonarQube Scanner and be sure your can call sonar-scanner from the directory where you have your source code
  3. Install SonarGo (see Installing a Plugin for more details)

  4. If missing, install Go on the machine where you run analysis

  5. Run your analysis with the SonarQube Scanner by executing the following command from the root directory of the project:

    sonar-scanner -Dsonar.projectKey=xxx -Dsonar.sources=.
  6. Follow the link provided at the end of the analysis to browse your project's quality in SonarQube UI

Further Analyses

Assuming steps 1-3 above have already been completed, you'll want to encapsulate your analysis parameters in a sonar-project.properties file at the root of your project (see a sample project on GitHub: https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner). Then subsequent analyses can simply be run with:

sonar-scanner

Advanced Usage

With SonarGo, you can also:

  • import Coverage Results
  • No labels