CPP: Exclude unusual header files such as config.h.

This commit is contained in:
Geoffrey White
2019-04-11 11:28:45 +01:00
parent f381768a1e
commit 2c0ccf4a85
2 changed files with 1 additions and 3 deletions

View File

@@ -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
}