Skip to content

Rule to warn against use of equal sign when comparator (-eq) should be used #809

Closed
@jongross4

Description

@jongross4

When moving from other languages where a simple '=' equal sign can be used both as assignment and operator, a warning should be logged. Other Boolean operations should be flagged too. Examples:

if ($x = $y) {} -- Always true

for ($i = 1; $i > 99; $i++) - alias to out-file

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