aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-17 19:24:48 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-17 19:24:48 -0400
commitac46e04feaf3efd9c97a68922678214d963df322 (patch)
treeab264e56041a6bc645ff480579b39b9344801e4c
parent58ac00fce88b70de78c30a5b9ee1db051f2e1c96 (diff)
parent340fcc7e2e1c1c78bb03c997601bf57bde9bf8e6 (diff)
downloadtor-ac46e04feaf3efd9c97a68922678214d963df322.tar.gz
tor-ac46e04feaf3efd9c97a68922678214d963df322.zip
Merge branch 'maint-0.3.1' into release-0.3.1
-rw-r--r--.editorconfig33
1 files changed, 33 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..27ed90fafd
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,33 @@
+# this should work for all editors that support .editorconfig!
+#
+# on debian, emacs users should install elpa-editorconfig and vim
+# users should install vim-editorconfig.
+
+root = true
+
+[*]
+indent_style = space
+# this remove final newline in some editors, instead of inserting it
+# insert_final_newline = true
+trim_trailing_whitespace = true
+end_of_line = lf
+charset = utf-8
+max_line_length = 79
+
+[*.py]
+indent_size = 4
+# to do not have final newline in python code
+insert_final_newline = true
+
+[*.c, *.h]
+# done in tests and other cases do not use 2 spaces identations, so this
+# should be commented on those cases
+indent_size = 2
+trim_trailing_whitespace = true
+
+[Makefile, *.am]
+indent_style = tab
+
+[*-spec.txt]
+# specs seem to have 76 chars max per lines as RFCs
+max_line_length = 76 \ No newline at end of file