gdtypecheck

CLI Reference

Every gdtypecheck flag.

gdtypecheck [OPTIONS] [TARGET]...

TARGETs are files or folders to check, relative to the project root; the default is the whole project.

FlagDefaultDescription
--project-root <DIR>.Godot project to check
--godot-exe <PATH>$GODOT_EXE, then godotGodot 4.5+ executable
--format <FORMAT>texttext, json, or sarif (SARIF 2.1.0)
--strictoffAlso report method and property accesses the compiler can't verify, such as a method that doesn't exist on one of your typed classes
--no-warningsoffDon't report warnings; about twice as fast
--warnings-as-errorsoffExit with 1 when there are warnings
--timeout <SECONDS>300Time to wait for each Godot run
-V, --versionPrint the version

Exit codes: 0 no problems, 1 problems found, 2 the check could not run.