This is a developer documentation. If you want to analyze source code in SonarQube read the analysis of Go documentation.
We use the native Go parser to parse the Go language.
To provide feedback (request a feature, report a bug, etc.) use the SonarQube Community Forum. Please do not forget to specify the language, plugin version, and SonarQube version.
To configure build dependencies, run the following command:
git submodule update --init -- build-logic
To always get the latest version of the build logic during git operations, set the following configuration:
git config submodule.recurse true
For more information see README.md of cloud-native-gradle-modules.
Additionally, if you are on Windows, read the sonar-go-to-slang/README.md instructions.
Build and run Unit Tests:
./gradlew build
`
License headers are automatically updated by the spotless plugin.
Copyright 2012-2025 SonarSource.
SonarQube analyzers released after November 29, 2024, including patch fixes for prior versions, are published under the Sonar Source-Available License Version 1 (SSALv1).
See individual files for details that specify the license applicable to each file. Files subject to the SSALv1 will be noted in their headers.