cognitive-complexity
CommunityQuantify code understandability at a glance.
Software Engineering#refactoring#maintainability#complexity#static-analysis#code-analysis#cognitive#sonar
AuthorDisble
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Measures and explains Cognitive Complexity of source code, converting mental effort into a numeric score with actionable guidance.
Core Features & Use Cases
- Cognitive Complexity Calculation: quantifies the mental effort required to understand a method or function following the Sonar specification.
- Explainability & Guidance: annotates code with per-line scoring rationale to aid targeted refactoring for readability.
- Use Case: assess nested conditionals and loops to identify high-risk areas, compare competing implementations, and guide maintainability improvements.
Quick Start
Analyze a code sample to compute its Cognitive Complexity score using the tool.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: cognitive-complexity Download link: https://github.com/Disble/dlexa/archive/main.zip#cognitive-complexity 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.