Skip to content

Commit 8a69d3b

Browse files
authored
Fix powershell instructions (#2147)
1 parent 1f0428b commit 8a69d3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function Get-Something
151151
- Use `PSCredential` for credentials
152152
- Avoid hardcoded computer names, use cross-platform [`Get-ComputerName`](https://github.com/dsccommunity/DscResource.Common/wiki/Get%E2%80%91ComputerName) instead of `$env:COMPUTERNAME`
153153
- Place `$null` on left side of comparisons
154-
- Avoid empty catch blocks (use `-ErrorAction Ignore`)
154+
- Avoid empty catch blocks (instead use `-ErrorAction SilentlyContinue`)
155155
- Don't use `Invoke-Expression` (use `&` operator)
156156
- Use CIM commands instead of WMI commands
157157

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9191
- Improved documentation with optimized analysis workflow description.
9292
- DSC community style guidelines
9393
- Added requirement to follow guidelines over existing code patterns.
94-
- Improved markdown and changelog instructions.
94+
- Improved markdown, pester, powershell, and changelog instructions.
95+
- Fixed `Ingore` that seems in edge-cases fail.
9596

9697
## [17.1.0] - 2025-05-22
9798

0 commit comments

Comments
 (0)