code-checker
OfficialFind oversized C/C++ code hotspots fast
Software Engineering#code quality#maintainability#c++#circular dependencies#refactoring guidance#code size analysis#gn build parsing
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you detect maintainability risks in C/C++ projects by identifying oversized files and functions and by exposing circular dependencies between directory modules that can slow builds and increase refactoring cost.
Core Features & Use Cases
- Large file analysis: Flags translation units and headers that exceed configurable effective-line thresholds, making them hard to navigate and review.
- Large function analysis: Finds functions whose effective line counts exceed thresholds, highlighting candidates for decomposition and simplification.
- Circular dependency detection: Parses GN build metadata and local includes to detect dependency cycles between directory-based modules, then generates a markdown report.
- Use case: When onboarding or before a refactor, scan a module’s directory to quickly pinpoint the largest maintainability hotspots and the architectural cycles to fix first.
Quick Start
Run the C/C++ code checker on your target directory or file to produce a markdown report of large files/functions and any detected circular dependencies.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: code-checker Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#code-checker 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.