Expose `excluded_directories` to `gdformat` and document the usage in both - linter and formatter
pylint has this feature with --ignore-patterns
Does gdlint have something similar?
i have installed Godot addons, and I want to exclude this from linting
Found it
excluded_directories: !!set
.git: null
addons: null
Is this documented anywhere?
Also, does this work for gdformat or only for gdlint?
Is this documented anywhere?
Also, does this work for
gdformator only forgdlint?
I've checked and it does not work for gdformat (although it internally uses it and sets .git).
Let's reopen and use this issue to bring it to gdformat as well as improving wiki/help pages.
Not documented, searched through the source code to find it
This would be a nice feature add.
Currently for my GitHub actions run, I can add the addons folder to gdlintrc and then use gdlint .,
but for gdformat I have to use gdformat --check $(find . -name '*.gd' -not -path "./addons/*") to avoid including the addons folder.
- id: run-gdformat
run: gdformat --check $(find . -name '*.gd' -not -path "./addons/*")
- id: run-gdlint
run: gdlint .
Having gdformat also read the gdlintrc file or a similar file would allow me to use a generic GitHub action file, along with simplifying its use elsewhere in my workflow.
I believe this is now accomplished by #286
What is left is to document it. I'm not sure how to edit the Wiki though.
Either I don't have permission or I just don't know how.
@chrisl8 you can't clone https://github.com/Scony/godot-gdscript-toolkit.wiki.git ?
@chrisl8 you can't clone
https://github.com/Scony/godot-gdscript-toolkit.wiki.git?
@Scony Yes, I can clone it, but I am not aware of any way to fork it and/or to make pull requests against it.
@chrisl8 you can't clone
https://github.com/Scony/godot-gdscript-toolkit.wiki.git?@Scony Yes, I can clone it, but I am not aware of any way to fork it and/or to make pull requests against it.
I confirm it's not possible to open PR for wiki. Well, let me carry the update myself then.