-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
87 lines (68 loc) · 1.32 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Root-level editorconfig file.
# This file describes what I hope are sane defaults for various file
# types.
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
max_line_length = 100
tab_width = 8
trim_trailing_whitespace = true
[COMMIT_EDITMSG]
max_line_length = 76
[*.patch]
insert_final_newline = false
trim_trailing_whitespace = false
[*.txt]
max_line_length = 78
[*.md]
max_line_length = 120
[{Makefile,{BSD,GNU}makefile,*.mk}]
indent_size = 8
indent_style = tab
indent_width = 8
[*.sql]
indent_size = 4
tab_width = 4
[*.go]
# Go may not have a line length limit, but I do. Otherwise, this
# should(?) be the same as gofmt.
indent_size = 8
indent_style = tab
max_line_length = 100
tab_width = 8
[*.rs]
# This should be close to what rustfmt wants.
max_line_length = 100
[*.py]
# black sets the line length to 88, so let's do the same
max_line_length = 88
[*.json]
indent_size = 2
[{*.[ch],*.[ch]pp}]
indent_size = 8
indent_style = tab
max_line_length = 100
tab_width = 8
[CMakeLists.txt]
indent_style = space
tab_width = 4
[*.[sS]]
indent_size = 8
indent_style = tab
tab_width = 8
[{.emacs,*.el,*.lisp}]
indent_size = 2
max_line_length = 100
tab_width = 2
[*.org]
indent_size = 2
tab_width = 2
[{*.yaml,*.yml}]
indent_size = 2
tab_width = 2
[*.rb]
indent_size = 2
tab_width = 2