Skip to content

Commit 6afa8a9

Browse files
PoshAJPoshAJ
PoshAJ
authored and
PoshAJ
committed
Remove Unnecessary ExcludeRule
1 parent 184835f commit 6afa8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Rules/AvoidAssignmentToAutomaticVariable.tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Describe "AvoidAssignmentToAutomaticVariables" {
7474
It "Using Variable <VariableName> as foreach name produces warning of Severity <ExpectedSeverity>" -TestCases $testCases_AutomaticVariables {
7575
param ($VariableName, $ExpectedSeverity)
7676

77-
[System.Array] $warnings = Invoke-ScriptAnalyzer -ScriptDefinition "foreach (`$$VariableName in `$foo) {}" -ExcludeRule PSReviewUnusedParameter
77+
[System.Array] $warnings = Invoke-ScriptAnalyzer -ScriptDefinition "foreach (`$$VariableName in `$foo) {}"
7878
$warnings.Count | Should -Be 1
7979
$warnings.Severity | Should -Be $ExpectedSeverity
8080
$warnings.RuleName | Should -Be $ruleName

0 commit comments

Comments
 (0)