Skip to content

Commit 8798787

Browse files
committed
QL: use an/a correctly in the alert message
1 parent 93fcfc3 commit 8798787

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ql/ql/src/queries/style/NoUppercaseVariables.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ where
3232
(
3333
shouldBeLowerCase(node, name, kind) and
3434
name.regexpMatch("[^a-z].*") and
35-
message = "lowercase"
35+
message = "a lowercase"
3636
or
3737
shouldBeUpperCase(node, name, kind) and
3838
name.regexpMatch("[^A-Z].*") and
39-
message = "uppercase"
39+
message = "an uppercase"
4040
) and
4141
not node.hasAnnotation("deprecated")
42-
select node, prettyKind(kind) + " should start with an " + message + " letter."
42+
select node, prettyKind(kind) + " should start with " + message + " letter."

0 commit comments

Comments
 (0)