crap4go - Analyze CRAP score and complexity for Go functions
Computes Change Risk Anti-Pattern metrics by combining cyclomatic complexity and test coverage for Go functions.
Tags
Updated: 2026-09-10Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Run Go test coverage analysis
- Calculate cyclomatic complexity
- Compute per-function CRAP scores
- Generate sorted CRAP report
- Filter analysis by path fragments
Inputs
- Go module directory
- Path fragments
Outputs
- Coverage profile target/coverage/coverage.out
- Console CRAP report table
Requirements
- Go toolchain
