Create .editorconfig

Fixes: #9059
It'd be good to add a .editorconfig file so that anyone contributing to Nextcloud can follow the same rules for tabs/spaces, newlines, charsets etc.
Editorconfig (http://editorconfig.org/) is very popular and it's become standard for open-source projects to include one. I based the rules on the current code-base.
This commit is contained in:
Christian Oliff 2019-11-02 15:30:50 +09:00 committed by GitHub
parent 686f1931ae
commit 551048000f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

17
.editorconfig Normal file
View File

@ -0,0 +1,17 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[*.php]
indent_size = 8
[*.md]
trim_trailing_whitespace = false