Files
codeql/java/ql/test/kotlin/library-tests/trap/comments.ql
2022-05-10 19:51:25 +01:00

11 lines
305 B
Plaintext

import java
from KtComment c, string s, int len
where
s = c.getText() and
len = s.length() and
// Ignore the comments that are describing what's going on, and only
// select the large ones
len > 1000
select c.getLocation(), len, s.prefix(5) + "..." + s.suffix(len - 5), c.getPrimaryQlClasses()