Skip to content

Add fixer for constant-condition that simply removes the condition #1697

@anderseknert

Description

@anderseknert
allow if {
    # some actual conditons

    true
}

While the constant-condition rule correctly flags true in this case, we should have a matching fixer (and code action in the language server) that simply had it removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    language serverIssues related to Regal's language serverruleIssues related to new or existing linter rules

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions