agentleFS
LeandroPG19LeandroPG19/Memorys/.cursor/rules/swarm-forge-crap.mdc

Memorys / rules

Cursor rule30 starsChanged 53 days agoApache-2.0View on GitHub

CRAP — complejidad y cobertura las imprime un script, no el modelo

The file

Files
swarm-forge-crap.mdc
---
description: CRAP — complejidad y cobertura las imprime un script, no el modelo
alwaysApply: true
---

# CRAP

Change Risk Anti-Patterns: complejidad ciclomática combinada con hueco de cobertura. El **número lo imprime** un script, no una opinión.

- **SIL / piso**: `scripts/crap-gate.sh` (line coverage `CRAP_MIN_LINE_COV`, default 15%). Vive dentro de `merge-gate.sh`.
- **Diff**: `scripts/quality-gate.sh` (lizard sobre `rust/src` tocado). Puerta: ninguna función **nueva** por encima de CRAP 6; ninguna existente sube frente a `HEAD`. CC ≤ 4 **orienta**; no se parte una función de un solo trabajo para bajar el número.

El cleaner (`mejorador`) baja funciones que el script reporta.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.