mcpField
S
sonarqube-ai-slop-gate

sonarqube-ai-slop-gate

github.com/pproencaTesting & quality21862 installsUpdated 11w ago
Repository

About sonarqube-ai-slop-gate

SonarQube AI Slop Gate is a configuration reference skill for teams using self-hosted SonarQube Server to gate AI-generated code. It covers editions, AI Code Assurance, scanner setup, and defaults that can cause a gate to miss issues or pass unexpectedly.

Key features

  1. 01Explains editions and release cadence
  2. 02Configures AI Code Assurance
  3. 03Identifies quality-gate measurement blind spots
  4. 04Guides new-code and branch setup
  5. 05Covers scanner properties and coverage import
  6. 06Addresses server operation and data persistence

Use cases

  1. 01Set up or review a self-hosted SonarQube Server
  2. 02Configure a quality gate for new code
  3. 03Add scanning to CI and block failing merges
  4. 04Investigate missed issues or unexpected gate passes

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill sonarqube-ai-slop-gate

After installing, type/sonarqube-ai-slop-gatein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
aica-do-not-rely-on-autodetection.md
aica-flag-projects-through-the-api.md
aica-qualify-the-gate-explicitly.md
aica-the-builtin-ai-gate-is-lenient.md
aica-use-the-agentic-profile.md
blind-fudge-factor-skips-small-changes.md
blind-java-duplication-threshold-is-fixed.md
blind-no-new-code-complexity-metric.md
blind-pull-requests-hide-file-level-issues.md
blind-suppression-comments-turn-the-gate-green.md
blind-test-code-escapes-duplication.md
newcode-pick-the-definition-deliberately.md
newcode-shallow-clones-break-blame.md
ops-persist-data-and-skip-h2.md
ops-set-host-limits-before-first-boot.md
plat-ai-features-are-edition-gated.md
plat-community-build-cannot-see-pull-requests.md
plat-versions-are-calendar-based.md
scan-declare-test-sources.md
scan-exclude-narrowly.md
scan-host-url-defaults-to-the-cloud.md
scan-import-coverage-reports.md
scan-name-the-branch.md
scan-use-project-analysis-tokens.md
scan-wait-for-the-quality-gate.md

Details

From the project README

SonarQube AI Slop Gate

The decisions self-hosted SonarQube forces when you use it to gate AI-generated code, and how to settle them. Every rule names the wrong default it corrects; there is no rule for what the model already gets right.

Pinned to a date, not a version. SonarQube ships a release every two months, so every claim here was verified against docs.sonarsource.com in July 2026, against SonarQube Server 2026.3 (current LTA 2026.1). 2026.4 had shipped at the time of writing but the documentation still defaulted to 2026.3, so that is what these rules describe — plat-versions-are-calendar-based covers the release train itself. Re-verify anything version-shaped before trusting it, and read docs from the unversioned path (/latest/<page> does not resolve); appending .md to any docs URL returns its markdown source.

The failure this skill exists to prevent is a gate that passes everything. A SonarQube setup assembled from 2024-vintage knowledge will analyze the wrong branch, upload to the wrong server, exit green on a red gate, and skip the duplication and coverage conditions entirely on the small commits that AI-assisted work produces most of. None of those failures announce themselves; the dashboard looks healthy throughout.

When to Apply

Use this skill when:

  • Standing up self-hosted SonarQube Server, or reviewing an existing instance, with the goal of catching AI-generated defects continuously rather than reporting on them after the fact
  • Designing or tightening a quality gate — especially deciding what to measure on new code versus overall code, and discovering which conditions are silently not evaluated
  • Wiring a scan step into CI: scanner properties, tokens, branch and pull-request parameters, coverage report import, or making the pipeline actually block a merge
  • Setting up AI Code Assurance — flagging projects, qualifying a gate, or working out why a project reports "AI Code Assurance is off"
  • A gate passes changes that obviously contain duplicated or untested generated code, and nobody can explain why

This skill is NOT for:

  • SonarQube Cloud — the edition boundaries, token model, and several AI features differ; the agentic-AI gate in particular is documented for Cloud only
  • IDE connected mode, SonarLint, or the SonarQube CLI's local agentic analysis
  • Authoring custom analyzer rules or plugins — this covers configuring the rules that ship, not writing new ones
  • General code-review judgement about whether code is good; this is about making the tool measure what you think it measures

Rule Categories

#CategoryPrefixCovers
1Edition & Version Realityplat-What your licence can do; CalVer and the LTA upgrade path; which AI features need which edition
2AI Code Assuranceaica-The project flag, gate qualification, deprecated autodetection, the agentic profile
3What the Gate Doesn't Measureblind-Suppression comments, fudge factor, test-code exemption, missing metrics, PR blind spots
4New Code & Blamenewcode-Full-clone requirement; choosing a definition that matches the branching model
5Scanner Configurationscan-The properties whose defaults fail open — host URL, gate wait, test scope, coverage, exclusions
6Running the Serverops-Kernel limits before first boot; database and volumes that survive an upgrade

Quick Reference

1. Edition & Version Reality
2. AI Code Assurance
3. What the Gate Doesn't Measure
4. New Code & Blame
5. Scanner Configuration
6. Running the Server

Suggested Order

Categories are listed by importance — a mistake in category 1 invalidates the whole plan, a mistake in category 6 fails loudly at boot. That is not the order you execute in. For a fresh setup, work through them as:

1 → 6 → 5 → 4 → 2 → 3. Confirm the licence can do what you need, stand up the server, configure the scanner, define what "new" means, apply the AI Code Assurance machinery, and read category 3 last — before declaring the gate finished, because it is the list of reasons a green verdict may be meaningless.

How to Use

Read a reference file when its decision comes up. Each rule names the wrong default it corrects, then shows the canonical configuration.

Comments

Markdown supported