Query module DeadStoreOfGlobal

name
Useless assignment to global variable
description
An assignment to a global variable that is never used has no effect.
kind
problem
problem.severity
warning
id
js/useless-assignment-to-global
tags
maintainability correctness external/cwe/cwe-563
precision
medium

Imports

javascript

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

Predicates

onlyWritten

Holds if every access to v is a write.