back
loading skill details...
>
CRAP Score Analysis
Calculate CRAP (Change Risk Anti-Patterns) scores for .NET methods to identify code that is both complex and undertested.
Background
The CRAP score combines cyclomatic complexity and code coverage into a single metric:
$$\text{CRAP}(m) = \text{comp}(m)^2 \times (1 - \text{cov}(m))^3 + \text{comp}(m)$$
Where:
$\text{comp}(m)$ = cyclomatic complexity of method $m$
$\text{cov}(m)$ = code coverage ratio (0.0 to 1.0) of method $m$don't have the plugin yet? install it then click "run inline in claude" again.