Skip to content

Commit 41c1e1a

Browse files
committed
get the message, and not just the second select expression
1 parent b61e094 commit 41c1e1a

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
@@ -64,7 +64,7 @@ private AstNode getSelectPart(Select sel, int index) {
6464
String shouldHaveFullStop(Select sel) {
6565
result =
6666
max(AstNode str, int i |
67-
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
67+
str.getParent*() = sel.getMessage() and str = getSelectPart(sel, i)
6868
|
6969
str order by i
7070
) and
@@ -85,7 +85,7 @@ String shouldHaveFullStop(Select sel) {
8585
String shouldStartCapital(Select sel) {
8686
result =
8787
min(AstNode str, int i |
88-
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
88+
str.getParent*() = sel.getMessage() and str = getSelectPart(sel, i)
8989
|
9090
str order by i
9191
) and

0 commit comments

Comments
 (0)