Analyze code quality and complexity metrics across your project. Supports 17+ languages.
bash
# Analyze current project
python3 scripts/code_metrics.py
# Analyze specific directory
python3 scripts/code_metrics.py /path/to/project
# JSON output
python3 scripts/code_metrics.py --json
# Skip complexity analysis (faster)
python3 scripts/code_metrics.py --no-complexity
# Exclude additional directories
python3 scripts/code_metrics.py --exclude migrations fixtures
RangeRiskMeaning1-4🟢 LowSimple, well-structured5-9🟢 ModerateAcceptable10-14🟡 HighConsider refactoring15+🔴 Very HighRefactor strongly recommended