File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ function MyFunc
113
113
}
114
114
'@
115
115
116
- $diagnostics = Invoke-ScriptAnalyzer - ScriptDefinition $script - IncludeRule ' PSAvoidUsingPlainTextForPassword'
116
+ $diagnostics = Invoke-ScriptAnalyzer - ScriptDefinition $script - IncludeRule ' PSAvoidUsingPlainTextForPassword' | Where-Object { $_ .RuleName -eq ' PSAvoidUsingPlainTextForPassword ' }
117
117
$suppressions = Invoke-ScriptAnalyzer - ScriptDefinition $script - SuppressedOnly - IncludeRule ' PSAvoidUsingPlainTextForPassword'
118
118
119
119
$diagnostics | Should - HaveCount 1
@@ -140,7 +140,7 @@ function MyFunc
140
140
}
141
141
'@
142
142
143
- $diagnostics = Invoke-ScriptAnalyzer - ScriptDefinition $script - IncludeRule ' PSAvoidUsingPlainTextForPassword'
143
+ $diagnostics = Invoke-ScriptAnalyzer - ScriptDefinition $script - IncludeRule ' PSAvoidUsingPlainTextForPassword' | Where-Object { $_ .RuleName -eq ' PSAvoidUsingPlainTextForPassword ' }
144
144
$suppressions = Invoke-ScriptAnalyzer - ScriptDefinition $script - SuppressedOnly - IncludeRule ' PSAvoidUsingPlainTextForPassword'
145
145
146
146
$diagnostics | Should - HaveCount 1
You can’t perform that action at this time.
0 commit comments