-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
53 lines (43 loc) · 1.54 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
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
max_line_length = 160
trim_trailing_whitespace = true
insert_final_newline = true
[{.gitmodules}]
indent_style = tab
indent_size = 4
[*.{java,scala,rs,xml}]
indent_size = 4
[*.{kt,kts}]
indent_size = 4
ktlint_code_style = intellij_idea
ktlint_standard_max-line-length = 160
ktlint_standard = enabled
ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than=unset
ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than=unset
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than=unset
ktlint_standard_string-template-indent = disabled
ktlint_standard_trailing-comma-on-call-site = disabled
ktlint_standard_trailing-comma-on-declaration-site = disabled
# These two rules are too strict on whether parameters can be on multiple lines even though they could potentially fit on one line.
# Can't find a more specific rule to disable.
ktlint_standard_function-signature = disabled
ktlint_standard_class-signature = disabled
# This ends up correcting to something that intellij auto-formats back
ktlint_standard_condition-wrapping = disabled
[{Makefile,**.mk}]
# Use tabs for indentation (Makefiles require tabs)
indent_style = tab
indent_size = 4
[{*.py, *.pyi}]
indent_size = 4
max_line_length = 160
[{go.mod,go.sum,*.go}]
indent_style = tab
indent_size = 4