浏览代码

Merge pull request #27490 from caarlos0/editorconfig

added editorconfig
Sebastiaan van Stijn 8 年之前
父节点
当前提交
0c767f0a6c
共有 2 个文件被更改,包括 14 次插入0 次删除
  1. 1 0
      .gitignore
  2. 13 0
      contrib/editorconfig

+ 1 - 0
.gitignore

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