Skip to content

Commit a10a2c2

Browse files
committed
QL: allow getURL as an acronym
1 parent a48b893 commit a10a2c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ predicate shouldBePascalCased(string name, AstNode node, string kind) {
3737
not node.hasAnnotation("deprecated") and
3838
// allowed upper-case acronyms.
3939
not name.regexpMatch(".*(PEP|AES|DES|EOF).*") and
40+
not name = "getURL" and // getURL is a language feature
4041
not (name.regexpMatch("T[A-Z]{3}[^A-Z].*") and node instanceof NewTypeBranch) and
4142
not (name.regexpMatch("T[A-Z]{3}[^A-Z].*") and node instanceof NewType) and
4243
not name.toUpperCase() = name // We are OK with fully-uppercase names.

0 commit comments

Comments
 (0)