add .editorconfig (#1951)

Resolves #1929
This commit is contained in:
Martin Weinelt 2020-03-08 19:18:17 +01:00 committed by GitHub
parent 68d970e91b
commit 1c2dc51b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

8
.editorconfig Normal file
View File

@ -0,0 +1,8 @@
# Top-most EditorConfig file
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab
charset = utf-8

View File

@ -67,5 +67,10 @@ apply:
- use tabs instead of spaces
- trailing whitespaces must be eliminated
- files need to end with a final newline
- newlines need to have unix line endings (lf)
To that end we provide a ``.editorconfig`` configuration, which is supported by most
of the editors out there.
If you add Lua scripts to gluon, check formatting with ``luacheck``.