Skip to content

Commit b370c4e

Browse files
committed
Strings: fix grammar and casing in rule descriptions
- Combine sentence fragment in AvoidUsingEmptyCatchBlockDescription for better flow - Update 'Whatif' to 'WhatIf' in UseSupportsShouldProcess strings to match PowerShell naming conventions
1 parent b1b951b commit b370c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rules/Strings.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<value>Avoid Using Cmdlet Aliases or omitting the 'Get-' prefix.</value>
125125
</data>
126126
<data name="AvoidUsingEmptyCatchBlockDescription" xml:space="preserve">
127-
<value>Empty catch blocks are considered poor design decisions because if an error occurs in the try block, this error is simply swallowed and not acted upon. While this does not inherently lead to bad things. It can and this should be avoided if possible. To fix a violation of this rule, use Write-Error or throw statements in catch blocks.</value>
127+
<value>Empty catch blocks are considered poor design decisions because if an error occurs in the try block, this error is simply swallowed and not acted upon. While this does not inherently lead to bad things, it can, and should be avoided if possible. To fix a violation of this rule, use Write-Error or throw statements in catch blocks.</value>
128128
</data>
129129
<data name="AvoidUsingEmptyCatchBlockCommonName" xml:space="preserve">
130130
<value>Avoid Using Empty Catch Block</value>
@@ -1015,10 +1015,10 @@
10151015
<value>Use SupportsShouldProcess</value>
10161016
</data>
10171017
<data name="UseSupportsShouldProcessDescription" xml:space="preserve">
1018-
<value>Commands typically provide Confirm and Whatif parameters to give more control on its execution in an interactive environment. In PowerShell, a command can use a SupportsShouldProcess attribute to provide this capability. Hence, manual addition of these parameters to a command is discouraged. If a command needs Confirm and Whatif parameters, then it should support ShouldProcess.</value>
1018+
<value>Commands typically provide Confirm and WhatIf parameters to give more control on its execution in an interactive environment. In PowerShell, a command can use a SupportsShouldProcess attribute to provide this capability. Hence, manual addition of these parameters to a command is discouraged. If a command needs Confirm and WhatIf parameters, then it should support ShouldProcess.</value>
10191019
</data>
10201020
<data name="UseSupportsShouldProcessError" xml:space="preserve">
1021-
<value>Whatif and/or Confirm manually defined in function {0}. Instead, please use SupportsShouldProcess attribute.</value>
1021+
<value>WhatIf and/or Confirm manually defined in function {0}. Instead, please use SupportsShouldProcess attribute.</value>
10221022
</data>
10231023
<data name="AlignAssignmentStatementName" xml:space="preserve">
10241024
<value>AlignAssignmentStatement</value>

0 commit comments

Comments
 (0)