8000 A lot of false-positives and false-negative related with wrong classpath · Issue #4253 · detekt/detekt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ detekt Public
A lot of false-positives and false-negative related with wrong classpath #4253
Closed
@BraisGabin

Description

@BraisGabin

It seems that the Kotlin compiler between 1.5.21 and 1.5.31 changed a lot. I'm updating the project where I work from 1.18.1 to 1.19.1-RC1 and I'm getting a lot of false-positives and false-negative in different rules. Some examples:

  • DoubleMutabilityForCollection
  • ImplicitUnitReturnType
  • HasPlatformType
  • MissingWhenCase
  • RedundantSuspendModifier
  • ReplaceSafeCallChainWithRun
  • UnnecessaryLet
  • UnreachableCode
  • UnsafeCast
  • UnusedPrivateMember

I think that all of them are related with the type-solving and problems in the BindingContext that end up creating false positive and negative issues. Until now, in general, this type of problems generated false-negatives. Those are bad, but at least they don't generate noise. But with this release I'm seeing a lot of false-positives too.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0