crap-score

安装量: 1.3K
排名: #8654

安装

npx skills add https://github.com/dotnet/skills --skill crap-score

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$ Show more Installs 929 Repository dotnet/skills GitHub Stars 5.1K First Seen Mar 24, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜