Skip to content

Commit 4b50c68

Browse files
committed
exclude annotation names
1 parent 2a19661 commit 4b50c68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ql/ql/src/queries/style/MissingParameterInQlDoc.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ private string getAMentionedNonParameter(Predicate p) {
4747
["true", "false", "NaN", "this", "forall", "exists", "null", "break", "return", "not"] and
4848
not result = any(Aggregate a).getKind() and // min, max, sum, count, etc.
4949
not result = getMentionedThings(p.getLocation().getFile()) and
50+
not result = any(Annotation a).getName() and // private, final, etc.
51+
not result = any(Annotation a).getArgs(_).getValue() and // noinline, etc.
5052
// variables inside the predicate are also fine
5153
not result = any(VarDecl var | var.getEnclosingPredicate() = p).getName()
5254
}

0 commit comments

Comments
 (0)