FPtje / SublimeLinter-contrib-glualint

Linter for Garry's Mod Lua plugin for Sublime Text 3
MIT License
5 stars 2 forks source link

Auto indent triggers trailing whitespace #7

Closed shadow7483147 closed 3 years ago

shadow7483147 commented 3 years ago

Yeah, the logical answer is to just disable the trailing whitespace check, but will there be an option to check the indentation level of the next line of written code after a scope declaration (function, condition, etc) and check that against the next lines for indent level consistency until the scope ends? It's annoying that every vertical whitespace I use triggers trailing whitespace because of auto indent.

FPtje commented 3 years ago

The point of that warning is that you should enable the "trim trailing whitespace on save" option of your editor. That way, the indents on empty lines automatically get removed upon saving. Sublime can deal with scopes and trimming trailing whitespace very well iirc