Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2020-02-28 12:08:03 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2020-02-28 12:08:03 +0300
commitb3d8c7a939ff567ee07010d95f99f1ccec399dfd (patch)
tree9e6f0b43ac09276d62285ad14fda36901dd9dcfd
parent64228075aeb6479993520735543c6ffff6ce5f20 (diff)
editorconfig: add initial editorconfig file
Add an editorconfig file that sets up the expected coding style for several file types. Values for the given filetypes have been taken from other GitLab projects and were verified for a small sample count.
-rw-r--r--.editorconfig26
1 files changed, 26 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..01307ef4a
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,26 @@
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+charset = utf-8
+end_of_line = lf
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[Makefile]
+indent_style = tab
+indent_size = unset
+
+[**.go]
+indent_style = tab
+indent_size = 8
+tab_width = 8
+
+[**.rb]
+indent_size = 2
+indent_style = space
+
+[**.yml]
+indent_style = space
+indent_size = 2