Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored Mar 27, 2024
1 parent a0365a5 commit a754b95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/Rules/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: List of PSScriptAnalyzer rules
ms.custom: PSSA v1.22.0
ms.date: 02/13/2024
ms.date: 03/27/2024
ms.topic: reference
title: List of PSScriptAnalyzer rules
---
Expand Down Expand Up @@ -58,7 +58,7 @@ The PSScriptAnalyzer contains the following rule definitions.
| [ProvideCommentHelp](./ProvideCommentHelp.md) | Information | Yes | Yes |
| [ReservedCmdletChar](./ReservedCmdletChar.md) | Error | Yes | |
| [ReservedParams](./ReservedParams.md) | Error | Yes | |
| [ReviewUnusedParameter](./ReviewUnusedParameter.md) | Warning | Yes | |
| [ReviewUnusedParameter](./ReviewUnusedParameter.md) | Warning | Yes | Yes<sup>2</sup> |
| [ShouldProcess](./ShouldProcess.md) | Warning | Yes | |
| [UseApprovedVerbs](./UseApprovedVerbs.md) | Warning | Yes | |
| [UseBOMForUnicodeEncodedFile](./UseBOMForUnicodeEncodedFile.md) | Warning | Yes | |
Expand All @@ -84,5 +84,5 @@ The PSScriptAnalyzer contains the following rule definitions.

- <sup>1</sup> Rule is not available on all PowerShell versions, editions, or OS platforms. See the
rule's documentation for details.
- <sup>2</sup> The rule a configurable property, but the rule can't be disabled like other
- <sup>2</sup> The rule has a configurable property, but the rule can't be disabled like other
configurable rules.
16 changes: 8 additions & 8 deletions docs/Rules/UseSingularNouns.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Cmdlet Singular Noun
ms.custom: PSSA v1.22.0
ms.date: 03/26/2024
ms.date: 03/27/2024
ms.topic: reference
title: UseSingularNouns
---
Expand All @@ -25,24 +25,24 @@ function Get-Elements {

```powershell
Rules = @{
UseSingularNouns = @{
NounAllowList = 'Data', 'Windows', 'Foos'
PSUseSingularNouns = @{
Enable = $true
NounAllowList = 'Data', 'Windows', 'Foos'
}
}
```

### Parameters

- `UseSingularNouns`: `string[]` (Default value is `{'Data', 'Windows'}`)

Commands to be excluded from this rule. `Data` and `Windows` are common false positives and are
excluded by default.

- `Enable`: `bool` (Default value is `$true`)

Enable or disable the rule during ScriptAnalyzer invocation.

- `NounAllowList`: `string[]` (Default value is `{'Data', 'Windows'}`)

Commands to be excluded from this rule. `Data` and `Windows` are common false positives and are
excluded by default.

## How

Change plurals to singular.
Expand Down

0 comments on commit a754b95

Please sign in to comment.