Skip to content

Files

Latest commit

 

History

History
35 lines (23 loc) · 646 Bytes

UseApprovedVerbs.md

File metadata and controls

35 lines (23 loc) · 646 Bytes

Pattern: Use of unapproved verb

Issue: -

Description

Checks that all defined cmdlets use approved verbs. This is in line with PowerShell's best practices.

Approved verbs can be found by running the command Get-Verb.

How

Change the verb in the cmdlet's name to an approved verb.

Example of incorrect code:

function Change-Item
{
    ...
}

Example of correct code:

function Update-Item
{
    ...
}

Further Reading