Skip to content

Commit 0c0f335

Browse files
authored
Merge pull request github#6508 from github/RasmusWL-patch-1
Python: Update comment for RegExpTreeView isExcluded
2 parents 0210d85 + 60eb811 commit 0c0f335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/ql/src/semmle/python/security/performance/RegExpTreeView.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import semmle.python.RegexTreeView
88
/**
99
* Holds if the regular expression should not be considered.
1010
*
11-
* For javascript we make the pragmatic performance optimization to ignore files we did not extract.
11+
* We make the pragmatic performance optimization to ignore regular expressions in files
12+
* that does not belong to the project code (such as installed dependencies).
1213
*/
1314
predicate isExcluded(RegExpParent parent) {
1415
not exists(parent.getRegex().getLocation().getFile().getRelativePath())

0 commit comments

Comments
 (0)