कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

sonarqube-analyzer

felipeoff द्वारा

Self-Hosted & Automation
1.1kclawskills.sh द्वारा बताए गए डाउनलोड
1स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Analisa projetos no SonarQube self-hosted, obtém issues e sugere soluções automatizadas.

विवरण

यह स्किल क्या करती है

Connects to a self-hosted SonarQube instance to fetch code issues, check quality gate status, and generate fix suggestions for a project or pull request. Supports filtering by severity and status, and can attempt automatic fixes for certain rule violations.

Brings SonarQube issue triage and fix suggestions directly into an agent workflow without manually navigating the SonarQube UI.

इसे कब इस्तेमाल करें

  • Check if a PR passes the quality gate before merging
  • List all CRITICAL and BLOCKER issues in a project
  • Get fix suggestions for nested ternary warnings in a TypeScript file
  • Automate SonarQube analysis in a GitHub Actions workflow
  • Generate a markdown report of open issues by severity

उदाहरण वर्कफ़्लो

इनपुट

User asks: 'What issues are in PR #5 of the openclaw-panel project, and how do I fix them?'

एजेंट
  1. 1

    Call sonar_get_issues with projectKey 'openclaw-panel' and pullRequest '5'

  2. 2

    Review returned issues grouped by severity

  3. 3

    Call sonar_analyze_and_suggest with the same project and PR to get fix recommendations

  4. 4

    Identify which issues are auto-fixable vs require manual refactoring

  5. 5

    Return a summary with next steps

आउटपुट

A list of 12 issues (2 MAJOR, 10 MINOR) with per-file suggestions and a note that 8 can be fixed automatically

आवश्यकताएँ

  • SONAR_HOST_URL environment variable pointing to your SonarQube instance
  • SONAR_TOKEN environment variable with a valid SonarQube authentication token
  • Self-hosted SonarQube instance

इंस्टॉलेशन

clawhub install felipeoff/sonarqube-analyzer

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक