Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 450 Bytes

UseSingularNouns.md

File metadata and controls

33 lines (22 loc) · 450 Bytes

UseSingularNouns

Severity Level: Warning

Description

PowerShell team best practices state cmdlets should use singular nouns and not plurals.

NOTE This rule is not available in PowerShell Core due to the PluralizationService API that the rule uses internally.

How

Change plurals to singular.

Example

Wrong

function Get-Files
{
    ...
}

Correct

function Get-File
{
    ...
}