◐ Shell
clean mode source ↗

Make Settings type detection more robust by Tadas · Pull Request #1967 · PowerShell/PSScriptAnalyzer

PR Summary

It was unable to parse settings hashtable, when that hashtable has been wrapped as a PSObject. This started happening in PS 7.2, I was using Import-PowerShellDataFile to read some settings before passing them on to Invoke-ScriptAnalyzer.

There was some code to handle wrapped strings, might as well do that with all parameter types.

PR Checklist