.editorconfig (1768B)
1 # This is an .editorconfig that ktlint will "stop" at. 2 3 # If an .editorconfig file exists in any parent directory of the checkout 4 # directory, ktlint will fail because it uses those settings to determine what 5 # the indentation should be. 6 7 root = True 8 9 [*.{kt,kts}] 10 ij_kotlin_allow_trailing_comma_on_call_site=true 11 ij_kotlin_allow_trailing_comma=true 12 indent_size = 4 13 indent_style = space 14 insert_final_newline = true 15 16 ktlint_argument_list_wrapping_ignore_when_parameter_count_greater_or_equal_than = 13 17 ktlint_function_naming_ignore_when_annotated_with=Composable 18 19 # disabled rules we should decide whether to enable or not 20 ktlint_standard_annotation = disabled 21 ktlint_standard_blank-line-before-declaration = disabled 22 ktlint_standard_blank-line-between-when-conditions = disabled 23 ktlint_standard_chain-method-continuation = disabled 24 ktlint_standard_class-signature = disabled 25 ktlint_standard_enum-wrapping = disabled 26 ktlint_standard_function-expression-body = disabled 27 ktlint_standard_function-signature = disabled 28 ktlint_standard_if-else-wrapping = disabled 29 ktlint_standard_indent = disabled 30 ktlint_standard_multiline-expression-wrapping = disabled 31 ktlint_standard_no-empty-first-line-in-class-body = disabled 32 ktlint_standard_statement-wrapping = disabled 33 ktlint_standard_string-template-indent = disabled 34 ktlint_standard_when-entry-bracing = disabled 35 36 # rules that enforce style we don't want 37 ktlint_standard_backing-property-naming = disabled # it would force making backed properties public. 38 ktlint_standard_expression-operand-wrapping = disabled # noisy and doesn't improve readability much 39 ktlint_standard_max-line-length = disabled # already enabled in detekt 40 ktlint_standard_no-consecutive-comments = disabled # it would limit one line comments to one per line