Skip to content

Commit 8a8b1af

Browse files
committed
Swift: Restrict expressions count to expressions with locations.
1 parent 3215295 commit 8a8b1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/src/queries/Summary/SummaryStats.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import codeql.swift.security.SensitiveExprs
1313
predicate statistic(string what, int value) {
1414
what = "Files" and value = count(File f)
1515
or
16-
what = "Expressions" and value = count(Expr e)
16+
what = "Expressions" and value = count(Expr e | e.getFile().getName() != "")
1717
or
1818
what = "Remote flow sources" and value = count(RemoteFlowSource s)
1919
or

0 commit comments

Comments
 (0)