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
Summary of the new feature
While not technically an alias,
!behaves like an alias to the-notoperator. 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