crap-score
CommunityQuantify risk with CRAP scores to guide testing.
Authorsayedihashimi
Version1.0.0
Installs0
System Documentation
What problem does it solve?
CRAP score analysis helps identify code that is both complex and undertested by combining cyclomatic complexity with test coverage data, enabling teams to focus testing and refactoring efforts where they matter most.
Core Features & Use Cases
- Compute per-method, per-class, or per-file CRAP scores using cyclomatic complexity and Cobertura XML coverage data.
- Generate a sorted report of methods by CRAP score with risk levels and actionable recommendations for test improvements or refactoring.
- Provide a coverage target calculation to bring high-CRAP methods under a desired threshold, guiding test strategy.
Quick Start
Run an initial CRAP analysis on your .NET project to surface high-risk areas and prioritize testing.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: crap-score Download link: https://github.com/sayedihashimi/copilot-skill-eval/archive/main.zip#crap-score Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.