Skip to content

Bump dev.detekt from 2.0.0-alpha.3 to 2.0.0-alpha.5#92

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/dev.detekt-2.0.0-alpha.5
Open

Bump dev.detekt from 2.0.0-alpha.3 to 2.0.0-alpha.5#92
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/gradle/dev.detekt-2.0.0-alpha.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 23, 2026

Copy link
Copy Markdown
Contributor

Bumps dev.detekt from 2.0.0-alpha.3 to 2.0.0-alpha.5.

Release notes

Sourced from dev.detekt's releases.

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

... (truncated)

Commits
  • 9c6ced6 Stop accepting unsupported API or language versions passed to CLI (#9410)
  • 44526f4 fix: exclude gradle-public-api from published POM (#9408)
  • 6bad2e8 fix: stop leaking ktlint-repackage as a transitive dependency (#9391)
  • fd5683e Update dependency path-to-regexp to v0.2.5 (#9397)
  • 7865b27 fix: resolve npm security vulnerabilities in website and bots dependencies (#...
  • bb582d5 Unbreak snapshot publishing (#9394)
  • 69866dd Update caniuse browser definitions (#9393)
  • bfd3b5d Add Docs for 2.0.0-alpha.4 (#9388)
  • 60300b2 Switch to vanniktech/gradle-maven-publish-plugin for publishing (#9357)
  • 63e0777 Update gradle/actions digest to 3f131e8 (#9386)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated the static code analysis tooling to a newer release for improved compatibility and analysis capabilities.

Bumps [dev.detekt](https://github.com/detekt/detekt) from 2.0.0-alpha.3 to 2.0.0-alpha.5.
- [Release notes](https://github.com/detekt/detekt/releases)
- [Commits](detekt/detekt@v2.0.0-alpha.3...v2.0.0-alpha.5)

---
updated-dependencies:
- dependency-name: dev.detekt
  dependency-version: 2.0.0-alpha.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Jul 23, 2026
@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The Gradle version catalog updates the detekt version alias from 2.0.0-alpha.3 to 2.0.0-alpha.5.

Changes

Detekt version update

Layer / File(s) Summary
Update Detekt version
gradle/libs.versions.toml
The detekt version alias is updated from 2.0.0-alpha.3 to 2.0.0-alpha.5.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: insaner1980

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the only change: upgrading dev.detekt from 2.0.0-alpha.3 to 2.0.0-alpha.5.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/gradle/dev.detekt-2.0.0-alpha.5

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@gradle/libs.versions.toml`:
- Line 34: Align the detekt version in the version catalog with the pinned
Kotlin toolchain: either verify that detekt 2.0.0-alpha.5 works with the
existing Kotlin 2.3.x versions and retain it only if CI passes, or update the
relevant Kotlin version entries to the compatible 2.4.0 toolchain alongside the
Detekt bump.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ad0c368e-2873-446a-9d46-37df478e768c

📥 Commits

Reviewing files that changed from the base of the PR and between acc802d and c330e71.

📒 Files selected for processing (1)
  • gradle/libs.versions.toml

Comment thread gradle/libs.versions.toml
ktlint = "1.8.0"
ktlintGradle = "14.2.0"
detekt = "2.0.0-alpha.3"
detekt = "2.0.0-alpha.5"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n '^(kotlin|kotlinRuntime|detekt)\s*=' gradle/libs.versions.toml
fd -g 'gradle-wrapper.properties' -x sed -n '1,120p' {}
rg -n -C2 'detekt|dev\.detekt' --glob '*.gradle.kts' --glob '*.toml'

Repository: Insaner1980/runcheck

Length of output: 630


🌐 Web query:

Detekt 2.0.0-alpha.5 compatibility Kotlin 2.3.0 2.4.0 official docs

💡 Result:

According to the official Detekt documentation and compatibility tables, Detekt version 2.0.0-alpha.5 is explicitly built against and officially supports Kotlin 2.4.0 [1][2][3]. Regarding compatibility with other versions: - Kotlin 2.4.0: This is the primary target version for Detekt 2.0.0-alpha.5 [1][2][3]. - Kotlin 2.3.0: Detekt 2.0.0-alpha.5 is not built against Kotlin 2.3.0. Earlier alpha releases, such as 2.0.0-alpha.2, were built against Kotlin 2.3.0 [1][2][3]. The official compatibility documentation advises users to align their tool versions with those used to compile the Detekt Gradle Plugin to ensure the best support [2]. For Detekt 2.0.0-alpha.5, the recommended toolset includes Gradle 9.5.1 and Android Gradle Plugin (AGP) 9.2.1 [1][2][3]. Detekt relies on compile-only dependencies for the Kotlin and Android Gradle plugins, which provides some flexibility for users to select versions, though backward compatibility across minor Kotlin versions is not always guaranteed [1][2].

Citations:


Align the Detekt bump with the Kotlin toolchain Detekt 2.0.0-alpha.5 targets Kotlin 2.4.0, while this catalog still pins Kotlin 2.3.0 / 2.3.20. Keep the upgrade only if CI passes with the current toolchain, or update Kotlin alongside this bump.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@gradle/libs.versions.toml` at line 34, Align the detekt version in the
version catalog with the pinned Kotlin toolchain: either verify that detekt
2.0.0-alpha.5 works with the existing Kotlin 2.3.x versions and retain it only
if CI passes, or update the relevant Kotlin version entries to the compatible
2.4.0 toolchain alongside the Detekt bump.

@github-actions

Copy link
Copy Markdown

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2026.1.3
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

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

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants