--- name: "SonarQube" description: "Tool adapter to execute static analysis scans, verify code quality gates, and patch security hot spots." --- # Skill: SonarQube ## 1. Purpose Integrate static analysis checks into the validation workflow to catch bugs, vulnerabilities, code smells, and security violations early. ## 2. When to Use During quality assurance, before finalizing code and documentation for pull requests. ## 3. Preconditions * SonarQube scan configuration exists in the repository. ## 4. Step-by-Step Checklist 1. Execute the local static analysis command or SonarQube scanner. 2. Check reports for: - Security Vulnerabilities (e.g. OWASP Top 10 issues, hardcoded keys). - Code Smells (e.g. complex methods, redundant imports). - Test Coverage percentage (must meet project thresholds, e.g. 80%). - Duplicate Lines threshold. 3. Fix issues exceeding quality gate limits. 4. Report quality gate status.