mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
CPP: Exclude unusual header files such as config.h.
This commit is contained in:
@@ -156,6 +156,7 @@ class CommentBlock extends Comment {
|
||||
|
||||
predicate isCommentedOutCode() {
|
||||
not this.isDocumentation() and
|
||||
not this.getFile().(HeaderFile).noTopLevelCode() and
|
||||
this.numCodeLines().(float) / this.numLines().(float) > 0.5
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user