Skip to content

Commit 84aee87

Browse files
committed
find more cases of alert messages starting with a lower-case letter, or not ending with a full stop
1 parent b87befc commit 84aee87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ql/ql/src/queries/style/AlertMessage.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private AstNode getSelectPart(Select sel, int index) {
5252
String shouldHaveFullStop(Select sel) {
5353
result =
5454
max(AstNode str, int i |
55-
str.getParent+() = sel.getExpr(1) and str = getSelectPart(sel, i)
55+
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
5656
|
5757
str order by i
5858
) and
@@ -73,7 +73,7 @@ String shouldHaveFullStop(Select sel) {
7373
String shouldStartCapital(Select sel) {
7474
result =
7575
min(AstNode str, int i |
76-
str.getParent+() = sel.getExpr(1) and str = getSelectPart(sel, i)
76+
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
7777
|
7878
str order by i
7979
) and

0 commit comments

Comments
 (0)