I've written a Sublime Text plugin to use GDScript-formatter as a linter (I'll submit a PR for the README as soon as it's ready). When run this way, 0.24.0 can't find your project's .editorconfig.
This feature request is to add a --config argument so you can specify the location of a .editorconfig file as a convenience so you don't have to duplicate its settings in Sublime Text's config.
Alternatively, gdscript-formatter lint could be made to work in stdin mode; I couldn't tell if this was intentional or not:
# Guessed from the docs/--help output:
$ cat dice.gd | gdscript-formatter lint
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.
# Another CLI convention:
$ cat dice.gd | gdscript-formatter lint -
Error: No GDScript files found in the arguments provided. Please provide at least one .gd file or directory containing .gd files.
Maybe a --stdin argument to force this? I couldn't tell from the code, I can't Rust yet.
I've written a Sublime Text plugin to use GDScript-formatter as a linter (I'll submit a PR for the README as soon as it's ready). When run this way, 0.24.0 can't find your project's
.editorconfig.This feature request is to add a
--configargument so you can specify the location of a.editorconfigfile as a convenience so you don't have to duplicate its settings in Sublime Text's config.Alternatively,
gdscript-formatter lintcould be made to work instdinmode; I couldn't tell if this was intentional or not:Maybe a
--stdinargument to force this? I couldn't tell from the code, I can't Rust yet.