1.2.0
🆕 Features
WARNING: The new rules have accidentally not been marked as experimental. This will be fixed in a bugfix!
-
Break dependency between string-template-indent and multiline-expression-wrapping - #2505, by @paul-dingemans
-
Allow string template to exceed max line length when it is the only element on a line - #2480, by @paul-dingemans
-
Add configuration setting for ignoring
argument-list-wrapping
above treshold of argument - #2481, by @paul-dingemans
NOTE: In code stylektlint_official
this threshold isunset
so that arguments are always wrapped. If this impacts your code too much, you can make it backward compatible by setting.editorconfig
propertyktlint_argument_list_wrapping_ignore_when_parameter_count_greater_or_equal_than
to value8
. For other code styles this property is initialized with value8
and as of that backward compatible by default. -
Ignore EOL comment that causes max_line_length to be exceeded, except in max-line-length rule - #2516, by @paul-dingemans
-
Add new rule for disallowing KDoc at non-whitelisted locations - #2548, by @paul-dingemans
-
Improve insert of suppression - #2546, by @paul-dingemans
-
Ignore modifier of backing property in
android_studio
code style - #2552, by @paul-dingemans -
Add rule to check spacing around square brackets 'square-brackets-spacing' - #2555, by @paul-dingemans
-
Add rule
blank-line-between-when-conditions
- #2564, by @paul-dingemans
🔧 Fixes
-
Prevent IllegalArgumentException in
argument-list-wrapping
rule - #2500, by @paul-dingemans -
Ignore function which is returned as result in a function body - #2526, by @paul-dingemans
-
Fix false positive newline expected before comment in enum - #2527, by @paul-dingemans
-
Report violation when parameter list is preceded by a comment - #2541, by @paul-dingemans
-
Ignore EOL comments in
value-argument-comment
andvalue-parameter-comment
- #2551, by @paul-dingemans -
Do not indent string template starting at first position of line - #2553, by @paul-dingemans
-
Prevent conflict when curly closing brace is followed by range (until) operator - #2554, by @paul-dingemans
-
Run argument-list-wrapping after function-signature - #2568, by @paul-dingemans
-
Ignore simple reference expressions in
chain-method-continuation
- #2569, by @paul-dingemans
📦 Dependencies
-
chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.8.0 - #2503, by @renovate[bot]
-
fix(deps): update dependency io.github.oshai:kotlin-logging-jvm to v6 - #2440, by @renovate[bot]
-
Replace gradle/gradle-build-action@v3 with gradle/actions/setup-gradle@v3 - #2518, by @paul-dingemans
-
chore(deps): update plugin kotlinx-binary-compatibiltiy-validator to v0.14.0 - #2522, by @renovate[bot]
-
chore(deps): update gradle/wrapper-validation-action action to v2 - #2523, by @renovate[bot]
-
chore(deps): update ffurrer2/extract-release-notes action to v2 - #2515, by @renovate[bot]
-
chore(deps): update dependency gradle to v8.6 - #2531, by @renovate[bot]
-
fix(deps): update dependency org.assertj:assertj-core to v3.25.3 - #2536, by @renovate[bot]
-
fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.10.2 - #2534, by @renovate[bot]
-
fix(deps): update dependency org.slf4j:slf4j-simple to v2.0.12 - #2538, by @renovate[bot]
-
fix(deps): update dependency org.codehaus.janino:janino to v3.1.12 - #2559, by @renovate[bot]
💬 Other
-
2550 clikt - #2556, by @paul-dingemans