Skip to content
/ ziglint Public

new rule: or / and with a literal true or false #26

@paperclover

Description

@paperclover

caught in a code review at bun:

x = a or true;

should lint: "expression is always true due to literal constant"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions