Metrics Overview
AST Metrics provides a comprehensive set of metrics to help you understand the quality, structure, and health of your codebase.
We believe that code quality is not just about style. It's about: - Reliability: How likely is it to break? - Maintainability: How easy is it to change? - Architecture: Does the code structure match your mental model?
Available Metrics
📏 Volume & Complexity
- Volume: Lines of code, logical lines, comments. The baseline for everything.
- Cyclomatic Complexity: How many paths through your code?
- Maintainability Index: A global score for code health.
- Risk Score: Complexity × Churn. Where are the bugs hiding?
🔗 Coupling & Cohesion
- Coupling & Instability: How classes depend on each other.
- LCOM4: Do methods in a class belong together?
🏗️ Architecture & Team
- Community Detection: The natural structure of your code.
- Bus Factor: Knowledge distribution and risk.
- Architecture Map: Visualizing the system.