review_sonar
Inspect a PR/MR and its Sonar quality gate, coverage, duplication, issues, and hotspots together; explain failures and optionally fix code. Reads evidence, so rerun Sonar to confirm fixes.
Instructions
Inspect a PR/MR and its Sonar quality gate, coverage, duplication, issues and hotspots together. The assistant explains failures and, when asked, fixes code using its local editing/testing tools. Supply ruleKey for remediation details or filePath (and lines) for source context. Use review_work read for the diff. This tool reads evidence; a new Sonar analysis is needed to confirm a fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Raw Sonar responses instead of the compact view | |
| page | No | ||
| lines | No | Line range of filePath, e.g. "40-90" | |
| target | Yes | ||
| project | No | Sonar project key; defaults to configuration | |
| ruleKey | No | ||
| filePath | No | Optional repository-relative file to inspect at the PR head |