Skip to content

Commit ee83ad7

Browse files
committed
Swift: Add a summary query for regex evals.
1 parent 9f1332b commit ee83ad7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @name Regular Expression Evaluations
3+
* @description List all regular expression evaluations found in the database.
4+
* @kind problem
5+
* @problem.severity info
6+
* @id swift/summary/regex-evals
7+
* @tags summary
8+
*/
9+
10+
import swift
11+
import codeql.swift.regex.Regex
12+
13+
from RegexEval e
14+
select e,
15+
"Regular expression evaluation with " + count(e.getARegex()).toString() + " associated regex(s)"

0 commit comments

Comments
 (0)