Fix review findings mechanically
godot_fixApplies mechanical fixes for Godot review findings, rewriting only expected lines and optionally saving changes while listing unfixable lines with reasons.
Instructions
Apply the mechanical fixes for review findings instead of editing them one by one: api/coroutine-without-await, api/freed-check-order, api/get-meta-null-default, api/infer-variant, api/multimesh-format-after-count, api/timer-start-outside-tree, quality/mojibake, quality/standalone-ternary, quality/string-signal. Each fix rewrites only the line a finding points to, only when it looks exactly as expected, and is labelled safe (it only removes the problem: a freed check put first, get_meta() with has_meta(), a lone ternary as if/else, text encoded twice decoded, emit_signal() as signal.emit(), a MultiMesh format moved before instance_count, Timer.start() moved after add_child(), weakref() typed WeakRef) or check (it changes more: an await added to a coroutine call makes its caller a coroutine; a guessed type). Without write it shows the changes; with write: true it applies them and reviews the changed files again, returning what is left. Only safe fixes unless include_check: true. Lines it cannot fix are listed with the reason. Run godot_review first to see the findings, and godot_check after writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The project folder, or any file or folder inside it (Godotwright walks up to project.godot). Relative paths start at the server's folder. Default: the current project. | |
| files | No | only these res:// files | |
| rules | No | only these rules (fixable: api/coroutine-without-await, api/freed-check-order, api/get-meta-null-default, api/infer-variant, api/multimesh-format-after-count, api/timer-start-outside-tree, quality/mojibake, quality/standalone-ternary, quality/string-signal) | |
| write | No | write the fixes (default false: show them only) | |
| detail | No | brief: short output with capped lists; full: everything (default for this premium profile: full). | |
| include_check | No | also apply fixes labelled check (default false) |