CRAP: Change Risk Anti-Patterns

CRAP: Change Risk Anti-Patterns

CRAP combines complexity and code coverage, to help you identify if your code has a high risk of breaking or causing unintended side effects when modified, due to low code coverage and high complexity. A low CRAP score signals easy to understand code (low complexity) and high code coverage, a high score indicates the opposite.

We have a blog post that explains cyclomatic complexity and CRAP in detail.

Ship better code faster with confidence_

PR comments, status checks, line annotations, and trends without code access. Free for public repos; per-repo pricing for private repos.