Sourced from dev.detekt:detekt-gradle-plugin's releases.
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-wrappernow targets JVM 17, in preparation for the next ktlint major release which requires JVM 17+, the rest of detekt still targets JVM 8+ - #9453Changelog
- 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
UnusedPrivateFunctionfalse positive for overloaded private extension functions with a Java (or generated) receiver type - #9450- Fix
CanBeNonNullablefalse negative on local variables - #9432- Fix CognitiveComplexMethod false positive for object literal methods - #9431
- Fix
ReturnCount/ThrowsCountfalse positive where a guard clause following a local variable declaration was still counted (withexcludeGuardClausesenabled) - #9424- Extend
PropertyUsedBeforeDeclarationto follow private init calls - #9334- Add configuration ignoredFullyQualifiedNames to UnnecessaryFullyQualifiedName rule - #9301
- Expose multiline parameter in
ClassSignature- #9084Dependency Updates
- Update agp to v9.3.1 - #9538
- Update kotlin monorepo to v2.4.10 - #9518
- Update Gradle to v9.6.1 - #9444
- Update Gradle to v9.6.0 - #9420
Housekeeping & Refactorings
- Reduce scope of
@Suppress("UNCHECKED_CAST")- #9459- Remove irrelevant test for YamlConfig - #9457
- fix: handle trailing commas in
@Configurationannotation 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,@tonytonycoder11See all issues at: 2.0.0
401c64b
Update github/codeql-action digest to 5595cca (#9569)7d92d70
Migrate to the OSS Community Develocity Instance (#9549)7212708
Update gradle/actions digest to 9c97196 (#9568)529f2ba
Update github/codeql-action digest to d1ba80a (#9567)6df1cf1
feat(rules): add ignoreSealedClasses option to
AbstractClassCanBeInterface (#...6fa04a6
Update actions/setup-java digest to b6effb0 (#9560)d744c2f
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v2.8.0
(#9561)688c42b
Update github/codeql-action digest to f205ea1 (#9559)a2f4740
fix(doc): remove mention of fixed issue (#9556)1ac699e
Fix UnusedPrivateProperty false negative (#9491)