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

Member predicate TaintTracking::Configuration::getDefaultSourceLabel

Gets the flow label to associate with sources added by the 1-argument isSource predicate.

For taint-tracking configurations, this defaults to taint and for other data-flow configurations it defaults to data.

Overriding this predicate is rarely needed, and overriding the 2-argument isSource predicate should be preferred when possible.

FlowLabel getDefaultSourceLabel()