You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing indent_size to 2 in my .editorconfig, I noticed that the formatter wouldn't format certain lines that the linter would flag. It looks like the max line length calculation of the linter assumes the indent size is 4 rather than using the same indent size config that the formatter uses.
Here's a basic GDScript example that the linter flags as too long even though it should be within the max line length limit. This is supported by the fact that the formatter does not format the line since it respects the indent_size.
functest() ->Array[String]:
# This line is incorrectly flagged by the linter when indent_size is 2.return ["echo", "echo", "echo", "echo", "echo", "echo", "echo", "echo", "echo", "echo", "echooo"]
Thanks for the report. I've generally not put much attention on the linter itself yet (it's a community-contributed extra program), but definitely should take the time to make sure it respects the editor config and follows the same indent calculation as the formatter. Will do as time allows!
Activity
NathanLovato commentedon Aug 16, 2026
Thanks for the report. I've generally not put much attention on the linter itself yet (it's a community-contributed extra program), but definitely should take the time to make sure it respects the editor config and follows the same indent calculation as the formatter. Will do as time allows!
[-]Linter doesn't respect indent size[/-][+]Linter: doesn't respect indent size[/+]Linter: add stdin support and use indent size setting