Skip to content

chore(deps): update ktlint to v1.8.0#1953

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ktlint
Open

chore(deps): update ktlint to v1.8.0#1953
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ktlint

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 26, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.pinterest.ktlint:ktlint-cli-reporter-sarif 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-plain 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-json 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-html 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-checkstyle 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-baseline 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-reporter-core 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-cli-ruleset-core 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-logger 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-rule-engine-core 1.5.01.8.0 age adoption passing confidence
com.pinterest.ktlint:ktlint-rule-engine 1.5.01.8.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

pinterest/ktlint (com.pinterest.ktlint:ktlint-cli-reporter-sarif)

v1.8.0

Compare Source

🆕 Features
🔧 Fixes
💬 Other

v1.7.2

Compare Source

v1.7.1

Compare Source

🔧 Fixes
💬 Other

v1.7.0

Compare Source

🆕 Features
Context receiver / parameters

With upgrade to Kotlin 2.2.0, Ktlint 1.7.0 supports context parameters.

Other rule changes
  • Do not run no-unused-imports rule by default - #​3039, by @​paul-dingemans
    The no-unused-import rule is no longer run by default as it keeps causing problems. It will be removed in Ktlint 2.0. Until then, the rule can still be run, when enabled explicitly in .editorconfig.

  • Add experimental rule expression-operand-wrapping - #​3056, by @​paul-dingemans
    This 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 Ktlint 2.0.

Other features
  • Deprecate functions in ASTNodeExtensions, and where applicable provide property accessors - #​3026, by @​paul-dingemans
    When 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 Ktlint 2.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
📦 Dependencies
💬 Other

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

📦 Dependencies

💬 Other


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2025

JUnit Tests (macOS, EnricoMi/publish-unit-test-result-action@v2)

  167 files  ±0    167 suites  ±0   4m 35s ⏱️ + 1m 10s
1 446 tests ±0  1 380 ✅  - 27  39 💤 ±0  27 ❌ +27 
2 826 runs  ±0  2 760 ✅  - 27  39 💤 ±0  27 ❌ +27 

For more details on these failures, see this check.

Results for commit dafc9ed. ± Comparison against base commit cd77a0b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2025

JUnit Tests (Windows, EnricoMi/publish-unit-test-result-action@v2)

  167 files  ±0    167 suites  ±0   9m 12s ⏱️ +47s
1 446 tests ±0  1 401 ✅  - 28  17 💤 ±0  28 ❌ +28 
2 826 runs  ±0  2 781 ✅  - 28  17 💤 ±0  28 ❌ +28 

For more details on these failures, see this check.

Results for commit dafc9ed. ± Comparison against base commit cd77a0b.

♻️ This comment has been updated with latest results.

@renovate renovate bot force-pushed the renovate/ktlint branch from bdd3a8f to d1b6598 Compare July 15, 2025 06:42
@renovate renovate bot changed the title chore(deps): update ktlint to v1.6.0 chore(deps): update ktlint to v1.7.0 Jul 15, 2025
@renovate renovate bot force-pushed the renovate/ktlint branch from d1b6598 to c442675 Compare July 21, 2025 18:44
@renovate renovate bot changed the title chore(deps): update ktlint to v1.7.0 chore(deps): update ktlint to v1.7.1 Jul 21, 2025
@renovate renovate bot force-pushed the renovate/ktlint branch from c442675 to dafc9ed Compare November 15, 2025 00:26
@renovate renovate bot changed the title chore(deps): update ktlint to v1.7.1 chore(deps): update ktlint to v1.8.0 Nov 15, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

> Task :diktat-cli:test

DiktatCliTest > Run diKTat from cli (glob paths, 1 of 4)() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

DiktatCliTest > Run diKTat from cli (glob paths, 2 of 4)() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

> Task :diktat-rules:test

IdentifierNamingFixTest > regression in VARIABLE_NAME_INCORRECT_FORMAT() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingFixTest.kt:22
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingFixTest.kt:22
            Caused by: java.lang.ClassNotFoundException at IdentifierNamingFixTest.kt:22

IdentifierNamingFixTest > should update property name in KDoc after fixing() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingFixTest.kt:76
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingFixTest.kt:76

IdentifierNamingFixTest > incorrect variable name case fix() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingFixTest.kt:52
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingFixTest.kt:52

IdentifierNamingWarnTest > should trigger on backing field with no matching property() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:755
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:755

IdentifierNamingWarnTest > should not trigger on backing field() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:678
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:678

IdentifierNamingWarnTest > should trigger on backing field with setter() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:727
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:727

IdentifierNamingWarnTest > regression - checking that digit in the end will not raise a warning() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:395
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:395

IdentifierNamingWarnTest > should trigger on backing field with unmatched type() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:783
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:783

IdentifierNamingWarnTest > confusing identifier naming() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:802
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:802

IdentifierNamingWarnTest > check identifiers case format (check - negative)() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at IdentifierNamingWarnTest.kt:189
        Caused by: java.lang.NoClassDefFoundError at IdentifierNamingWarnTest.kt:189

CustomGetterSetterWarnTest > should trigger on backing field with setter() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:158
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:158

CustomGetterSetterWarnTest > exception case with protected setter() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:90
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:90

CustomGetterSetterWarnTest > should not trigger on property with backing field() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:109
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:109

CustomGetterSetterWarnTest > no custom getters and setters allowed() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:19
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:19

CustomGetterSetterWarnTest > override getter() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:55
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:55

CustomGetterSetterWarnTest > exception case with private setter() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at CustomGetterSetterWarnTest.kt:72
        Caused by: java.lang.NoClassDefFoundError at CustomGetterSetterWarnTest.kt:72

TrivialPropertyAccessorsFixTest > fix trivial setters and getters() FAILED
    org.opentest4j.AssertionFailedError at TrivialPropertyAccessorsFixTest.kt:14

TrivialPropertyAccessorsWarnTest > should trigger on trivial getter and setter() FAILED
    org.opentest4j.AssertionFailedError at TrivialPropertyAccessorsWarnTest.kt:19

RulesConfigYamlTest > check kotlin version() FAILED
    org.opentest4j.AssertionFailedError at RulesConfigYamlTest.kt:58

SuppressTest > check suppress on variable() FAILED
    com.pinterest.ktlint.rule.engine.api.KtLintRuleException at SuppressTest.kt:57
        Caused by: java.lang.NoClassDefFoundError at SuppressTest.kt:57

2748 tests completed, 20 failed, 15 skipped

> Task :diktat-rules:test FAILED

> Task :diktat-cli:test

DiktatCliTest > Run diKTat from cli (glob paths, 3 of 4)() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

DiktatCliTest > Run diKTat from cli() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

> Task :diktat-ruleset:shadowJar

> Task :diktat-cli:test

DiktatCliTest > Run diKTat from cli (glob paths, 4 of 4)() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

DiktatCliTest > Run diKTat from cli (absolute paths)() FAILED
    org.assertj.core.error.AssertJMultipleFailuresError at DiktatCliTest.kt:61

DiktatSmokeTest > smoke test #5() FAILED
    org.opentest4j.AssertionFailedError at DiktatSmokeTest.kt:28

57 tests completed, 7 failed, 22 skipped

> Task :diktat-cli:test FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant