mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
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:
committed by
GitHub
parent
cc4fe7375c
commit
60eb81106a
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user