Sonarqube Analyzer
Skill by felipeoff
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/felipeoff/sonarqube-analyzerSonarQube Analyzer Skill
Analisa projetos no SonarQube self-hosted, obtém issues e sugere soluções automatizadas.
Ferramentas Registradas
sonar_get_issues
Obtém lista de issues de um projeto/PR no SonarQube.
Parâmetros:
projectKey(string, obrigatório): Chave do projetopullRequest(string, opcional): Número da PR para análise específicaseverities(string[], opcional): Severidades a filtrar (BLOCKER, CRITICAL, MAJOR, MINOR, INFO)status(string, opcional): Status das issues (OPEN, CONFIRMED, FALSE_POSITIVE, etc.)limit(number, opcional): Limite de issues (padrão: 100)
Exemplo:
{
"projectKey": "openclaw-panel",
"pullRequest": "5",
"severities": ["CRITICAL", "MAJOR"],
"limit": 50
}
sonar_analyze_and_suggest
Analisa issues e sugere soluções com base nas regras do SonarQube.
Parâmetros:
projectKey(string, obrigatório): Chave do projetopullRequest(string, opcional): Número da PRautoFix(boolean, opcional): Tentar aplicar correções automáticas (padrão: false)
Exemplo:
{
"projectKey": "openclaw-panel",
"pullRequest": "5",
"autoFix": false
}
sonar_quality_gate
Verifica o status do Quality Gate de um projeto.
Parâmetros:
projectKey(string, obrigatório): Chave do projetopullRequest(string, opcional): Número da PR
Exemplo:
{
"projectKey": "openclaw-panel",
"pullRequest": "5"
}
Configuração
O skill usa as seguintes configurações do ambiente:
SONAR_HOST_URL=http://127.0.0.1:9000 # URL do SonarQube
SONAR_TOKEN=admin # Token de autenticação
Uso
Analisar uma PR específica:
node scripts/analyze.js --project=my-project --pr=5
Gerar relatório de issues:
node scripts/report.js --project=my-project --format=markdown
Verificar Quality Gate:
node scripts/quality-gate.js --project=my-project --pr=5
Estrutura de Resposta
sonar_get_issues
{
"total": 12,
"issues": [
{
"key": "...",
"severity": "MAJOR",
"component": "apps/web/src/ui/App.tsx",
"line": 346,
"message": "Extract this nested ternary...",
"rule": "typescript:S3358",
"status": "OPEN",
"solution": "Extract nested ternary into a separate function..."
}
],
"summary": {
"BLOCKER": 0,
"CRITICAL": 0,
"MAJOR": 2,
"MINOR": 10,
"INFO": 0
}
}
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-felipeoff-sonarqube-analyzer": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Ant Design Skill
Skill by felipeoff
faster-whisper-gpu
High-performance local speech-to-text transcription using Faster Whisper with NVIDIA GPU acceleration. Transcribe audio files locally without sending data to external services.
stripe-cli
Stripe CLI operations for local development, webhook testing, fixture-based event simulation, API inspection, and sandbox resource management. Use when installing or verifying stripe CLI, logging in, forwarding webhook events (`stripe listen --forward-to`), triggering test events (`stripe trigger`), replaying/resending events, tailing request logs, or performing safe subscription/checkout debugging in Stripe sandbox environments.