2026
gdmetrics
Static complexity analyzer for Godot (GDScript) projects.
A Godot editor plugin and CLI that measures Cyclomatic Complexity and Cognitive Complexity for every GDScript function, then tells you what to fix first. The editor dock lists Top fixes with plain labels (OK / Hard to read / Fix soon) and jumps to the function; functions over the failure threshold get script editor annotations. The CLI exports JSON and CSV reports and a threshold gate for CI, with a GitHub Actions example. Two editions share one core: gdmetrics-g4 for Godot 4.2+ and gdmetrics-g3 for Godot 3.1+, tested across a local version matrix. Published on itch.io.
Stack
GDScript, Godot 3, Godot 4, GitHub Actions
Links
- Technical write-up: Measuring GDScript complexity without an AST
- Live site: japon-baligi.itch.io
- Source code (Godot 4): github.com/JaponBaligi/gdmetrics-g4
- Source code (Godot 3): github.com/JaponBaligi/gdmetrics-g3