Skip to content

LGTM.com - false positive cs/constant-condition #6306

Open
@rkm

Description

@rkm

Conditions including true && ... are falsely reported as always returning true.

While I admit including extra true statements is a bit redundant, it can help minimise git diffs when long conditionals are split over multiple lines.

https://lgtm.com/projects/g/rkm/lgtm-constant-conditional-test

Thanks!

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