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