Skip to content

Commit f509cbf

Browse files
author
Kapil Borle
committed
Set CustomRulePath to absolute path in test
1 parent 791e2c7 commit f509cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/RuleSuppression.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Write-Host "write-host"
131131
It "Suppresses violation of an external ast rule" {
132132
Invoke-ScriptAnalyzer `
133133
-ScriptDefinition $externalRuleSuppression `
134-
-CustomRulePath "CommunityAnalyzerRules/" `
134+
-CustomRulePath (Join-Path $directory "CommunityAnalyzerRules") `
135135
-OutVariable ruleViolations `
136136
-SuppressedOnly
137137
$ruleViolations.Count | Should Be 1

0 commit comments

Comments
 (0)