Skip to content

Commit e0f16f4

Browse files
committed
Swift: Add compile errors / warnings to SummaryStats.ql.
1 parent dc7a286 commit e0f16f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ predicate statistic(string what, string value) {
4848
or
4949
what = "Lines of code" and value = linesOfCode().toString()
5050
or
51+
what = "Compiler errors" and value = count(CompilerError d).toString()
52+
or
53+
what = "Compiler warnings" and value = count(CompilerWarning d).toString()
54+
or
5155
what = "Expressions" and value = count(Expr e | not e.getFile() instanceof UnknownFile).toString()
5256
or
5357
what = "Local flow sources" and value = count(LocalFlowSource s).toString()

0 commit comments

Comments
 (0)