We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184835f commit 6afa8a9Copy full SHA for 6afa8a9
Tests/Rules/AvoidAssignmentToAutomaticVariable.tests.ps1
@@ -74,7 +74,7 @@ Describe "AvoidAssignmentToAutomaticVariables" {
74
It "Using Variable <VariableName> as foreach name produces warning of Severity <ExpectedSeverity>" -TestCases $testCases_AutomaticVariables {
75
param ($VariableName, $ExpectedSeverity)
76
77
- [System.Array] $warnings = Invoke-ScriptAnalyzer -ScriptDefinition "foreach (`$$VariableName in `$foo) {}" -ExcludeRule PSReviewUnusedParameter
+ [System.Array] $warnings = Invoke-ScriptAnalyzer -ScriptDefinition "foreach (`$$VariableName in `$foo) {}"
78
$warnings.Count | Should -Be 1
79
$warnings.Severity | Should -Be $ExpectedSeverity
80
$warnings.RuleName | Should -Be $ruleName
0 commit comments