sonarqube-gate - Autonomous SonarQube Quality Gate agent for Go and Java
Runs tests, executes Sonar Scanner, queries SonarQube APIs, and automatically fixes code issues until the Quality Gate passes for Go and Java projects.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Locate project root directory
- Create Makefile if missing
- Update sonar-project.properties exclusions
- Run unit tests with coverage
- Execute sonar-scanner CLI tool
- Check Quality Gate status via API
- Fetch open issues via API
- Fix code issues and coverage
Inputs
- Go or Java project repository
- SonarQube server URL
- SonarQube project key
- SonarQube authentication token
Outputs
- Makefile
- Updated sonar-project.properties
- Coverage report files
- Fixed source code and unit tests
- Quality Gate status summary report
Requirements
- Go toolchain or Java JDK with Maven/Gradle
- sonar-scanner CLI tool
- curl utility
- SonarQube server access
