-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
136 lines (113 loc) · 2.92 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
spelling_language = en-GB
# tab_width = 2
trim_trailing_whitespace = true
# rulers = 80, 120
max_line_length = 80
# REFERENCE:
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
# quote_type = double
# curly_bracket_next_line = false
# spaces_around_brackets = none
# indent_brace_style = K&R
# continuation_indent_size = 2
[*.bib]
# TODO
# REFERENCE: https://google.github.io/styleguide/cppguide.html
[*.{c,cc,cpp,h,hh,hpp}]
# indent_size = 2
# max_line_length = 80
# REFERENCE: https://google.github.io/styleguide/htmlcssguide.html
[*.{html,css}]
# indent_size = 2
max_line_length = 0
# REFERENCE: https://google.github.io/styleguide/csharp-style.html
[*.cs]
# indent_size = 2
max_line_length = 100
# REFERENCE:
# - https://google.github.io/styleguide/go/best-practices
# - https://go.dev/doc/effective_go
[*.go]
# indent_size = 2
max_line_length = 0
# REFERENCE: https://google.github.io/styleguide/javaguide.html
[*.java]
# indent_size = 2
max_line_length = 100
# REFERENCE: https://google.github.io/styleguide/jsguide.html
[*.{js,ts}]
# indent_size = 2
# max_line_length = 80
# REFERENCE: https://google.github.io/styleguide/jsoncstyleguide.xml
[*.json]
# TODO
# REFERENCE:
# - https://github.com/luarocks/lua-style-guide
# - https://roblox.github.io/lua-style-guide/
# - http://lua-users.org/wiki/LuaStyleGuide
# TODO: Conflicting style guides
[*.lua]
indent_size = 2
max_line_length = 0
# REFERENCE: https://google.github.io/styleguide/docguide/style.html
[*.md]
indent_size = 4
# max_line_length = 80
# REFERENCE:
# - https://perldoc.perl.org/perlstyle
# - https://www.oreilly.com/library/view/perl-best-practices/0596001738/
# - https://www.perlmonks.org/?node_id=477093
[*.pl]
indent_size = 4
max_line_length = 78
# REFERENCE: https://github.com/PoshCode/PowerShellPracticeAndStyle
[*.ps1{,.example}]
indent_size = 4
max_line_length = 115
quote_type = single
# REFERENCE: https://google.github.io/styleguide/pyguide.html
[*.py]
indent_size = 4
# max_line_length = 80
quote_type = single
# REFERENCE:
# - https://google.github.io/styleguide/Rguide.html
# - https://style.tidyverse.org/
[*.r]
# indent_size = 2
# max_line_length = 80
# REFERENCE: https://doc.rust-lang.org/nightly/style-guide/
[*.rs]
indent_size = 4
max_line_length = 100
# REFERENCE: https://google.github.io/styleguide/shellguide.html
[{*.sh,kickstart,install}]
# indent_size = 2
# max_line_length = 80
# REFERENCE:
# https://handbook.gitlab.com/handbook/enterprise-data/platform/sql-style-guide/
[*.sql]
# indent_size = 2
# max_line_length = 80
# ruler = 80, 100
# REFERENCE: https://google.github.io/swift/
[*.swift]
# indent_size = 2
max_line_length = 100
[*.{tex,sty,cls}]
# TODO
# REFERENCE: https://google.github.io/styleguide/vimscriptguide.xml
[*.vim]
# indent_size = 2
# max_line_length = 80
[*.{yaml,yml}]
# TODO
[Makefile]
indent_style = tab