Closed quimnuss closed 5 months ago
Sorry, I have no idea. Maybe someone else will be able to answer that...
If the creator of this awesome tool doesn't know, I don't think anybody will know how to hack the godot editor to use external linting. It does work on vscode, althought some linting issues would be nice to have proposed fixes (e.g. sort definitions)
Should I close this?
If you want some additional hints/info in VSCode when using this as a linter, that seems doable via a combination of changes to this code and enhancements to https://github.com/EddieDover/vscode-formatter-godot (or whatever VSCode extension you use for running this).
Right now that extension just prints the output from gdlint verbatim. I could see either adding an option to gdlint to give some more helpful output, including links to the docs, and/or something in the/an extension to translate the gdlint output into more helpful output.
As to "quick fixes", that would require digging into how to ask the IDE to perform some of its tricks like reformatting variable names and such. I have no idea how that works now in IDEs, but in theory it is possible? Again, in VSCode, not Godot's built in editor.
It's absolutely possible, I created an asset for this a week ago in combination with gdlint: https://godotengine.org/asset-library/asset/2520
Not an issue but I couldn't find the information anywhere. Is it possible to display the linting hints in the Godot editor?
It's difficult to correct the linting warnings that gdformat doesn't fix.
Here's my pre-commit