Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

New Rule: no-implicit-type-coercion #625

@adidahiya

Description

@adidahiya

I'd like to forbid null checks which use implicit type coercion:

if (nonBooleanValue) {
    ...
}

and instead enforce checks like this:

if (nonBooleanValue != null) {
    ...
}

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