-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
61 lines (44 loc) · 1.78 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
root = true
# Let's keep it short/minimal, with comments, so it's clear what is enforced in .editorconfig and why.
[*]
charset = utf-8
end_of_line = lf
# file size; diffs on small devices
indent_size = 2
indent_style = space
# simpler adhoc regular expressions search/replace
insert_final_newline = true
max_line_length = 120
tab_width = 2
trim_trailing_whitespace = true
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_any_keep_blank_lines_in_code = 3
ij_properties_keep_blank_lines = true
[{*.kt,*.kts}]
# new most official defaults on top so can be overridden below
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
# No aligns at all - too fancy/problematic
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
ij_kotlin_align_multiline_method_parentheses = false
ij_kotlin_align_multiline_parameters = true
ij_kotlin_align_multiline_parameters_in_calls = false
ij_kotlin_line_break_after_multiline_when_entry = false
# Trailing commas great for diffs; rearranging lines
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_imports_layout = *
# Let's try to avoid conflicts with files generated by github-workflows-kt
# https://github.com/typesafegithub/github-workflows-kt
[{*.yaml,*.yml}]
ij_yaml_indent_sequence_value = false
ij_yaml_spaces_within_braces = false
ij_yaml_spaces_within_brackets = false
# Let's try to avoid conflicts with files generated by IntelliJ Run Configurations.
# (Edit Configurations... -> Store as project file)
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.rng,*.tld,*.wadl,*.wsdl,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
ij_xml_space_inside_empty_tag = true
insert_final_newline = false