Skip to content

Avoid exclamation point operator. #1826

Closed
@sarahelsaig

Description

@sarahelsaig

Summary of the new feature

While not technically an alias, ! behaves like an alias to the -not operator. Even "about_Logical_Operators" only mentions it in passing as "Same as -not" Considering that PSScriptAnalyzer has other rules against aliases, and that ! looks different to pretty much all other operator, I think it should also be warned against.

What is the latest version of PSScriptAnalyzer at the point of writing

1.20

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