CodeQL library for Python
codeql/python-all 2.1.1 (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)