fix(deps): update ktlint libs to v1.7.1 #1648
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.0
->1.7.1
1.5.0
->1.7.1
Release Notes
pinterest/ktlint (com.pinterest.ktlint:ktlint-test)
v1.7.1
Compare Source
🔧 Fixes
modifier-list-spacing
andcontext-receiver-list-wrapping
- #3077, by @paul-dingemansoperand-expression-wrapping
rule as experimental - #3081, by @paul-dingemans💬 Other
v1.7.0
Compare Source
🆕 Features
Context receiver / parameters
With upgrade to Kotlin 2.2.0, Ktlint 1.7.0 supports context parameters.
Add
context-receiver-list-wrapping
rule - #3034, by @paul-dingemansAdd context receiver list to
modifier-order
rule - #3031, by @paul-dingemansIgnore context parameters in rule
context-receiver-wrapping
- #3033, by @paul-dingemansOther rule changes
Do not run
no-unused-imports
rule by default - #3039, by @paul-dingemansThe
no-unused-import
rule is no longer run by default as it keeps causing problems. It will be removed in Ktlint2.0
. Until then, the rule can still be run, when enabled explicitly in.editorconfig
.Add experimental rule
expression-operand-wrapping
- #3056, by @paul-dingemansThis rule aligns wrapping of arithmetic and logical multiline expressions. The
condition-wrapping
rule which did something similar for logical multiline expressions only no longer reports and fixes violations. It will be removed in Ktlint2.0
.Other features
Deprecate functions in
ASTNodeExtensions
, and where applicable provide property accessors - #3026, by @paul-dingemansWhen using
ASTNodeExtensions
please replace function calls with the new (temporary) property accessors. The temporary property accessors are needed to maintain backwards compatability with Java integration. In Ktlint2.0
the functions will be removed, and the temporary property accessors will be replaced with final names.Suppress warning "sun.misc.Unsafe::objectFieldOffset" in Ktlint CLI (Java24+) - #3040, by @paul-dingemans
Suppress error "A restricted method in java.lang.System has been called" on Java 24 in KtLint CLI only - #3043, by @paul-dingemans
Remove unneeded "--add-opens=java.base/java.lang=ALL-UNNAMED" - #3044, by @paul-dingemans
🔧 Fixes
Do not remove an empty value parameter list from a call expression when it is nested - #3017, by @paul-dingemans
Clarify violation message in
filename
rule - #3046, by @paul-dingemans📦 Dependencies
chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v1 - #2989, by @renovate[bot]
chore(deps): update plugin com.gradle.develocity to v4.0.2 - #2996, by @renovate[bot]
fix(deps): update junit5 monorepo - #3005, by @renovate[bot]
fix(deps): update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.2.0-rc3 - #3015, by @renovate[bot]
fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.13.2 - #3020, by @renovate[bot]
fix(deps): update dependency org.junit.platform:junit-platform-launcher to v1.13.2 - #3021, by @renovate[bot]
fix(deps): update kotlin monorepo to v2.2.0 - #3018, by @renovate[bot]
chore(deps): update plugin shadow to v8.3.8 - #3030, by @renovate[bot]
fix(deps): update junit-framework monorepo - #3037, by @renovate[bot]
chore(deps): update plugin kotlinx-binary-compatibiltiy-validator to v0.18.1 - #3050, by @renovate[bot]
fix(deps): update dependency dev.drewhamilton.poko:poko-gradle-plugin to v0.19.1 - #3053, by @renovate[bot]
fix(deps): update dependency com.google.jimfs:jimfs to v1.3.1 - #3054, by @renovate[bot]
chore(deps): update dependency gradle to v9.0.0-rc-2 - #3055, by @renovate[bot]
💬 Other
Update publishing URLs to point to Central Portal OSSRH staging API - #3006, by @shashachu
Update publishing credentials to use new Central Portal username/token - #3007, by @shashachu
Improve build - #3025, by @mateuszkwiecinski
Bump
poko-gradle-plugin
with a workaround (enforce compatible Kotlin version) - #3035, by @mateuszkwiecinskiJava 24 - #3049, by @paul-dingemans
Make
build-logic
plugins expose binary plugins - #3047, by @mateuszkwiecinskiCleanup Java 24 bump - #3051, by @mateuszkwiecinski
v1.6.0
Compare Source
🆕 Features
Add configuration option to handle (certain) annotation with parameters identical to annotations without parameters - #2950, by @paul-dingemans
Set system properties to prevent failure when running in ktlint-intellij-plugin with custom installation - #2970, by @paul-dingemans
🔧 Fixes
Deprecations in 1.5.0 - #2913, by @paul-dingemans
Fix incorrect error message in PropertyNamingRule when enforcing PascalCase - #2934, by @lsurvila
Sort RuleProvider declarations in StandardRuleSetProvider - #2941, by @3flex
Remove usages of getPsi() - #2901, by @mgroth0
Refactor KotlinPsiFileFactory to KotlinCompiler - #2951, by @paul-dingemans
Reduces the number of conversions between "psi" and ASTNode - #2964, by @paul-dingemans
Fix slow response of the git pre commit hook as generated by ktlint - #2978, by @paul-dingemans
Move logic of missing whitespace before block comment to NoSingleLineBlockCommentRule - #2979, by @paul-dingemans
Report and fix a single line condition wrapped between parentheses with an unexpected newline - #2980, by @paul-dingemans
Do not wrap an operation reference after an annotated expression to a separate new line - #2983, by @paul-dingemans
📦 Dependencies
fix(deps): update dependency org.jetbrains.dokka:dokka-gradle-plugin to v2 - #2906, by @renovate[bot]
chore(deps): update plugin kotlinx-binary-compatibiltiy-validator to v0.17.0 - #2907, by @renovate[bot]
Complete upgrade Dokka to V2 - #2914, by @paul-dingemans
fix(deps): update dependency ch.qos.logback:logback-classic to v1.3.15 - #2917, by @renovate[bot]
fix(deps): update dependency org.assertj:assertj-core to v3.27.3 - #2927, by @renovate[bot]
chore(deps): update plugin shadow to v8.3.6 - #2935, by @renovate[bot]
fix(deps): update dependency com.github.ajalt.clikt:clikt to v5.0.3 - #2938, by @renovate[bot]
fix(deps): update dependency org.slf4j:slf4j-simple to v2.0.17 - #2947, by @renovate[bot]
chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.10.0 - #2963, by @renovate[bot]
fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.12.2 - #2945, by @renovate[bot]
fix(deps): update dependency io.github.oshai:kotlin-logging-jvm to v7.0.7 - #2965, by @renovate[bot]
fix(deps): update dependency io.github.hakky54:logcaptor to v2.11.0 - #2968, by @renovate[bot]
chore(deps): update dependency gradle to v8.14 - #2971, by @renovate[bot]
chore(deps): update plugin com.gradle.develocity to v4.0.1 - #2972, by @renovate[bot]
fix(deps): update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.2.0-beta2 - #2977, by @renovate[bot]
fix(deps): update dependency org.ec4j.core:ec4j-core to v1.1.1 - #2987, by @renovate[bot]
fix(deps): update dependency dev.drewhamilton.poko:poko-gradle-plugin to v0.18.7 - #2986, by @renovate[bot]
fix(deps): update kotlin monorepo to 2.1.21 - #2985, by @renovate[bot]
💬 Other
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.