.NET CRAP & Coverage Analysis
Analyzes code coverage and complexity metrics to identify high-risk code using the CRAP (Change Risk Anti-Patterns) score.
This skill empowers .NET developers to quantify technical debt and code risk by integrating code coverage data with cyclomatic complexity. By calculating CRAP scores via OpenCover and ReportGenerator, it identifies 'risk hotspots'—complex code paths that lack sufficient testing. It provides automated workflows for setting up coverage collection, generating interactive HTML reports, and enforcing quality thresholds in CI/CD pipelines, ensuring that critical logic is never left untested before modification or deployment.
主な機能
01203 GitHub stars
02Standardized coverage.runsettings configuration optimized for .NET projects
03CI/CD integration templates for GitHub Actions and Azure Pipelines
04Automated CRAP score calculation using cyclomatic complexity and coverage data
05Configurable coverage thresholds to enforce quality standards in pull requests
06Interactive HTML report generation with visual Risk Hotspot identification
ユースケース
01Prioritizing testing efforts by focusing on complex methods with low coverage
02Establishing automated code quality gates within CI/CD workflows
03Identifying high-risk legacy code that requires immediate refactoring or unit tests