Closed
Description
Reference message: "The cmdlet 'Local:Test-Something' uses an unapproved verb."
Where Advanced Functions are declared with a scope prefix the rule generates a false positive.
For example:
Function Local:Test-Something {...}
Function Script:Test-SomethingElse {...}
etc.. same for Global and Private.
Not trying to justify the syntax or the appropriate use cases for it. The syntax is however supported by PowerShell, and when used to declare the function the rule clearly generates a false positive (noting that without the scope prefix these Verb-Noun combinations pass the rule).
Metadata
Metadata
Assignees
Labels
No labels