Skip to content

Commit d97a2ac

Browse files
author
Friedrich Weinmann
committed
Fixed PSSA
1 parent f23103d commit d97a2ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PSModuleDevelopment/tests/general/PSScriptAnalyzer.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
2020
foreach ($file in $commandFiles)
2121
{
2222
Context "Analyzing $($file.BaseName)" {
23-
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName
23+
$analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace
2424

2525
forEach ($rule in $scriptAnalyzerRules)
2626
{
@@ -29,11 +29,11 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
2929
{
3030
$analysis | Where-Object RuleName -EQ $rule -outvariable failures | ForEach-Object { $list.Add($_) }
3131

32-
1 | Should Be 0
32+
1 | Should -Be 0
3333
}
3434
else
3535
{
36-
0 | Should Be 0
36+
0 | Should -Be 0
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)