Skip to content

Update detekt to v2.0.0-alpha.6 - #867

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/detekt
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/detekt

Conversation

@renovate

@renovate renovate Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dev.detekt 2.0.0-alpha.3 → 2.0.0-alpha.6 age confidence
dev.detekt:detekt-test-junit (source) 2.0.0-alpha.3 → 2.0.0-alpha.6 age confidence
dev.detekt:detekt-test (source) 2.0.0-alpha.3 → 2.0.0-alpha.6 age confidence
dev.detekt:detekt-api (source) 2.0.0-alpha.3 → 2.0.0-alpha.6 age confidence

Release Notes

detekt/detekt (dev.detekt:detekt-test-junit)

v2.0.0-alpha.6

2.0.0-alpha.6 - 2026-08-04

This is an alpha release of Detekt 2.0.0. It's built against Kotlin 2.4.10, Gradle 9.6.1, AGP 9.3.1 and is tested against JDK 25.

Notable Changes
  • detekt-rules-ktlint-wrapper now targets JVM 17, in preparation for the next ktlint major release which requires JVM 17+, the rest of detekt still targets JVM 8+ - #​9453
Changelog
  • feat(rules): add ignoreSealedClasses option to AbstractClassCanBeInterface - #​9557
  • docs: drop stale Android compile classpath warning note - #​9550
  • Recommend to use Locale.ROOT instead of Locale.US - #​9532
  • Recognize params swallowed by KDoc lexer in OutdatedDocumentation - #​9529
  • Fix UnusedPrivateProperty false negative for constructor properties - #​9491
  • Fix MissingSuperCall false positive when annotation is in grandparent - #​9469
  • Fix UseDataClass false positive for properties with a custom accessor - #​9462
  • Fix a potential bug on Config.getListOrDefault - #​9461
  • Fix UnusedPrivateFunction false positive for overloaded private extension functions with a Java (or generated) receiver type - #​9450
  • Fix CanBeNonNullable false negative on local variables - #​9432
  • Fix CognitiveComplexMethod false positive for object literal methods - #​9431
  • Fix ReturnCount/ThrowsCount false positive where a guard clause following a local variable declaration was still counted (with excludeGuardClauses enabled) - #​9424
  • Extend PropertyUsedBeforeDeclaration to follow private init calls - #​9334
  • Add configuration ignoredFullyQualifiedNames to UnnecessaryFullyQualifiedName rule - #​9301
  • Expose multiline parameter in ClassSignature - #​9084
Dependency Updates
Housekeeping & Refactorings
  • Reduce scope of @Suppress("UNCHECKED_CAST") - #​9459
  • Remove irrelevant test for YamlConfig - #​9457
  • fix: handle trailing commas in @​Configuration annotation parsing in JS generator - #​9447
  • Production code should not depend on fixtures - #​9439
Contributors

We would like to thank the following contributors that made this release possible: @​3flex, @​BraisGabin, @​ChristophyBarth, @​FilippoVigani, @​Phoenix1808, @​ShubhamWorks02, @​cortinico, @​e5l, @​eyupcanakman, @​iuryeng, @​loganrosen, @​marpalat, @​roian6, @​sahilpatel2521, @​tonytonycoder11

See all issues at: 2.0.0

v2.0.0-alpha.5

2.0.0-alpha.5 - 2026-06-17

This is a hotfix release for 2.0.0-alpha.4 where we fixed 2 bugs that were preventing detekt from running correctly.

Changelog
  • fix: stop leaking ktlint-repackage as a transitive dependency - #​9391
  • fix: exclude gradle-public-api from published POM - #​9408
  • Stop accepting unsupported API or language versions passed to CLI - #​9410

v2.0.0-alpha.4

2.0.0-alpha.4 - 2026-06-13

This is an alpha release of Detekt 2.0.0. Is built against Kotlin 2.4.0, Gradle 9.5.1, AGP 9.2.1 and is tested against JDK 25.

Notable Changes
  • Support Kotlin 2.4.0 - #​9218
  • Add new rule LeakingSessionBoundType - #​9242
  • Apply the indent_style configuration to all the ktlint wrapper rules (previsouly this was applied only to the Indentation rule) - #​9315
Breaking Changes
  • Expose Glob-to-Regex functions in psi-utils - #​9340
  • Make Detektion immutable - #​8583
Changelog
  • fix: prevent ArrayPrimitive crash on unresolved types - #​9364
  • Update ktlint documentation links - #​9354
  • Fix PrintStackTrace nested call detection - #​9352
  • Fix unused import false positive for companion object member extension properties - #​9349
  • Accept punctuation after a link - #​9341
  • Fixes UnnecessaryFullyQualifiedName false positive with explicit import shadowing - #​9329
  • docs: fix KMP type resolution task names - #​9316
  • Stop publishing ktlint-repackage - #​9314
  • Stop exposing ktlint's StandardRule to detekt-rules-ktlint-wrapper consumers - #​9313
  • Include ktlint-repackage in ktlint-wrapper JAR - #​9312
  • Declare DGP compatibility with Gradle's configuration cache - #​9311
  • Forward languageVersionSettings to KotlinAnalysisApiEngine.compile - #​9305
  • docs: add ForbiddenImport configuration example - #​9302
  • Fix UnnecessaryFullyQualifiedName clashes with kotlin package name - #​9289
  • Remove excludeImportStatements from Deprecation rule - #​9287
  • Improve repackaging of Analysis API dependencies - #​9285
  • MaxChainedCallsOnSameLine - Fix AA type leaks - #​9261
  • SuspendFunSwallowedCancellation - Fix AA type leaks - #​9256
  • feat: Add exhaustive option to OutdatedDocumentation rule, also improve error messages - #​9255
  • Excluding generated sources by default - #​9251
  • Move FileProcessListenerExtensions to :detekt-test - #​9212
  • Improve SuspendFunSwallowedCancellation - #​9208
  • Cli filters - #​9200
  • Allow single-argument Boolean generics in NonBooleanPropertyPrefixedWithIs - #​9173
  • Remove Config.parentPath - #​9036
Dependency Updates
Housekeeping & Refactorings
  • Update test to avoid typealias to compiler-required annotation - #​9361
  • Remove unnecessary compileOnly dependencies - #​9318
Contributors

We would like to thank the following contributors that made this release possible: @​3flex, @​BraisGabin, @​ChristophyBarth, @​FletchMcKee, @​Lucas-FManager, @​ShubhamWorks02, @​Will-thom, @​e5l, @​fru1tworld, @​jonapoul, @​luanpotter, @​matejdro, @​mirkoalicastro, @​nchen000, @​ninebolt6, @​paulkagiri, @​travisMiehm


Configuration

📅 Schedule: (UTC)

  • 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 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.

@renovate

renovate Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: gradle/libs.versions.toml
Command failed: ./gradlew -Dorg.gradle.jvmargs=-Xms512m -Xmx512m --console=plain --dependency-verification lenient -q --write-verification-metadata sha256 dependencies

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/tmp/renovate/repos/github/accrescent/server/testdata/android-app-low-target-sdk/build.gradle.kts' line: 55

* What went wrong:
Error resolving plugin [id: 'com.android.application', version: '9.3.1']
> A problem occurred configuring project ':build-logic'.
   > Could not resolve all artifacts for configuration 'classpath'.
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:2.3.21.
        Required by:
            buildscript of project ':build-logic'
            buildscript of project ':build-logic' > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:6.6.4 > org.gradle.kotlin:gradle-kotlin-dsl-plugins:6.6.4
         > Repository Gradle Central Plugin Repository is disabled due to earlier error below:
            > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:2.3.21.
               > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'.
                  > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'. Received status code 429 from server: Too Many Requests
> There are 4 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':build-logic'.
> Could not resolve all artifacts for configuration 'classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:2.3.21.
     Required by:
         buildscript of project ':build-logic'
         buildscript of project ':build-logic' > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:6.6.4 > org.gradle.kotlin:gradle-kotlin-dsl-plugins:6.6.4
      > Repository Gradle Central Plugin Repository is disabled due to earlier error below:
         > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:2.3.21.
            > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'.
               > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'. Received status code 429 from server: Too Many Requests
> There are 4 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
==============================================================================

3: Task failed with an exception.
-----------
* Where:
Build file '/tmp/renovate/repos/github/accrescent/server/testdata/android-app-low-target-sdk/build.gradle.kts' line: 55

* What went wrong:
Error resolving plugin [id: 'com.android.application', version: '9.3.1']
> A problem occurred configuring project ':build-logic'.
   > Could not resolve all artifacts for configuration 'classpath'.
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib:2.3.21.
        Required by:
            buildscript of project ':build-logic'
            buildscript of project ':build-logic' > org.gradle.kotlin.kotlin-dsl:org.gradle.kotlin.kotlin-dsl.gradle.plugin:6.6.4 > org.gradle.kotlin:gradle-kotlin-dsl-plugins:6.6.4
         > Repository Gradle Central Plugin Repository is disabled due to earlier error below:
            > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:2.3.21.
               > Could not get resource 'https://plugins.gradle.org/m2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'.
                  > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin-api/2.3.21/kotlin-gradle-plugin-api-2.3.21.pom'. Received status code 429 from server: Too Many Requests
> There are 4 more failures with identical causes.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 1m 7s

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.

0 participants