Skip to content

deps: update detekt to v2.0.0-alpha.7 - #92

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

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

Conversation

@renovate

@renovate renovate Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
dev.detekt 2.0.0-alpha.6 → 2.0.0-alpha.7 age confidence
dev.detekt:detekt-rules-ktlint-wrapper (source) 2.0.0-alpha.6 → 2.0.0-alpha.7 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

detekt/detekt (dev.detekt:detekt-rules-ktlint-wrapper)

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:
  • 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
  • TrimMultilineRawString, MultilineRawStringIndentation: Report multi-dollar raw strings - #​9866
  • Update targetCompatibility of analysis-api packages to Java 17 - #​9854
  • Revert "fix: prevent ArrayPrimitive crash on unresolved types (#​9364)" - #​9847
  • Avoid getting filesystems unnecessarily - #​9844
  • Fix config description in FunctionSignature - #​9833
  • Fix UnnecessaryAny false positive on property comparisons - #​9830
  • Fix UnnecessaryCompanionObjectAccess false positives on nested and qualified classes - #​9829
  • Fix broken KDoc samples and config error wording - #​9827
  • Set standard attributes on DGP configurations - #​9824
  • ktlint-wrapper: Determine psiElement from offset instead of node - #​9822
  • StringShouldBeRawString: Ignore multi-dollar raw strings - #​9820
  • Fix UnusedPrivateProperty and VarCouldBeVal false positives for KMP actual class (#​8641) - #​9798
  • Fix inaccurate NonBooleanPropertyPrefixedWithIs Java reference - #​9797
  • fix(CanBeNonNullable): avoid false positive for parameters in branched controls - #​9796
  • Increase DestructuringDeclarationWithTooManyEntries default threshold to 5 - #​9795
  • Report redundant internal modifier on constructors of internal classes - #​9789
  • docs: fix dead glob-patterns URLs and malformed glob link - #​9787
  • fix(ForbiddenMethodCall): false negative with FlexibleType - #​9784
  • fix(ComplexCondition): ignore logical operators in comments and strings - #​9779
  • Fix false positives in closeable usage rule (#​9721) - #​9773
  • Declare the Android compile classpath as a task input - #​9770
  • Fix basePath issue with build cache - #​9752
  • Fix regression added with #​9001 - #​9741
  • Fix documentation link in BlankLineBetweenWhenConditions - #​9730
  • Limit NullableBooleanCheck to conditionals by default (#​7954) - #​9724
  • Fix CouldBeSequence to suggest splitToSequence for String.split chains - #​9723
  • Support to forbid star imports - #​9673
  • Ignore private constructors in AbstractClassCanBeInterface - #​9669
  • Report unused constructor parameters from UnusedParameter - #​9652
  • Improve error message for UnusedPrivateProperty in constructor - #​9632
  • Remove the dead enableCompilerPlugin switch - #​9627
  • Report findings in deterministic order - #​9621
  • fix(ElseCaseInsteadOfExhaustiveWhen): false negative when the subject is a variable - #​9608
  • docs: audit and correct the 2.0 migration guide against 1.x - #​9592
  • fix: report UnnecessaryFullyQualifiedName when a same-package class shares the name but is unused - #​9581
  • Gate Configuration.visible behind a Gradle version check - #​9577
  • fix(ImplicitDefaultLocale): ignore locale-independent format conversions - #​9442
  • perf(ktlint-wrapper): parse each file once across ktlint rules - #​9383
  • UnnecessaryLet: fix false positives when the receiver is used inside let - #​9252
  • fix(OutdatedDocumentation): ignore override properties without skipping interfaces - #​9230
  • Separate report to clarify OutdatedDocumentation - #​9229
  • Create :detekt-report-statistics - #​9219
  • Create :detekt-report-complexity - #​9215
  • New detekt generator - #​9140
  • Less verbose generator - #​9135
Dependency Updates
Housekeeping & Refactorings
  • Use map and flatMap idiomatically in Gradle plugin - #​9873
  • Fix unused return value reports - #​9846
  • Use createJavaClassFinder function to create JavaClassFinder - #​9800
  • Stop failing on Gradle warnings for an iOS test - #​9754
  • Use context parameter API when accessing KaSession - #​9743
  • Remove all usage of org.jetbrains.kotlin.idea.references.mainReference - #​9739
  • Drop the unused detekt-psi-utils dependency from :detekt-report-complexity - #​9662
  • Remove redundant assignment - #​9613
Contributors

We would like to thank the following contributors that made this release possible: @​3flex, @​AmrEldeeb5, @​Avicennasis, @​BraisGabin, @​DerSimeon, @​Eljees, @​Goooler, @​Inf1mum, @​MsfPablo, @​Rattenkrieg, @​ShubhamWorks02, @​TheNetherWatcher, @​Yuki9814, @​atulgpt, @​benwicks, @​cortinico, @​dzirbel, @​e5l, @​eusorov, @​eyupcanakman, @​hippi345, @​jjh75607, @​jonapoul, @​keta1, @​mmathieum, @​mwaddo, @​olitreadwell, @​picklebento, @​rastiehaiev, @​reginaldalfret, @​savvasg28, @​shayann07, @​shivampwm2020, @​t-kameyama, @​thejdubb02, @​wangkangmao, @​yamamoto7

See all issues at: 2.0.0


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 added the dependencies Dependency update label Nov 30, 2026
@renovate renovate Bot changed the title deps: update dependency dev.detekt to v2.0.0-alpha.7 deps: update detekt to v2.0.0-alpha.7 Nov 30, 2026
@renovate
renovate Bot force-pushed the renovate/detekt branch from 3230e18 to d91d233 Compare December 3, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependency update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants