You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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).
Should use $SafeCommand-variant of external function when available.
13
13
.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 SafeCommandsvariant, 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`.
15
15
.EXAMPLE
16
16
Measure-SafeCommands -CommandAst $CommandAst
17
17
.INPUTS
@@ -83,7 +83,7 @@ Function Measure-ObjectCmdlets {
83
83
.SYNOPSIS
84
84
Should avoid usage of New/Where/Foreach/Select-Object.
85
85
.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.`.
0 commit comments