Query module BuiltinRedefined

name
Builtin redefined
description
Standard library functions can be redefined, but this should be avoided since it makes code hard to read and maintain.
kind
problem
problem.severity
recommendation
id
js/builtin-redefinition
tags
maintainability
precision
medium
deprecated
This query is prone to false positives. Deprecated since 1.17.

Imports

Definitions
javascript

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

Predicates

acceptableRedefinition

Holds if id is a redefinition of a standard library function that is considered acceptable since it merely introduces a local alias to the standard function of the same name.