sonarqube
Skill15 starsChanged 42 days agoMITView on GitHub
Expert SonarQube code quality and security scanning covering Quality Gates, static analysis (SAST), and test coverage tracking. Use when configuring SonarQube/SonarCloud, measuring code debt, or enforcing quality gates.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- zhubby/skillstheir own version, first seen Nov 8, 2026
- rezkam/boring-but-goodtheir own version, first seen Nov 1, 2026
- Rahlir/clanker-stufftheir own version, first seen Nov 1, 2026
- DougTrajano/pydantic-ai-skillstheir own version, first seen Oct 30, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- DougTrajano/pydantic-ai-skills★ 381same name
- zhubby/skills★ 6same name
- Rahlir/clanker-stuff★ 2same name
- rezkam/boring-but-good★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 74
Run Sonar analysis during standard build jobs:
- Distinctive: line 92
Use SonarLint in IDEs: Run instant local analysis in VS Code/JetBrains to fix code smells before committing.
- Distinctive: line 98
Run SonarScanner on untested code: Run tests and generate coverage reports before executing the Sonar scanner step.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SonarQube
SonarQube is the leading tool for continuous inspection of code quality. It detects bugs, vulnerabilities (SAST), and code smells in over 30 programming languages.
When to Use
- Continuous Code Quality & Clean Code Auditing: Analyzing codebases for bugs, vulnerabilities, security hotspots, and code smells.
- Quality Gates in Pull Requests: Enforcing that new code meets strict quality standards (test coverage, zero new bugs) before merging.
- Technical Debt & Maintainability Tracking: Measuring duplication percentage, complexity scores, and estimated remediation time.
- Enterprise Security Compliance: Ensuring codebases comply with security standards (OWASP Top 10, CWE, SANS Top 25).
Quick Start
docker run -d --name sonarqube -p 9000:9000 sonarqube:lts
# Login: admin/admin at http://localhost:9000# sonar-project.properties
sonar.projectKey=my-project
sonar.sources=src
sonar.host.url=http://localhost:9000
sonar.login=...Core Concepts
The "Clean as You Code" Methodology
Focuses quality gate enforcement on "New Code" (modified in the PR) rather than legacy debt:
[ Developer Branch ] ──Pull Request──→ [ CI Scanner ] ──Analyze New Code──→ [ Quality Gate PASS / FAIL ]sonar-project.properties Configuration
Defines source paths, exclusions, test execution reports, and lcov coverage targets:
# sonar-project.properties
sonar.projectKey=enterprise-api-service
sonar.projectName=Enterprise API Service
sonar.sources=src
sonar.tests=tests
sonar.exclusions=**/node_modules/**,**/dist/**,**/*.spec.ts
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.qualitygate.wait=trueSonarScanner CLI Execution
Runs static analysis and uploads results to SonarQube Server or SonarCloud:
sonar-scanner \
-Dsonar.host.url=https://sonarqube.internal.corp \
-Dsonar.token=$SONAR_TOKENCommon Patterns
Maven / Gradle Sonar Scanner Pipeline
Problem: Code smells and security hotspots merge to main branch unnoticed.
Solution: Run Sonar analysis during standard build jobs:
# Analyze with Maven passing project key and token
mvn clean verify sonar:sonar \
-Dsonar.projectKey=my_enterprise_app \
-Dsonar.host.url=https://sonarqube.internal.net \
-Dsonar.token=$SONAR_TOKEN \
-Dsonar.qualitygate.wait=trueBest Practices
Do:
- Enforce the Quality Gate on Pull Requests: Block merges if code coverage on new code is under 80% or if new security vulnerabilities are found.
- Upload Real Code Coverage Reports: Ensure unit test runs output valid LCOV or JaCoCo XML reports consumed by SonarQube.
- Review Security Hotspots Interactively: Investigate flagged security hotspots to confirm safe usage of cryptography and deserialization.
- Use SonarLint in IDEs: Run instant local analysis in VS Code/JetBrains to fix code smells before committing.
Don't:
- Attempt to fix all legacy technical debt at once: Adopt the Clean as You Code strategy; fix debt incrementally as files are modified.
- Disable rules to bypass failing Quality Gates: Address underlying architectural smells rather than weakening inspection rules.
- Run SonarScanner on untested code: Run tests and generate coverage reports before executing the Sonar scanner step.
Troubleshooting
| Error | Cause | Solution |
Quality Gate failed: Coverage is below threshold | New code lacks adequate unit tests or report file missing. | Ensure coverage reports (lcov, jacoco) are generated and path specified in config. |
You are not authorized to run the analysis | Invalid or expired SONAR_TOKEN. | Regenerate user/project token in SonarQube user security settings. |
Task failed: SonarQube server unreachable | Network firewall or proxy blocking connection to internal Sonar server. | Verify server status and ensure runner has network egress to host URL. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

