We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70666f6 commit 320b6a1Copy full SHA for 320b6a1
ql/ql/src/codeql_ql/style/MisspellingQuery.qll
@@ -64,5 +64,6 @@ string getAWord(AstNode node, string kind) {
64
predicate misspelled_element(AstNode node, string kind, string wrong, string right, string mistake) {
65
wrong = getAWord(node, kind) and
66
misspelling(wrong, right, mistake) and
67
- not isAllowed(wrong)
+ not isAllowed(wrong) and
68
+ not node.hasAnnotation("deprecated")
69
}
0 commit comments