v0.3.0
GDMetrics for Godot 4 — v0.3.0
Pride Versioning DEFAULT release (PROUD.DEFAULT.SHAME). Early / pre-stable until 1.0.0.
Highlights
- HTML report: self-contained HTML with totals, top offenders, per-file table, and SVG C-COG bars (
--html-output/ Export HTML) - Dock secondary metrics: Nest, Params, LOC columns on file rows
- Structural gates:
structuralconfig keys for NEST / PARAMS / LOC warn+fail thresholds - JSON per-function CC: each function entry includes
"cc"alongside"cog" - CI threshold gates for CC / C-COG / structural metrics (exit code
1on fail)
Install
- Download
gdmetrics-v0.3.0.zip - Copy
addons/gdscript_complexity/andcli/into your Godot 4 project - Project → Project Settings → Plugins → enable GDScript Complexity Analyzer
- Optional: copy
examples/github-actions/complexity-check.ymlinto.github/workflows/
CLI
godot --headless --script cli/analyze_project.gd -- \
--project-path . --output report.json --csv-output report.csv --html-output report.htmlDocs
See README.md, docs/USER_GUIDE.md, docs/DISTRIBUTION.md, and docs/COMPATIBILITY.md in the zip.