Skip to content

Check for === instead of == #3363

@rockwotj

Description

@rockwotj

Expected Behavior of the rule

Prevent usage of instance equality checks

Context

=== and == are both valid in kotlin. We also write a lot of typescript/javascript on our team (sadly no multiplatform kotlin) and a few of us accidently use === sometimes instead of == for equals. There should be a rule to prevent usage of === as you very rarely want instance equality checks anyways.

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