Query module EphemeralLoop

name
Loop body executes at most once
description
A loop that executes at most once is confusing and should be rewritten as a conditional.
kind
problem
problem.severity
recommendation
id
js/single-run-loop
tags
readability
precision
high

Imports

Emscripten

Provides classes for working with Emscripten-generated code.

RestrictedLocations

Provides classes for restricting the locations reported for program elements.

javascript

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