CodeQL library for Python
codeql/python-all 0.11.15-dev (changelog, source)
Search

Predicate Impl::isExcluded

Holds if the regular expression should not be considered.

We make the pragmatic performance optimization to ignore regular expressions in files that does not belong to the project code (such as installed dependencies).

Import path

import semmle.python.regexp.RegexTreeView
predicate isExcluded(RegExpParent parent)