Skip to content

Commit b29f17f

Browse files
committed
Integrates SonarQube quality auditor
Enables the SonarQube remote tool for code quality analysis. Defines a new subagent to act as a quality auditor and fix orchestrator, allowing it to scan codebases, categorize findings, and manage fixes. Grants necessary permissions for the agent to interact with SonarQube, utilize various skills, and execute essential Git commands for source control.
1 parent 17bc3fa commit b29f17f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

opencode.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"sonarqube": {
6969
"type": "remote",
7070
"url": "https://sonarqube-mcp.sadigit.co.id/mcp",
71+
"enabled": true,
7172
"headers": {
7273
"Authorization": "Bearer ${SONARQUBE_TOKEN}",
7374
"SONARQUBE_TOOLSETS": "analysis,issues,security-hotspots,quality-gates,rules,duplications,measures,dependency-risks,coverage,sources,languages,portfolios,system,webhooks"
@@ -106,6 +107,7 @@
106107
"playwright_*": "allow",
107108
"postman_*": "allow",
108109
"agentmemory_*": "allow",
110+
"sonarqube_*": "allow",
109111
"task": { "*": "allow" }
110112
}
111113
},
@@ -350,6 +352,25 @@
350352
"playwright_*": "allow",
351353
"agentmemory_*": "allow"
352354
}
355+
},
356+
"sonarqube": {
357+
"description": "SonarQube Quality Auditor & Fix Orchestrator — scans codebases, categorizes findings, creates TODOs, and delegates fixes to domain subagents (subagent of IT Leader)",
358+
"mode": "subagent",
359+
"prompt": "{file:.opencode/agents/sonarqube-quality.md}",
360+
"color": "#eab308",
361+
"permission": {
362+
"edit": "allow",
363+
"webfetch": "allow",
364+
"skill": { "*": "allow" },
365+
"bash": {
366+
"*": "ask",
367+
"git status": "allow",
368+
"git diff": "allow",
369+
"git log*": "allow"
370+
},
371+
"sonarqube_*": "allow",
372+
"agentmemory_*": "allow"
373+
}
353374
}
354375
}
355376
}

0 commit comments

Comments
 (0)