Query module SuspiciousUnusedLoopIterationVariable

name
Unused loop iteration variable
description
A loop iteration variable is unused, which suggests an error.
kind
problem
problem.severity
error
id
js/unused-loop-variable
tags
maintainability correctness
precision
high

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Predicates

countingLoop

Holds if efl is a loop whose body increments a variable and does nothing else.

Classes

IncrementExpr

An expression that adds a value to a variable.