Skip to content

Commit 4d19351

Browse files
Apply suggestion from @coderabbitai[bot]
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent cc64b76 commit 4d19351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/instructions/dsc-community-style-guidelines-powershell.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ applyTo: "**/*.psm1,**/*.psd1,**/*.ps1"
6060
- Avoid `Write-Output` (use `return` instead)
6161
- Avoid `ConvertTo-SecureString -AsPlainText` in production code
6262
- Don't redefine reserved parameters (Verbose, Debug, etc.)
63-
- Include a `Force` parameter for functions that supports `$PSCmdlet.ShouldContinue` or with `$PSCmdlet.ShouldProcess`
64-
- For state changing functions use `SupportsShouldProcess`
63+
- Include a `Force` parameter for functions that support `$PSCmdlet.ShouldContinue` or that use `$PSCmdlet.ShouldProcess`
64+
- For state-changing functions, use `SupportsShouldProcess`
6565
- Use `Write-Error` for non-terminating errors
6666
- Use `Write-Warning` for warnings
6767
- Use `Write-Debug` for debugging information

0 commit comments

Comments
 (0)