Browse Source

Merge pull request #27490 from caarlos0/editorconfig

added editorconfig
Sebastiaan van Stijn 8 years ago
parent
commit
0c767f0a6c
2 changed files with 14 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 13 0
      contrib/editorconfig

+ 1 - 0
.gitignore

@@ -9,6 +9,7 @@
 .DS_Store
 # a .bashrc may be added to customize the build environment
 .bashrc
+.editorconfig
 .gopath/
 .go-pkg-cache/
 autogen/

+ 13 - 0
contrib/editorconfig

@@ -0,0 +1,13 @@
+root = true
+
+[*]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+indent_style = tab
+indent_size = 4
+trim_trailing_whitespace = true
+
+[*.md]
+indent_size = 2
+indent_style = space