Skip to content

Commit 32b1d98

Browse files
committed
QL: also flag the root-newtype in the acronym query
1 parent 9a3870f commit 32b1d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ql/ql/src/codeql_ql/style/AcronymsShouldBeCamelCaseQuery.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ string getName(AstNode node, string kind) {
1616
or
1717
result = node.(NewTypeBranch).getName() and
1818
kind = "newtypeBranch"
19+
or
20+
result = node.(NewType).getName() and
21+
kind = "newtype"
1922
or
2023
result = node.(VarDecl).getName() and
2124
kind = "variable" and

0 commit comments

Comments
 (0)