diff --git a/.github/instructions/dsc-community-style-guidelines-powershell.instructions.md b/.github/instructions/dsc-community-style-guidelines-powershell.instructions.md index 0c15a676de..50f58a6d60 100644 --- a/.github/instructions/dsc-community-style-guidelines-powershell.instructions.md +++ b/.github/instructions/dsc-community-style-guidelines-powershell.instructions.md @@ -151,7 +151,7 @@ function Get-Something - Use `PSCredential` for credentials - Avoid hardcoded computer names, use cross-platform [`Get-ComputerName`](https://github.com/dsccommunity/DscResource.Common/wiki/Get%E2%80%91ComputerName) instead of `$env:COMPUTERNAME` - Place `$null` on left side of comparisons -- Avoid empty catch blocks (use `-ErrorAction Ignore`) +- Avoid empty catch blocks (instead use `-ErrorAction SilentlyContinue`) - Don't use `Invoke-Expression` (use `&` operator) - Use CIM commands instead of WMI commands diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f140d608..0459cc5e51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -91,7 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improved documentation with optimized analysis workflow description. - DSC community style guidelines - Added requirement to follow guidelines over existing code patterns. -- Improved markdown and changelog instructions. +- Improved markdown, pester, powershell, and changelog instructions. + - Fixed `Ingore` that seems in edge-cases fail. ## [17.1.0] - 2025-05-22