mirror of
https://github.com/github/codeql.git
synced 2026-01-01 16:56:33 +01:00
20 lines
484 B
Plaintext
20 lines
484 B
Plaintext
/**
|
|
* @name Commented-out code
|
|
* @description Commented-out code makes the remaining code more difficult to read.
|
|
* @kind problem
|
|
* @tags maintainability
|
|
* readability
|
|
* documentation
|
|
* @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."
|