We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 900de11 commit 25ba9bdCopy full SHA for 25ba9bd
Tests/Engine/LibraryUsage.tests.ps1
@@ -39,7 +39,12 @@ function Invoke-ScriptAnalyzer {
39
[switch] $SuppressedOnly
40
)
41
[string[]]$customRulePathArr = @($CustomRulePath);
42
- $scriptAnalyzer = New-Object "Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer"
+ if ($CustomRulePath -eq $null)
43
+ {
44
+ $customRulePathArr = $null;
45
+ }
46
+
47
+ $scriptAnalyzer = New-Object "Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer";
48
$scriptAnalyzer.Initialize(
49
$runspace,
50
$testOutputWriter,
0 commit comments