Query module ClobberingVarInit

name
Conflicting variable initialization
description
If a variable is declared and initialized twice inside the same variable declaration statement, the second initialization immediately overwrites the first one.
kind
problem
problem.severity
error
id
js/variable-initialization-conflict
tags
reliability correctness external/cwe/cwe-563
precision
very-high

Imports

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.