Skip to content

Commit 36bd577

Browse files
author
kborle
committed
Fixes a bug in library usage test cmdlet
1 parent d28f8cc commit 36bd577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Engine/LibraryUsage.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ function Invoke-ScriptAnalyzer {
3838
[Parameter(Mandatory = $false)]
3939
[switch] $SuppressedOnly
4040
)
41-
41+
$customRulePathArr = @($CustomRulePath);
4242
$scriptAnalyzer = New-Object "Microsoft.Windows.PowerShell.ScriptAnalyzer.ScriptAnalyzer"
4343
$scriptAnalyzer.Initialize(
4444
$runspace,
4545
$testOutputWriter,
46-
$CustomRulePath,
46+
$customRulePathArr,
4747
$IncludeRule,
4848
$ExcludeRule,
4949
$Severity,

0 commit comments

Comments
 (0)