-
Notifications
You must be signed in to change notification settings - Fork 11
/
.editorconfig
71 lines (59 loc) · 1.72 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
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file with UTF 8 encoding
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
max_line_length = 100
# IntelliJ specific rules for ANY source file
ij_continuation_indent_size = 2
ij_any_keep_blank_lines_in_code = 1
ij_any_keep_line_breaks = true
ij_any_catch_on_new_line = true
ij_any_else_on_new_line = true
ij_any_finally_on_new_line = true
ij_any_while_on_new_line = true
ij_any_class_annotation_wrap = off
ij_any_field_annotation_wrap = off
ij_any_method_annotation_wrap = off
ij_any_parameter_annotation_wrap = off
ij_any_variable_annotation_wrap = off
# IntelliJ JSON specific rules
[*.md]
ij_markdown_min_lines_around_header = 0
ij_markdown_min_lines_around_block_elements = 0
[*.json]
ij_json_space_after_colon = true
ij_json_space_after_comma = true
ij_json_space_before_colon = false
ij_json_space_before_comma = false
ij_json_spaces_within_braces = true
ij_json_spaces_within_brackets = true
ij_json_wrap_long_lines = true
# IntelliJ YAML specific rules
[*.{yaml,yml}]
ij_yaml_spaces_within_brackets = true
ij_yaml_spaces_within_braces = true
ij_yaml_keep_line_breaks = true
# IntelliJ HTML formatting
[*.{html,htm}]
ij_html_do_not_indent_children_of_tags = html
# 4 space indentation
[*.{java,js,ts,kt,kts,gradle,groovy,py}]
indent_size = 4
ij_continuation_indent_size = 4
# Go language uses tabs by default
[*.go]
indent_style = tab
# IntelliJ Kotlin specific rules
[*.{kt,kts}]
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_import_nested_classes = true
# Log files exception
[*.log]
max_line_length = 200