Files
codeql/python/ql/test/library-tests/comments/length.ql
2020-03-30 11:59:10 +02:00

9 lines
264 B
Plaintext

import python
import Lexical.CommentedOutCode
from CommentBlock block, int line, boolean code
where
block.hasLocationInfo(_, line, _, _, _) and
if block instanceof CommentedOutCodeBlock then code = true else code = false
select line, block.length(), code