Skip to content

Commit 694f01a

Browse files
committed
Fix column count and add clarifying comment
1 parent cd0fd02 commit 694f01a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shared/util/codeql/util/test/InlineExpectationsTest.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,11 @@ module TestPostProcessing {
790790
queryResults(mainResultSet(), row, column + 1, element)
791791
|
792792
getQueryKind() = "path-problem" and
793-
n = exactDivide(column - 8, 3)
793+
// Skip over `alert, source, sink, message`, counting entities as two columns (7 columns in total).
794+
// Then pick the first column from each related location, which each is an `entity, message` pair (3 columns).
795+
n = exactDivide(column - 7, 3)
794796
or
797+
// Like above, but only skip over `alert, message` initially (3 columns in total).
795798
getQueryKind() = "problem" and
796799
n = exactDivide(column - 3, 3)
797800
)

0 commit comments

Comments
 (0)