Skip to content

gradle: bump detekt from 2.0.0-alpha.6 to 2.0.0-alpha.7 - #16

Merged
neroices merged 1 commit into
mainfrom
dependabot/gradle/detekt-2.0.0-alpha.7
Dec 6, 2026
Merged

neroices merged 1 commit into
mainfrom
dependabot/gradle/detekt-2.0.0-alpha.7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bumps detekt from 2.0.0-alpha.6 to 2.0.0-alpha.7.
Updates dev.detekt:detekt-rules-ktlint-wrapper from 2.0.0-alpha.6 to 2.0.0-alpha.7

Release notes

Sourced from dev.detekt:detekt-rules-ktlint-wrapper's releases.

v2.0.0-alpha.7

This is an alpha release of Detekt 2.0.0. It's built against Kotlin 2.4.10 (Kotlin Gradle Plugin 2.4.21), Gradle 9.9.3, AGP 9.5.3 and is tested against JDK 25.

Notable Changes

  • detekt now requires Java 17 or newer to run, and all artifacts target JVM 17 - #9672
  • The minimum supported Gradle version is now 8.14 - #9767
  • The minimum supported Android Gradle Plugin version is now 8.8.2 - #9768
  • detekt-compiler-plugin has been removed - #9611
  • New rules:
    • AvoidDollarLiteralInterpolation - #9631
    • CollapseAnnotationUseSiteTargets - #9657
    • EqualsWithHashCodeUseSameFields - #9774
    • ForbiddenSuperclass - #9856
    • IgnoredJavaDefaultMethod - #9526
    • MissingStackTraceRecoverable - #9775
    • OneTopLevelTypePerFile - #9385
    • UnnecessaryChainedSafeCall - #9671
    • UnnecessaryCompanionObjectAccess - #9196
    • UnnecessarySubjectlessWhen - #9878
  • The following rules are now enabled by default: ErrorUsageWithThrowable, ObjectExtendsThrowable, CharArrayToStringCall, MissingSuperCall, ExplicitCollectionElementAccessMethod, RedundantConstructorKeyword, StringShouldBeRawString, UnnecessaryBracesAroundTrailingLambda, UnusedImport, UseEmptyCounterpart - #8864
  • The rule NoUnusedImports is now disabled by default - #9832
  • The CLI moved from JCommander to Clikt - #9737
  • Rules that support auto correction now have it enabled by default. Auto correction still requires --auto-correct (or autoCorrect on the Gradle extension or task) - #9684, #9685, #9686, #9687, #9688, #9689

Breaking Changes

  • A new standard-library rule set groups the rules about the Kotlin standard library. Those rules moved from their previous rule sets, so their configuration now goes under standard-library:. Check the standard-library rules page for the full list - #9143
  • The default ktlint configuration no longer sets autoCorrect: true on individual rules. If you set autoCorrect: false at the ktlint ruleset level, ktlint rules now stop correcting instead of overriding that setting with per-rule defaults. If your config was generated by an older detekt version, remove per-rule autoCorrect: true entries so the ruleset-level setting takes effect - #9688
  • Rule configuration now takes precedence over rule set configuration for autoCorrect - #9687
  • The YAML configuration parser is now stricter about types. active: "true" used to parse, now you need the correct YAML type: active: true - #9049
  • The complexity report moved from core to a first-party plugin. To keep complexity metrics for your project, add detektPlugin("dev.detekt:detekt-report-complexity:2.0.0-alpha.7") - #9350
  • The statistics report moved from core to a first-party plugin. To keep statistics for your project, add detektPlugin("dev.detekt:detekt-report-statistics:2.0.0-alpha.7") - #9343
  • The classpath property of the detekt task was renamed to libraries to match the Kotlin compile task - #9872
  • The ktlint ConditionWrapping rule was removed - #9745
  • The rule ContextReceiverListWrapping was renamed to ContextParameterListWrapping - #9747
  • The --generate-custom-rule-config option was removed from detekt-generator - #9132
  • The suppressors moved into the new :detekt-suppressors module - #9663
  • detekt-tooling: the AnalysisMode entries were renamed from full/light to Full/Light. The CLI --analysis-mode full|light flag is unchanged - #9001
  • detekt-tooling: DefaultConfigurationProvider.get() was removed so the tooling API no longer exposes Config from detekt-api. Use copy() to export the default configuration instead - #9639

Changelog

  • Support function types with receiver in ForbiddenMethodCall signatures - #9897
  • Recognize annotated guard clauses in ReturnCount and ThrowsCount - #9894
  • Ensure friendPaths carries task dependency with it - #9882
  • Bump DGP's Kotlin API & language versions to 2.0 - #9881
  • Allow configuration of detekt plugin dependencies with a custom dependencies block - #9871
  • CouldBeSequence: Report collection operations after a sequence toList() - #9870
  • Skip NullableToStringCall findings for safe calls - #9869

... (truncated)

Commits

Updates dev.detekt from 2.0.0-alpha.6 to 2.0.0-alpha.7

Release notes

Sourced from dev.detekt's releases.

v2.0.0-alpha.7

This is an alpha release of Detekt 2.0.0. It's built against Kotlin 2.4.10 (Kotlin Gradle Plugin 2.4.21), Gradle 9.9.3, AGP 9.5.3 and is tested against JDK 25.

Notable Changes

  • detekt now requires Java 17 or newer to run, and all artifacts target JVM 17 - #9672
  • The minimum supported Gradle version is now 8.14 - #9767
  • The minimum supported Android Gradle Plugin version is now 8.8.2 - #9768
  • detekt-compiler-plugin has been removed - #9611
  • New rules:
    • AvoidDollarLiteralInterpolation - #9631
    • CollapseAnnotationUseSiteTargets - #9657
    • EqualsWithHashCodeUseSameFields - #9774
    • ForbiddenSuperclass - #9856
    • IgnoredJavaDefaultMethod - #9526
    • MissingStackTraceRecoverable - #9775
    • OneTopLevelTypePerFile - #9385
    • UnnecessaryChainedSafeCall - #9671
    • UnnecessaryCompanionObjectAccess - #9196
    • UnnecessarySubjectlessWhen - #9878
  • The following rules are now enabled by default: ErrorUsageWithThrowable, ObjectExtendsThrowable, CharArrayToStringCall, MissingSuperCall, ExplicitCollectionElementAccessMethod, RedundantConstructorKeyword, StringShouldBeRawString, UnnecessaryBracesAroundTrailingLambda, UnusedImport, UseEmptyCounterpart - #8864
  • The rule NoUnusedImports is now disabled by default - #9832
  • The CLI moved from JCommander to Clikt - #9737
  • Rules that support auto correction now have it enabled by default. Auto correction still requires --auto-correct (or autoCorrect on the Gradle extension or task) - #9684, #9685, #9686, #9687, #9688, #9689

Breaking Changes

  • A new standard-library rule set groups the rules about the Kotlin standard library. Those rules moved from their previous rule sets, so their configuration now goes under standard-library:. Check the standard-library rules page for the full list - #9143
  • The default ktlint configuration no longer sets autoCorrect: true on individual rules. If you set autoCorrect: false at the ktlint ruleset level, ktlint rules now stop correcting instead of overriding that setting with per-rule defaults. If your config was generated by an older detekt version, remove per-rule autoCorrect: true entries so the ruleset-level setting takes effect - #9688
  • Rule configuration now takes precedence over rule set configuration for autoCorrect - #9687
  • The YAML configuration parser is now stricter about types. active: "true" used to parse, now you need the correct YAML type: active: true - #9049
  • The complexity report moved from core to a first-party plugin. To keep complexity metrics for your project, add detektPlugin("dev.detekt:detekt-report-complexity:2.0.0-alpha.7") - #9350
  • The statistics report moved from core to a first-party plugin. To keep statistics for your project, add detektPlugin("dev.detekt:detekt-report-statistics:2.0.0-alpha.7") - #9343
  • The classpath property of the detekt task was renamed to libraries to match the Kotlin compile task - #9872
  • The ktlint ConditionWrapping rule was removed - #9745
  • The rule ContextReceiverListWrapping was renamed to ContextParameterListWrapping - #9747
  • The --generate-custom-rule-config option was removed from detekt-generator - #9132
  • The suppressors moved into the new :detekt-suppressors module - #9663
  • detekt-tooling: the AnalysisMode entries were renamed from full/light to Full/Light. The CLI --analysis-mode full|light flag is unchanged - #9001
  • detekt-tooling: DefaultConfigurationProvider.get() was removed so the tooling API no longer exposes Config from detekt-api. Use copy() to export the default configuration instead - #9639

Changelog

  • Support function types with receiver in ForbiddenMethodCall signatures - #9897
  • Recognize annotated guard clauses in ReturnCount and ThrowsCount - #9894
  • Ensure friendPaths carries task dependency with it - #9882
  • Bump DGP's Kotlin API & language versions to 2.0 - #9881
  • Allow configuration of detekt plugin dependencies with a custom dependencies block - #9871
  • CouldBeSequence: Report collection operations after a sequence toList() - #9870
  • Skip NullableToStringCall findings for safe calls - #9869

... (truncated)

Commits

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)

Bumps `detekt` from 2.0.0-alpha.6 to 2.0.0-alpha.7.

Updates `dev.detekt:detekt-rules-ktlint-wrapper` from 2.0.0-alpha.6 to 2.0.0-alpha.7
- [Release notes](https://github.com/detekt/detekt/releases)
- [Commits](detekt/detekt@v2.0.0-alpha.6...v2.0.0-alpha.7)

Updates `dev.detekt` from 2.0.0-alpha.6 to 2.0.0-alpha.7
- [Release notes](https://github.com/detekt/detekt/releases)
- [Commits](detekt/detekt@v2.0.0-alpha.6...v2.0.0-alpha.7)

---
updated-dependencies:
- dependency-name: dev.detekt:detekt-rules-ktlint-wrapper
  dependency-version: 2.0.0-alpha.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: dev.detekt
  dependency-version: 2.0.0-alpha.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Dependencies label Dec 5, 2026
@neroices
neroices merged commit 5258859 into main Dec 6, 2026
1 check failed
@dependabot
dependabot Bot deleted the dependabot/gradle/detekt-2.0.0-alpha.7 branch December 6, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant