mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-17 08:13:13 +00:00

The main thing of note is Spotless, which also bumps the version of Ktlint. I've been putting this off for a while[^1], as this changed a bunch of formatting, and Spotless's (broken) caching was making it hard to test. Ended up downloading ktlint and running it localy. [^1]: 8204944b5fdf2ec29ff7dcb112dc454b7710d981
53 lines
1.4 KiB
INI
53 lines
1.4 KiB
INI
# SPDX-FileCopyrightText: 2017 The CC: Tweaked Developers
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 4
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
|
|
ij_continuation_indent_size = 4
|
|
ij_any_do_while_brace_force = if_multiline
|
|
ij_any_if_brace_force = if_multiline
|
|
ij_any_for_brace_force = if_multiline
|
|
ij_any_spaces_within_array_initializer_braces = true
|
|
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
|
|
[*.sexp]
|
|
indent_size = 2
|
|
|
|
[*.yml]
|
|
indent_size = 2
|
|
|
|
[*.{kt,kts}]
|
|
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
|
|
ij_kotlin_continuation_indent_size = 4
|
|
ij_kotlin_spaces_around_equality_operators = true
|
|
|
|
ij_kotlin_allow_trailing_comma = true
|
|
ij_kotlin_allow_trailing_comma_on_call_site = true
|
|
|
|
# Prefer to handle these manually
|
|
ij_kotlin_method_parameters_wrap = off
|
|
ij_kotlin_call_parameters_wrap = off
|
|
ij_kotlin_extends_list_wrap = off
|
|
|
|
ktlint_code_style = intellij_idea
|
|
ktlint_standard_class-naming = disabled
|
|
ktlint_standard_class-signature = disabled
|
|
ktlint_standard_function-naming = disabled
|
|
ktlint_standard_no-wildcard-imports = disabled
|
|
|
|
# FIXME: These two are disable right now as they're over-eager in putting things
|
|
# on the same line. We should set max_line_length and handle this properly.
|
|
ktlint_standard_function-signature = disabled
|
|
ktlint_standard_function-expression-body = disabled
|