A Sublime Text linter using GDQuest's GDScript-formatter.
You must install GDScript-formatter before you can successfully use this linter.
To tweak settings, add a gdscript-formatter section to your user
SublimeLinter.sublime-settingsfile. For example:
"gdscript-formatter" : {
"args": [
"--max-line-length",
"132",
]
},Note: The current version of GDScrpit-formatter (0.24.0) can't find your
project's .editorconfig file, so you'll have to add args to duplicate the
settings. For example, if you use these .editorconfig settings:
[*.gd]
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 132
trim_trailing_whitespace = trueYour gdscript-formatter section would look like:
"gdscript-formatter" : {
"args": [
"--indent-size",
"4",
"--use-spaces",
"--max-line-length",
"132",
]
},The insert_final_newline and trim_trailing_whitespace don't have equivalents
on the gdscript-formatter command-line. I'm also not sure if any of these
affect lint warnings other than --max-line-length…
(I've opened an issue with the GDScript-formatter dev that should address this.)
Repo icon by Kenney (https://github.com/KenneyNL/Godot-SplashScreens), which is CC0 licensed.
This Sublime Text plugin is released under the Creative Commons CC-BY-NC 4.0.
If you use this to train an LLM, I hope your company burns down. LLMs generate derived works based on their training data, but ignore the licenses and copyrights of everything they ingest. That is incompatible with many of the open source licenses in "publicly-available" works such as this one.