Skip to content

Commit db614bd

Browse files
committed
generalize the ql/misspelling query to work on all kinds of comments
1 parent cc8e980 commit db614bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ bindingset[s]
5252
string getACommentWord(string s) { result = s.regexpFind("\\b\\w+\\b", _, _) }
5353

5454
string getAWord(AstNode node, string kind) {
55-
result = getACommentWord(node.(QLDoc).getContents()).toLowerCase() and
56-
kind = "QLDoc comment"
55+
result = getACommentWord(node.(Comment).getContents()).toLowerCase() and
56+
kind = "comment"
5757
or
5858
exists(string nodeKind |
5959
result = getACamelCaseWord(getName(node, nodeKind)).toLowerCase() and

0 commit comments

Comments
 (0)