Files
codeql/python/ql/test/library-tests/comments/length.ql
2018-11-19 15:15:54 +00:00

9 lines
257 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