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

Module UselessUseOfCat

Provides predicates and classes for working with useless uses of the unix command cat.

Import path

import semmle.javascript.security.UselessUseOfCat

Imports

ExprHasNoEffect

Provides classes and predicates for the ‘js/useless-expression’ query.

UnusedVariable

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

javascript

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

Classes

UselessCat

A call to a useless use of cat.

Modules

PrettyPrintCatCall

Predicates for creating an equivalent call to fs.readFile from a command execution of cat.