Files
codeql/python/ql/src/Lexical/CommentedOutCode.ql
Joe Farebrother fa5b2ef794 Tag remaining high precision quality queries
Excluded queries that are python 2 specific; as well as the cyclic import queries
2025-06-19 14:08:07 +01:00

20 lines
478 B
Plaintext

/**
* @name Commented-out code
* @description Commented-out code makes the remaining code more difficult to read.
* @kind problem
* @tags quality
* maintainability
* readability
* @problem.severity recommendation
* @sub-severity high
* @precision high
* @id py/commented-out-code
*/
import python
import Lexical.CommentedOutCode
from CommentedOutCodeBlock c
where not c.maybeExampleCode()
select c, "This comment appears to contain commented-out code."