Files
openide/plugins/groovy/groovy-psi/resources/inspectionDescriptions/GroovyAssignmentToForLoopParameter.html
Daniil Ovchinnikov 7654aa2283 [groovy] inspection descriptions
GrDeprecatedAPIUsage
GroovyAccessToStaticFieldLockedOnInstance
GroovyAssignabilityCheck
GroovyAssignmentCanBeOperatorAssignment
GroovyAssignmentToForLoopParameter
GroovyAssignmentToMethodParameter
GroovyBusyWait
GroovyConstantConditional
GroovyConstantIfStatement
GroovyConstantNamingConvention
GroovyConstructorNamedArguments
GroovyDivideByZero
GroovyDocCheck
GroovyDoubleCheckedLocking
GroovyUntypedAccess
GrUnresolvedAccess

GitOrigin-RevId: 97cd041c5fb52a2ec6d223235612f027481b4745
2021-05-31 18:31:40 +00:00

13 lines
336 B
HTML

<html>
<body>
Reports assignments to <b>for</b> loop parameters inside the <b>for</b> loop body.
<p>While occasionally intended, this construct can be extremely confusing, and is often the result of a typo.</p>
<p><b>Example:</b></p>
<pre><code>
for (value in [1, 2, 3]) {
value = 4 // warning
}
</code></pre>
</body>
</html>