Skip to content

GDscript CLI checking tool #20513

Description

@rcorre

From #20503:

Not for now. --check-only just means that the editor will close as soon as it has loaded the script. A proper script validation tool would need to be implemented differently.

I couln't find an existing issue for a "proper script validation tool", so I'm opening this as an official feature request.

Basic features would include:

  • Runnable from the command line on a single script
  • Consistent, machine-readable error format (compatible with e.g. vim's errorformat)
  • Produces errors for invalid syntax
  • Uses an existing godot instance rather than launching a new instance

"Nice to have" features include:

  • Usable without any godot instance running
  • Style warnings (e.g. nonstandard indentations)
  • Linting (unused variables, mismatched string format, ect.)

I think --check-only currently satisfies the first 3 basic features, so the only thing missing is to not open a new instance of godot to lint every script (I'd like to check syntax automatically on saving a .gd file with neomake).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions