mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
QL for QL: don't check spelling of deprecated nodes
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user