We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f23103d commit d97a2acCopy full SHA for d97a2ac
1 file changed
PSModuleDevelopment/tests/general/PSScriptAnalyzer.Tests.ps1
@@ -20,7 +20,7 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
20
foreach ($file in $commandFiles)
21
{
22
Context "Analyzing $($file.BaseName)" {
23
- $analysis = Invoke-ScriptAnalyzer -Path $file.FullName
+ $analysis = Invoke-ScriptAnalyzer -Path $file.FullName -ExcludeRule PSAvoidTrailingWhitespace
24
25
forEach ($rule in $scriptAnalyzerRules)
26
@@ -29,11 +29,11 @@ Describe 'Invoking PSScriptAnalyzer against commandbase' {
29
30
$analysis | Where-Object RuleName -EQ $rule -outvariable failures | ForEach-Object { $list.Add($_) }
31
32
- 1 | Should Be 0
+ 1 | Should -Be 0
33
}
34
else
35
36
- 0 | Should Be 0
+ 0 | Should -Be 0
37
38
39
0 commit comments