We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5521b9 commit 029b567Copy full SHA for 029b567
ql/ql/src/queries/style/ValidatePredicateGetReturns.ql
@@ -16,7 +16,7 @@ import codeql_ql.ast.Ast
16
* Identifies predicates whose names start with "get" followed by an uppercase letter.
17
* This ensures that only predicates like "getValue" are matched, excluding names like "getter".
18
*/
19
-predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("get[A-Z].*") }
+predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("(get|as)[A-Z].*") }
20
21
/**
22
* Checks if a predicate has a return type.
0 commit comments