aboutsummaryrefslogtreecommitdiff
path: root/.editorconfig
diff options
context:
space:
mode:
authorAlex Nicksay <nicksay@google.com>2017-08-02 10:58:43 -0400
committerEugene Kliuchnikov <eustas@google.com>2017-08-02 16:58:43 +0200
commitbc541f74e11af3ae36606d7439c99c62c80afa0c (patch)
treeec55b778706ce705ec29aaa1bffa06def45dfb05 /.editorconfig
parent52441069ef31c3c02a4aecad727f2ec5a17ab68b (diff)
downloadbrotli-bc541f74e11af3ae36606d7439c99c62c80afa0c.zip
brotli-bc541f74e11af3ae36606d7439c99c62c80afa0c.tar.gz
brotli-bc541f74e11af3ae36606d7439c99c62c80afa0c.tar.bz2
Add an EditorConfig file to provide consistent style across editors. (#579)
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig40
1 files changed, 40 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..17ed3c1
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,40 @@
+# http://editorconfig.org
+# Consistent coding style across different editors.
+
+# Top-most file
+root = true
+
+# Global styles:
+# - indent 2 spaces
+# - add final new line
+# - trim trailing whitespace
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 2
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+# BUILD:
+# - indent 4 spaces
+[BUILD]
+indent_size = 4
+
+# Makefile:
+# - indent 1 tab
+[Makefile]
+indent_size = tab
+indent_style = tab
+
+# Markdown:
+# - indent 4 spaces
+# - trailing whitespace is significant
+[*.md]
+indent_size = 4
+trim_trailing_whitespace = false
+
+# Python
+# - indent 4 spaces
+[*.py]
+indent_size = 4