Merge branch 'maint-0.4.5' into maint-0.4.6
[tor.git] / .editorconfig
blob27ed90fafd9ca006550bad551baa93c1547b9041
1 # this should work for all editors that support .editorconfig!
3 # on debian, emacs users should install elpa-editorconfig and vim
4 # users should install vim-editorconfig.
6 root = true
8 [*]
9 indent_style = space
10 # this remove final newline in some editors, instead of inserting it
11 # insert_final_newline = true
12 trim_trailing_whitespace = true
13 end_of_line = lf
14 charset = utf-8
15 max_line_length = 79
17 [*.py]
18 indent_size = 4
19 # to do not have final newline in python code
20 insert_final_newline = true
22 [*.c, *.h]
23 # done in tests and other cases do not use 2 spaces identations, so this
24 # should be commented on those cases
25 indent_size = 2
26 trim_trailing_whitespace = true
28 [Makefile, *.am]
29 indent_style = tab
31 [*-spec.txt]
32 # specs seem to have 76 chars max per lines as RFCs
33 max_line_length = 76