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 6bfdd25 commit f1391d3Copy full SHA for f1391d3
Tests/Engine/RuleSuppression.tests.ps1
@@ -192,7 +192,7 @@ function MyFunc
192
'@
193
194
$diagnostics = Invoke-ScriptAnalyzer -ScriptDefinition $script -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorVariable diagErr -ErrorAction SilentlyContinue
195
- $suppressions = Invoke-ScriptAnalyzer -ScriptDefinition $script -SuppressedOnly -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorAction SilentlyContinue
+ $suppressions = Invoke-ScriptAnalyzer -ScriptDefinition $script -SuppressedOnly -IncludeRule 'PSAvoidUsingPlainTextForPassword' -ErrorVariable suppErr -ErrorAction SilentlyContinue
196
197
$diagnostics | Should -HaveCount 2
198
$diagnostics[0].RuleName | Should -BeExactly "PSAvoidUsingPlainTextForPassword"
0 commit comments