CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.1.1-dev (changelog, source)
Search

Module UnusedVariable

Provides classes and predicates for the ‘js/unused-local-variable’ query.

Import path

import Declarations.UnusedVariable

Imports

UnusedIndexVariable

Provides a predicate for identifying unused index variables in loops.

javascript

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

Classes

UnusedLocal

A local variable that is neither used nor exported, and is not a parameter or a function name.