File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
description : List of PSScriptAnalyzer rules
3
3
ms.custom : PSSA v1.22.0
4
- ms.date : 02/13 /2024
4
+ ms.date : 03/27 /2024
5
5
ms.topic : reference
6
6
title : List of PSScriptAnalyzer rules
7
7
---
@@ -58,7 +58,7 @@ The PSScriptAnalyzer contains the following rule definitions.
58
58
| [ ProvideCommentHelp] ( ./ProvideCommentHelp.md ) | Information | Yes | Yes |
59
59
| [ ReservedCmdletChar] ( ./ReservedCmdletChar.md ) | Error | Yes | |
60
60
| [ ReservedParams] ( ./ReservedParams.md ) | Error | Yes | |
61
- | [ ReviewUnusedParameter] ( ./ReviewUnusedParameter.md ) | Warning | Yes | |
61
+ | [ ReviewUnusedParameter] ( ./ReviewUnusedParameter.md ) | Warning | Yes | Yes< sup >2</ sup > |
62
62
| [ ShouldProcess] ( ./ShouldProcess.md ) | Warning | Yes | |
63
63
| [ UseApprovedVerbs] ( ./UseApprovedVerbs.md ) | Warning | Yes | |
64
64
| [ UseBOMForUnicodeEncodedFile] ( ./UseBOMForUnicodeEncodedFile.md ) | Warning | Yes | |
@@ -84,5 +84,5 @@ The PSScriptAnalyzer contains the following rule definitions.
84
84
85
85
- <sup >1</sup > Rule is not available on all PowerShell versions, editions, or OS platforms. See the
86
86
rule's documentation for details.
87
- - <sup >2</sup > The rule a configurable property, but the rule can't be disabled like other
87
+ - <sup >2</sup > The rule has a configurable property, but the rule can't be disabled like other
88
88
configurable rules.
Original file line number Diff line number Diff line change 1
1
---
2
2
description : Cmdlet Singular Noun
3
3
ms.custom : PSSA v1.22.0
4
- ms.date : 03/26 /2024
4
+ ms.date : 03/27 /2024
5
5
ms.topic : reference
6
6
title : UseSingularNouns
7
7
---
@@ -25,24 +25,24 @@ function Get-Elements {
25
25
26
26
``` powershell
27
27
Rules = @{
28
- UseSingularNouns = @{
29
- NounAllowList = 'Data', 'Windows', 'Foos'
28
+ PSUseSingularNouns = @{
30
29
Enable = $true
30
+ NounAllowList = 'Data', 'Windows', 'Foos'
31
31
}
32
32
}
33
33
```
34
34
35
35
### Parameters
36
36
37
- - ` UseSingularNouns ` : ` string[] ` (Default value is ` {'Data', 'Windows'} ` )
38
-
39
- Commands to be excluded from this rule. ` Data ` and ` Windows ` are common false positives and are
40
- excluded by default.
41
-
42
37
- ` Enable ` : ` bool ` (Default value is ` $true ` )
43
38
44
39
Enable or disable the rule during ScriptAnalyzer invocation.
45
40
41
+ - ` NounAllowList ` : ` string[] ` (Default value is ` {'Data', 'Windows'} ` )
42
+
43
+ Commands to be excluded from this rule. ` Data ` and ` Windows ` are common false positives and are
44
+ excluded by default.
45
+
46
46
## How
47
47
48
48
Change plurals to singular.
You can’t perform that action at this time.
0 commit comments