PSScriptAnalyzer
PSScriptAnalyzer copied to clipboard
Rule Request: UseCompatibleStrings
Summary of the new feature
The `e
and `u{xxxx}
special characters in double-quoted strings were added in Powershell 6. It would be nice to have a compatibility rule that detects these escape characters when writing for Powershell <6 and suggests a different syntax (ex. suggesting $([char]0x1b)
for `e
)
What is the latest version of PSScriptAnalyzer at the point of writing v1.22