From 551048000f9ddfc14e6f6bf63348f49caacff8f6 Mon Sep 17 00:00:00 2001
From: Christian Oliff <christianoliff@yahoo.com>
Date: Sat, 2 Nov 2019 15:30:50 +0900
Subject: [PATCH] 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.
---
 .editorconfig | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 .editorconfig

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..20b17067dfa
--- /dev/null
+++ b/.editorconfig
@@ -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
-- 
GitLab