-
Notifications
You must be signed in to change notification settings - Fork 295
/
.editorconfig
44 lines (39 loc) · 1.25 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
root = true
[*]
max_line_length = 170
indent_style = space
end_of_line = lf
trim_trailing_whitespace = true
charset = utf-8
[*.yml]
indent_style = space
indent_size = 2
[*.xml]
indent_style = space
indent_size = 2
[*.sh]
indent_style = space
indent_size = 2
[*.d]
indent_size = 4
# allman, otbs or stroustrup - see https://en.wikipedia.org/wiki/Indent_style
dfmt_brace_style = otbs
# The formatting process will usually keep lines below this length, but they may be up to max_line_length columns long.
dfmt_soft_max_line_length = 160
# Place operators on the end of the previous line when splitting lines
dfmt_split_operator_at_line_end = false
# Insert space after the closing paren of a cast expression
dfmt_space_after_cast = true
# Insert space after the module name and before the : for selective imports
dfmt_selective_import_space = true
# Place labels on the same line as the labeled switch, for, foreach, or while statement
dfmt_compact_labeled_statements = true
#
# Not yet implemented:
#
# Align labels, cases, and defaults with their enclosing switch
dfmt_align_switch_statements = true
# Decrease the indentation level of attributes
dfmt_outdent_attributes = true
# Insert space after if, while, foreach, etc, and before the (
dfmt_space_after_keywords = true