Skip to content

Tags: detekt/detekt

Tags

v2.0.0-alpha.2

Toggle v2.0.0-alpha.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix(UnusedImport): detect named companion objects correctly (#9005)

* fix(UnusedImport): detect named companion objects correctly

Previously, the rule only recognized companion objects with the default
name "Companion" when determining if a class reference is used. This
caused false positives when referencing classes with named companion
objects (e.g., `CoroutineDispatcher` which has `companion object Key`).

The fix uses `classKind == KaClassKind.COMPANION_OBJECT` to properly
detect all companion objects regardless of their name.

Fixes #8989

* refactor(UnusedImport): simplify companion object detection

Use a when expression instead of intermediate variables.

---------

Co-authored-by: Claude <noreply@anthropic.com>

v2.0.0-alpha.1

Toggle v2.0.0-alpha.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prepare Release 2.0.0-alpha.1 (#8788)

v2.0.0-alpha.0

Toggle v2.0.0-alpha.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
`Detektion` is a `class` now instead of an `interface` (#8580)

* Improve code

* Detektion class

v1.23.8

Toggle v1.23.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prepare Release 1.23.8 (#7976)

v1.23.7

Toggle v1.23.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prepare Release 1.23.7 (#7608)

v1.23.6

Toggle v1.23.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prepare Release 1.23.6 (#7082)

v1.23.5

Toggle v1.23.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Prepare Release 1.23.5 (#6921)

v1.23.4

Toggle v1.23.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Prepare Release 1.23.4 (#6650)

v1.23.3

Toggle v1.23.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Prepare release 1.23.3 (#6582)

v1.23.2

Toggle v1.23.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Prepare release 1.23.2 (#6574)