Skip to content

Commit d04cdc6

Browse files
committed
Add missing configuration parameter
1 parent 273992b commit d04cdc6

7 files changed

Lines changed: 17 additions & 11 deletions

docs/Cmdlets/Invoke-Formatter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function foo
7777
}
7878
```
7979

80-
### EXAMPLE 3 - Format the input script text using the settings defined a `.psd1` file
80+
### EXAMPLE 3 - Format the input script text using the settings defined in a `.psd1` file
8181

8282
```powershell
8383
Invoke-Formatter -ScriptDefinition $scriptDefinition -Settings /path/to/settings.psd1

docs/Rules/PossibleIncorrectUsageOfRedirectionOperator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
description: Use -gt or -ge comparison operators instead of redirection operators
3-
ms.date: 07/21/2026
3+
ms.date: 07/23/2026
44
ms.topic: reference
55
title: PossibleIncorrectUsageOfRedirectionOperator
66
---
77
# PossibleIncorrectUsageOfRedirectionOperator
88

9-
**Severity Level: Information**
9+
**Severity Level: Warning**
1010

1111
**Default state: Always enabled**
1212

docs/Rules/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ title: List of PSScriptAnalyzer rules
6767
| [PlaceOpenBrace][47] | Warning | Disabled | Yes |
6868
| [PossibleIncorrectComparisonWithNull][48] | Warning | Always enabled | |
6969
| [PossibleIncorrectUsageOfAssignmentOperator][49] | Information | Always enabled | |
70-
| [PossibleIncorrectUsageOfRedirectionOperator][50] | Information | Always enabled | |
70+
| [PossibleIncorrectUsageOfRedirectionOperator][50] | Warning | Always enabled | |
7171
| [ProvideCommentHelp][51] | Information | Enabled | Yes |
72-
| [ReservedCmdletChar][52] | Error | Always enabled | |
72+
| [ReservedCmdletChar][52] | Warning | Always enabled | |
7373
| [ReservedParams][53] | Error | Always enabled | |
7474
| [ReviewUnusedParameter][54] | Warning | Always enabled | Yes |
7575
| [ShouldProcess][55] | Warning | Always enabled | |
@@ -78,7 +78,7 @@ title: List of PSScriptAnalyzer rules
7878
| [UseCmdletCorrectly][58] | Warning | Always enabled | |
7979
| [UseCompatibleCmdlets][59] | Warning | Always enabled | Yes |
8080
| [UseCompatibleCommands][60] | Warning | Disabled | Yes |
81-
| [UseCompatibleSyntax][61] | Warning | Disabled | Yes |
81+
| [UseCompatibleSyntax][61] | Error | Disabled | Yes |
8282
| [UseCompatibleTypes][62] | Warning | Disabled | Yes |
8383
| [UseConsistentIndentation][63] | Warning | Disabled | Yes |
8484
| [UseConsistentParameterSetName][64] | Warning | Disabled | Yes |

docs/Rules/ReservedCmdletChar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: ReservedCmdletChar
66
---
77
# ReservedCmdletChar
88

9-
**Severity Level: Error**
9+
**Severity Level: Warning**
1010

1111
**Default state: Always enabled**
1212

docs/Rules/UseCompatibleSyntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: UseCompatibleSyntax
66
---
77
# UseCompatibleSyntax
88

9-
**Severity Level: Warning**
9+
**Severity Level: Error**
1010

1111
**Default state: Disabled**
1212

docs/Rules/UseConsistentParametersKind.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Use the same pattern when defining parameters
3-
ms.date: 07/21/2026
3+
ms.date: 07/23/2026
44
ms.topic: reference
55
title: UseConsistentParametersKind
66
---
@@ -54,3 +54,9 @@ Rules = @{
5454

5555
This parameter controls whether ScriptAnalyzer checks the code against this rule. It accepts a
5656
boolean value. To enable this rule, set this parameter to `$true`. The default value is `$false`.
57+
58+
### ParametersKind
59+
60+
Use this parameter to specify the type of parameter definition pattern that should be used
61+
consistently across all functions. It accepts a string value, which can be either `Inline` or
62+
`ParamBlock`. The default value is `ParamBlock`.

docs/Rules/UseSingularNouns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: Use single cmdlet nouns
3-
ms.date: 07/21/2026
3+
ms.date: 07/23/2026
44
ms.topic: reference
55
title: UseSingularNouns
66
---
@@ -68,6 +68,6 @@ boolean value. To disable this rule, set this parameter to `$false`. The default
6868

6969
### NounAllowList
7070

71-
This parameter specifies which noun commands to exclude from this rule. It accepts a string array.
71+
This parameter specifies which command nouns to exclude from this rule. It accepts a string array.
7272
Both `Data` and `Windows` are common false positives and excluded by default. Default values are
7373
`'Data'` and `'Windows'`.

0 commit comments

Comments
 (0)