Skip to content

Commit 320b6a1

Browse files
committed
QL for QL: don't check spelling of deprecated nodes
1 parent 70666f6 commit 320b6a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ql/ql/src/codeql_ql/style/MisspellingQuery.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ string getAWord(AstNode node, string kind) {
6464
predicate misspelled_element(AstNode node, string kind, string wrong, string right, string mistake) {
6565
wrong = getAWord(node, kind) and
6666
misspelling(wrong, right, mistake) and
67-
not isAllowed(wrong)
67+
not isAllowed(wrong) and
68+
not node.hasAnnotation("deprecated")
6869
}

0 commit comments

Comments
 (0)