test: v1 Copilot — collapsible prompt + noise reduction#37
test: v1 Copilot — collapsible prompt + noise reduction#37jon-lipsky-sonarsource wants to merge 3 commits into
Conversation
🤖 sonar-fix — triage reportFound 4 SonarQube issue(s) on this PR. Here's what's about to happen. 🔧 Auto-fix queue (3)An AI agent will attempt fixes for these and push a commit. Look for a ⚪ INFO (1)
🟡 MAJOR (1)
🔵 MINOR (1)
🔍 Needs human review (1)These are excluded from auto-fix per the fix config (severity threshold, deny-list, path exclusion, etc.). Address them manually if needed. 🔵 MINOR (1)
Posted by sonar-fix. 4 total · 3 to fix · 1 for review. |
|
@copilot Please fix the following 3 SonarQube issue(s) in this pull request. Issues to fix (3)
Agent instructionsSonarQube Fix Agent InstructionsThis file is the central agent prompt for sonar-fix runs. The reusable The instructions are intentionally agent-agnostic. Claude Code reads RoleYou are a code quality remediation agent operating in the Guide → Fix → Verify SonarQube Agentic WorkflowGUIDE — Before Writing Any Code
FIX — Apply Targeted Changes
VERIFY — After Every File Modification
COMMITAfter all files pass verification, commit your changes. Don't push — The subject line MUST start with git add <changed files>
git commit -m "fix: resolve SonarQube issues (automated)
Fixes:
- java:S1481 in src/main/Foo.java:42 — removed unused variable
- java:S106 in src/main/Bar.java:17 — replaced System.out with logger
Verified clean via Agentic Analysis (0 new issues in modified files).
Skipped:
- java:S2259 in src/main/Baz.java:88 — ambiguous null flow, needs human review
"Don't create a new branch — commit on the PR branch you're already on. Rules
|
Agent-Logs-Url: https://github.com/jon-lipsky-sonarsource/clipper2-java/sessions/6dfb2ee8-3ab3-47ec-925b-318035fb3356 Co-authored-by: jon-lipsky-sonarsource <190663086+jon-lipsky-sonarsource@users.noreply.github.com>
Fixed all 3 issues in commit |
|
@copilot Please fix the following 1 SonarQube issue(s) in this pull request. Issues to fix (1)
Agent instructionsSonarQube Fix Agent InstructionsThis file is the central agent prompt for sonar-fix runs. The reusable The instructions are intentionally agent-agnostic. Claude Code reads RoleYou are a code quality remediation agent operating in the Guide → Fix → Verify SonarQube Agentic WorkflowGUIDE — Before Writing Any Code
FIX — Apply Targeted Changes
VERIFY — After Every File Modification
COMMITAfter all files pass verification, commit your changes. Don't push — The subject line MUST start with git add <changed files>
git commit -m "fix: resolve SonarQube issues (automated)
Fixes:
- java:S1481 in src/main/Foo.java:42 — removed unused variable
- java:S106 in src/main/Bar.java:17 — replaced System.out with logger
Verified clean via Agentic Analysis (0 new issues in modified files).
Skipped:
- java:S2259 in src/main/Baz.java:88 — ambiguous null flow, needs human review
"Don't create a new branch — commit on the PR branch you're already on. Rules
|
🤖 sonar-fix — triage reportFound 2 SonarQube issue(s) on this PR. Here's what's about to happen. 🔧 Auto-fix queue (1)An AI agent will attempt fixes for these and push a commit. Look for a 🟠 CRITICAL (1)
🔍 Needs human review (1)These are excluded from auto-fix per the fix config (severity threshold, deny-list, path exclusion, etc.). Address them manually if needed. 🔵 MINOR (1)
Posted by sonar-fix. 2 total · 1 to fix · 1 for review. |
Agent-Logs-Url: https://github.com/jon-lipsky-sonarsource/clipper2-java/sessions/a27e8515-d9cf-4d88-9d37-01c5acc3aaef Co-authored-by: jon-lipsky-sonarsource <190663086+jon-lipsky-sonarsource@users.noreply.github.com>
Fixed in commit |
SonarQube reviewer guide
|
|
🤖 sonar-fix — triage reportFound 1 SonarQube issue(s) on this PR. Here's what's about to happen. 🔍 Needs human review (1)These are excluded from auto-fix per the fix config (severity threshold, deny-list, path exclusion, etc.). Address them manually if needed. 🔵 MINOR (1)
Posted by sonar-fix. 1 total · 0 to fix · 1 for review. |





Clean-slate validation of both fixes:
<details>in the@copilotcommentExpected: ~4-5 comments total, agent instructions hidden by default.