원클릭으로
sonar-fix
Find and fix SonarQube issues by severity
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Find and fix SonarQube issues by severity
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create a pull request with quality gate status and metrics
Push current branch and monitor CI workflow until completion
Check SonarQube quality gate status and project metrics
| name | sonar-fix |
| description | Find and fix SonarQube issues by severity |
Systematically identify and fix SonarQube issues, prioritized by severity.
The SonarQube project key for this repository is: mayflower-sandbox
Fetch All Open Issues:
Use mcp__sonarqube__search_sonar_issues_in_projects with:
["mayflower-sandbox"]Group and Prioritize: Sort issues by severity: BLOCKER → CRITICAL → HIGH → MEDIUM → LOW → INFO
For Each Issue (starting with highest severity):
a. Show Issue Details:
b. Get Rule Details:
Use mcp__sonarqube__show_rule with the rule key (e.g., python:S1481)
This provides:
c. Read the Affected Code: Read the file and show context around the issue
d. Apply the Fix: Edit the file to resolve the issue following the rule guidance
e. Verify Fix: Run relevant tests or linters to ensure the fix doesn't break anything
Run Tests After Fixes:
.venv/bin/pytest tests/ -v --tb=short
Run Linters:
.venv/bin/ruff check src/
After fixing each issue (or batch of related issues), pause and report:
When the user wants to commit:
If an issue appears to be a false positive:
# noqa or inline suppression commentmcp__sonarqube__change_sonar_issue_status to mark as falsepositive or accept