Files
codeql/java/ql/test-kotlin1/library-tests/trap/comments.ql
2023-11-21 15:28:12 +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()