Skip to content

Commit 14ddff4

Browse files
authored
Fix typos in Pester.BuildAnalyzerRules (#2305)
1 parent 7f2b369 commit 14ddff4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Pester.BuildAnalyzerRules/Pester.BuildAnalyzerRules.psm1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Should be replaced with the following line when PSScriptAnalyzer is fixed. See Invoke-Pester
33
# [Diagnostics.CodeAnalysis.SuppressMessageAttribute('Pester.BuildAnalyzerRules\Measure-SafeCommands', 'Remove-Variable')]
44
$IgnoreUnsafeCommands = @('Remove-Variable', 'Write-PesterDebugMessage')
5-
# Hardcoding SafeCommands-entries to avoid dependency on imported module and slow PSSA-performance when execution Pester.SafeCommands.ps1 (due to many reimports by PSSA).
5+
# Hardcoding SafeCommands-entries to avoid dependency on imported module and slow PSSA-performance when executing Pester.SafeCommands.ps1 (due to many reimports by PSSA).
66
# Consider making build.ps1 update this
77
$SafeCommands = [System.IO.File]::ReadAllLines([System.IO.Path]::Join($PSScriptRoot,'SafeCommands.txt'))
88

@@ -11,7 +11,7 @@ function Measure-SafeCommands {
1111
.SYNOPSIS
1212
Should use $SafeCommand-variant of external function when available.
1313
.DESCRIPTION
14-
Pester module defines a $SafeCommands dictionary for external commands to avoid hijacking. To fix a violation of this rule, update the call to use SafeCommands variant, ex. `& $SafeCommands['CommandName'] -Param1 Value1`.
14+
Pester module defines a $SafeCommands dictionary for external commands to avoid hijacking. To fix a violation of this rule, update the call to use SafeCommands-variant, ex. `& $SafeCommands['CommandName'] -Param1 Value1`.
1515
.EXAMPLE
1616
Measure-SafeCommands -CommandAst $CommandAst
1717
.INPUTS
@@ -83,7 +83,7 @@ Function Measure-ObjectCmdlets {
8383
.SYNOPSIS
8484
Should avoid usage of New/Where/Foreach/Select-Object.
8585
.DESCRIPTION
86-
The built-in *-Object-cmdlets are slow compared to alternatives in .NET. To fix a violation of this rule, consider using an alterantive like `foreach`-keyword etc.`.
86+
The built-in *-Object-cmdlets are slow compared to alternatives in .NET. To fix a violation of this rule, consider using an alternative like `foreach/for`-keyword etc.`.
8787
.EXAMPLE
8888
Measure-ObjectCmdlets -CommandAst $CommandAst
8989
.INPUTS

0 commit comments

Comments
 (0)