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

Member predicate ExpensiveRouteHandler::explain

Holds if explanation is a string explaining why this route handler should be rate-limited.

The explanation may contain a $@ placeholder, which is replaced by reference labeled with referenceLabel. If explanation does not contain a placeholder, reference and referenceLabel are ignored and should be bound to dummy values.

predicate explain(string explanation, Node reference, string referenceLabel)