mirror of
https://github.com/github/codeql.git
synced 2026-03-21 06:57:09 +01:00
21 lines
494 B
Plaintext
21 lines
494 B
Plaintext
/**
|
|
* @name Commented out code
|
|
* @description Commented out code causes visual clutter as it is neither code nor comment.
|
|
* @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, "These comments appear to contain commented-out code."
|