QL for QL: don't check spelling of deprecated nodes

This commit is contained in:
Nick Rolfe
2022-05-12 16:07:17 +01:00
parent 70666f6351
commit 320b6a1942

View File

@@ -64,5 +64,6 @@ string getAWord(AstNode node, string kind) {
predicate misspelled_element(AstNode node, string kind, string wrong, string right, string mistake) {
wrong = getAWord(node, kind) and
misspelling(wrong, right, mistake) and
not isAllowed(wrong)
not isAllowed(wrong) and
not node.hasAnnotation("deprecated")
}