Skip to content

Commit 2a19661

Browse files
committed
add not as a keyword
1 parent 86c8737 commit 2a19661

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ private string getAMentionedNonParameter(Predicate p) {
4242
) and
4343
result.regexpMatch("^[a-z]\\w+$") and
4444
not result.toLowerCase() = getAParameterName(p).toLowerCase() and
45-
not result = ["true", "false", "NaN", "this", "forall", "exists", "null", "break", "return"] and // keywords
45+
// keywords
46+
not result =
47+
["true", "false", "NaN", "this", "forall", "exists", "null", "break", "return", "not"] and
4648
not result = any(Aggregate a).getKind() and // min, max, sum, count, etc.
4749
not result = getMentionedThings(p.getLocation().getFile()) and
4850
// variables inside the predicate are also fine

0 commit comments

Comments
 (0)