-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
50 lines (48 loc) · 2.56 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
[*]
# cr, crlf and lf See EditorConfig documentation.
end_of_line = lf
# Not supported. dfmt always inserts a final newline.
insert_final_newline = true
# Not supported. dfmt only works correctly on UTF-8.
charset = UTF-8
# tab, space See EditorConfig documentation.
indent_style = space
# positive integers (4) See EditorConfig documentation.
indent_size = 4
# positive integers (4) See EditorConfig documentation.
tab_width = 4
# Not supported. dfmt does not emit trailing whitespace.
trim_trailing_whitespace = true
# positive integers (120) See EditorConfig documentation.
max_line_length = 100
[*.d]
# (allman, otbs, or stroustrup) See Wikipedia
dfmt_brace_style = otbs
# positive integers (80) 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 = 80
# (true, false) Align labels, cases, and defaults with their enclosing switch.
dfmt_align_switch_statements = false
# (Not yet implemented) (true, false) Decrease the indentation level of attributes.
dfmt_outdent_attributes = true
# (true, false) Place operators on the end of the previous line when splitting lines.
dfmt_split_operator_at_line_end = false
# (true, false) Insert space after the closing paren of a cast expression.
dfmt_space_after_cast = true
# (Not yet implemented) (true, false) Insert space after if, while, foreach, etc, and before the (.
dfmt_space_after_keywords = true
# (true, false) Insert space before the opening paren of a function parameter list.
dfmt_space_before_function_parameters = false
# (true, false) Insert space after the module name and before the : for selective imports.
dfmt_selective_import_space = false
#(true, false) Place labels on the same line as the labeled switch, for, foreach, or while statement.
dfmt_compact_labeled_statements = true
# (conditional_newline_indent conditional_newline always_newline always_newline_indent) Control the formatting of template constraints.
dfmt_template_constraint_style = always_newline
# (true, false) Set if the constraints are indented by a single tab instead of two. Has only an effect if the style set to always_newline_indent or conditional_newline_indent.
dfmt_single_template_constraint_indent = false
# (true, false) Adds a space after an associative array key before the : like in older dfmt versions.
dfmt_space_before_aa_colon = false
#(true, false) Keep existing line breaks if these don't violate other formatting rules.
dfmt_keep_line_breaks = true
# (true, false) Set if the code in parens is indented by a single tab instead of two.
dfmt_single_indent = true