Skip to content

Commit 28ec21e

Browse files
committed
Oppdatere .editorconfig
1 parent 6fcfb4b commit 28ec21e

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

.editorconfig

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# This .editorconfig section approximates ktfmt's formatting rules. You can include it in an
2+
# existing .editorconfig file or use it standalone by copying it to <project root>/.editorconfig
3+
# and making sure your editor is set to read settings from .editorconfig files.
4+
#
5+
# It includes editor-specific config options for IntelliJ IDEA.
6+
#
7+
# If any option is wrong, PR are welcome
8+
9+
[{*.kt,*.kts}]
10+
indent_style = space
11+
insert_final_newline = true
12+
max_line_length = off
13+
indent_size = 4
14+
ij_continuation_indent_size = 4
15+
ij_java_names_count_to_use_import_on_demand = 9999
16+
ij_kotlin_align_in_columns_case_branch = false
17+
ij_kotlin_align_multiline_binary_operation = false
18+
ij_kotlin_align_multiline_extends_list = false
19+
ij_kotlin_align_multiline_method_parentheses = false
20+
ij_kotlin_align_multiline_parameters = true
21+
ij_kotlin_align_multiline_parameters_in_calls = false
22+
ij_kotlin_allow_trailing_comma = false
23+
ij_kotlin_allow_trailing_comma_on_call_site = false
24+
ij_kotlin_assignment_wrap = normal
25+
ij_kotlin_blank_lines_after_class_header = 0
26+
ij_kotlin_blank_lines_around_block_when_branches = 0
27+
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
28+
ij_kotlin_block_comment_at_first_column = true
29+
ij_kotlin_call_parameters_new_line_after_left_paren = true
30+
ij_kotlin_call_parameters_right_paren_on_new_line = false
31+
ij_kotlin_call_parameters_wrap = on_every_item
32+
ij_kotlin_catch_on_new_line = false
33+
ij_kotlin_class_annotation_wrap = split_into_lines
34+
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
35+
ij_kotlin_continuation_indent_for_chained_calls = true
36+
ij_kotlin_continuation_indent_for_expression_bodies = true
37+
ij_kotlin_continuation_indent_in_argument_lists = true
38+
ij_kotlin_continuation_indent_in_elvis = false
39+
ij_kotlin_continuation_indent_in_if_conditions = false
40+
ij_kotlin_continuation_indent_in_parameter_lists = false
41+
ij_kotlin_continuation_indent_in_supertype_lists = false
42+
ij_kotlin_else_on_new_line = false
43+
ij_kotlin_enum_constants_wrap = off
44+
ij_kotlin_extends_list_wrap = normal
45+
ij_kotlin_field_annotation_wrap = off
46+
ij_kotlin_finally_on_new_line = false
47+
ij_kotlin_if_rparen_on_new_line = false
48+
ij_kotlin_import_nested_classes = false
49+
ij_kotlin_imports_layout = *
50+
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
51+
ij_kotlin_keep_blank_lines_before_right_brace = 0
52+
ij_kotlin_keep_blank_lines_in_code = 1
53+
ij_kotlin_keep_blank_lines_in_declarations = 1
54+
ij_kotlin_keep_first_column_comment = true
55+
ij_kotlin_keep_indents_on_empty_lines = false
56+
ij_kotlin_keep_line_breaks = true
57+
ij_kotlin_lbrace_on_next_line = false
58+
ij_kotlin_line_comment_add_space = false
59+
ij_kotlin_line_comment_at_first_column = true
60+
ij_kotlin_method_annotation_wrap = split_into_lines
61+
ij_kotlin_method_call_chain_wrap = normal
62+
ij_kotlin_method_parameters_new_line_after_left_paren = true
63+
ij_kotlin_method_parameters_right_paren_on_new_line = true
64+
ij_kotlin_method_parameters_wrap = on_every_item
65+
ij_kotlin_name_count_to_use_star_import = 9999
66+
ij_kotlin_name_count_to_use_star_import_for_members = 9999
67+
ij_kotlin_parameter_annotation_wrap = off
68+
ij_kotlin_space_after_comma = true
69+
ij_kotlin_space_after_extend_colon = true
70+
ij_kotlin_space_after_type_colon = true
71+
ij_kotlin_space_before_catch_parentheses = true
72+
ij_kotlin_space_before_comma = false
73+
ij_kotlin_space_before_extend_colon = true
74+
ij_kotlin_space_before_for_parentheses = true
75+
ij_kotlin_space_before_if_parentheses = true
76+
ij_kotlin_space_before_lambda_arrow = true
77+
ij_kotlin_space_before_type_colon = false
78+
ij_kotlin_space_before_when_parentheses = true
79+
ij_kotlin_space_before_while_parentheses = true
80+
ij_kotlin_spaces_around_additive_operators = true
81+
ij_kotlin_spaces_around_assignment_operators = true
82+
ij_kotlin_spaces_around_equality_operators = true
83+
ij_kotlin_spaces_around_function_type_arrow = true
84+
ij_kotlin_spaces_around_logical_operators = true
85+
ij_kotlin_spaces_around_multiplicative_operators = true
86+
ij_kotlin_spaces_around_range = false
87+
ij_kotlin_spaces_around_relational_operators = true
88+
ij_kotlin_spaces_around_unary_operator = false
89+
ij_kotlin_spaces_around_when_arrow = true
90+
ij_kotlin_variable_annotation_wrap = off
91+
ij_kotlin_while_on_new_line = false
92+
ij_kotlin_wrap_elvis_expressions = 1
93+
ij_kotlin_wrap_expression_body_functions = 1
94+
ij_kotlin_wrap_first_method_in_call_chain = false
95+
96+
[gradlew.bat]
97+
end_of_line = crlf
98+
99+
[{*.yaml,*.yml}]
100+
indent_size = 2

0 commit comments

Comments
 (0)