Repository navigation
Configuration reference
Optional, at the repo root. Every tool works with stock defaults; a section overrides only what it
names, and a repo with no godot-devkit.toml behaves byte-identically to one declaring the defaults.
check <gate> --help prints each gate's section in full.
The block below shows common settings. The complete, tested key inventory is
src/godot_devkit/data/godot-devkit.example.toml in the repository.
[roster]
checks = ["warnings", "props", "defaults", "rng", "tres-comment", "unit-disk"]
# replaces the stock roster for THIS repo; an unknown name exits 2
[warnings]
errors = ["unused_variable", "integer_division"]
# each must be gdscript/warnings/<name>=2 under
# [debug] in project.godot; an empty list is refused
[uid]
exclude_prefixes = ["addons/"] # scopes every uid check
[tres]
exclude_prefixes = ["addons/"]
baseline = { "scenes/legacy/hub.tscn" = 7 } # existing debt, per file at its CURRENT finding
# count; held and counted every run, and only shrinks
[props]
exclude_prefixes = ["addons/"]
baseline = { "scenes/legacy/hub.tscn" = 2 }
extra_properties = { MyWidget = ["virtual_prop"] } # a `_get_property_list` shape the scanner
# cannot see; the key is the class_name (or an ancestor's) or
# the engine type, and the carve-out applies only to it
[defaults]
exclude_prefixes = ["addons/"]
baseline = { "data/enemies/grunt.tres" = 3 }
[canonical] # opt-in: name it in [roster] checks to run it in `check all`
exclude_prefixes = ["addons/"]
[rng]
roots = ["systems/run/"] # stock ".": keep it NARROW — the roots that hold run-scoped randomness
allowlist = { "systems/run/dice.gd:roll" = "a cosmetic jitter; the reason is required" }
baseline = { "systems/run/loot_roll.gd" = 4 }
[tres_comment]
exclude_prefixes = ["addons/"]
baseline = { "data/legacy/tuning.tres" = 12 }
[unit_disk]
roots = ["tests/unit"]
forbidden_literals = { "a real save path" = ["user://saves/", "user://settings\\.json"] }
# a TABLE, reason = [regexes], like forbidden_calls — not a
# list; stock { "a real user:// path" = ["user://"] }
forbidden_calls = { "the live settings autoload" = ["SettingsManager\\.(save|load)_settings\\("] }
min_args = { "SaveService.save" = 2 }
baseline = { "tests/unit/test_save_roundtrip.gd" = 3 }
[test_shape] # opt-in, pure tracked-file line budget
integration_root = "tests/integration"
unit_root = "tests/unit"
cap = 300
ledger = { "tests/integration/test_big_flow.gd" = 812 }
[autoloads]
suffixes = { Manager = "emits", Registry = "inert" }
expected_prefixes = ["autoloads/core/", "autoloads/presentation/"]
[refs]
exclude_prefixes = [".git/", ".godot/", "addons/"]
[orphans]
vendored_prefixes = ["addons/"]
entry_point_prefixes = ["tools/"]
auto_discovered_prefixes = ["tests/", "data/"]
convention_files = ["default_bus_layout.tres"]
[stats]
tests = ["tests/"]
tools = ["tools/"]
vendored = ["addons/"] # list only the vendored addons; your own addon is game code
[ui_fit]
scenes = ["ui/gallery/"] # .tscn files or folders ending "/" (subfolders too)
smallest_window = [1280, 720]
largest_window = [3840, 2160]
large_text_hook = "" # "res://ui/text_size.gd:use_large_text": static func, no args
[pot]
output = "locale/messages.pot" # required by `godot-devkit pot`: repo-relative, ends in .pot;
# Godot stores no POT path in project.godotThe stock check all roster is the six names shown above. uid, tres, canonical, patterns
and test-shape remain individually callable and can be added to [roster] checks. The removed
[checks] godot spelling is invalid in 4.0. The warnings check also fails if
gdscript/warnings/enable=false in project.godot. Omit warnings from the roster to disable that
policy. test-shape is an opt-in line budget over tracked integration scripts. Old keys
scenario_root, runner, header, header_ledger and infra are refused at exit 2; it has no
scenario-header or runner dependency. See Static checks and
Migrating from 3.x to 4.0.