Files
codeql/java/ql/test-kotlin2/library-tests/trap/comments.ql
2023-11-17 14:07:13 +00: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()