Query module SelfAssignment

name
Self assignment
description
Assigning a variable to itself has no effect.
kind
problem
problem.severity
warning
id
js/redundant-assignment
tags
reliability correctness external/cwe/cwe-480 external/cwe/cwe-561
precision
high

Imports

Clones

Provides predicates for detecting pairs of identical AST subtrees.

DOMProperties

Provides predicates for working with the DOM type hierarchy.

Predicates

describe

Gets a description of expression e, which is assumed to be the left-hand side of an assignment.