Python: Update comment for RegExpTreeView isExcluded

I noticed after reading https://github.com/github/codeql/pull/6507, but didn't want to overload that PR.
This commit is contained in:
Rasmus Wriedt Larsen
2021-08-18 16:16:26 +02:00
committed by GitHub
parent cc4fe7375c
commit 60eb81106a

View File

@@ -8,7 +8,8 @@ import semmle.python.RegexTreeView
/**
* Holds if the regular expression should not be considered.
*
* For javascript we make the pragmatic performance optimization to ignore files we did not extract.
* We make the pragmatic performance optimization to ignore regular expressions in files
* that does not belong to the project code (such as installed dependencies).
*/
predicate isExcluded(RegExpParent parent) {
not exists(parent.getRegex().getLocation().getFile().getRelativePath())