Given I have an .editorconfig file that dictates consistent indent, line endings, trailing whitespace, etc.
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
As a developer, I want to fix all files consistently with a command-line tool that understands .editorconfig files. I want to avoid tedious tasks, for instance, manually open and change files.
I imagine if there was a command like for example:
editorconfix.sh --autofix .
Which tools exist for this purpose? What scripts do you use?