summaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-07-24 08:20:08 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-24 08:20:49 +0200
commitab545014a1d3cc1998d8582848693761587ade20 (patch)
tree6900b66eae40abb05828e214b4b589d3b3d9b881 /.editorconfig
parent82b1d1da2b899461493e95a6bd12d156936f5d7a (diff)
downloadlibgit2-ab545014a1d3cc1998d8582848693761587ade20.tar.gz
editorconfig: update to match our coding style
Update editorconfig to match our coding style. Most importantly, we set up the tab width to be 8 characters instead of the default and use 2 spaces to indent YAML files.
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/.editorconfig b/.editorconfig
index d4b419012..34c5e9234 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,14 +1,16 @@
; Check http://editorconfig.org/ for more informations
-; Top-most EditorConfig file
root = true
-; tab indentation
[*]
indent_style = tab
+tab_width = 8
trim_trailing_whitespace = true
insert_final_newline = true
-; 4-column space indentation
+[*.yml]
+indent_style = space
+indent_size = 2
+
[*.md]
indent_style = space
indent_size = 4