Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6058352 commit 844eef1Copy full SHA for 844eef1
1 file changed
ql/ql/src/codeql_ql/style/MisspellingQuery.qll
@@ -4,12 +4,16 @@ private import TypoDatabase
4
5
predicate misspelling(string wrong, string right, string mistake) {
6
mistake = "common misspelling" and
7
- typos(wrong, right)
+ (typos(wrong, right) or additional_typos(wrong, right))
8
or
9
mistake = "non-US spelling" and
10
non_us_spelling(wrong, right)
11
}
12
13
+predicate additional_typos(string wrong, string right) {
14
+ wrong = "tranformer" and right = "transformer"
15
+}
16
+
17
/**
18
* Holds if `word` is an acceptable spelling that would otherwise be considered
19
* a mistake by the typo database.
0 commit comments