mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
find more cases of alert messages starting with a lower-case letter, or not ending with a full stop
This commit is contained in:
@@ -52,7 +52,7 @@ private AstNode getSelectPart(Select sel, int index) {
|
||||
String shouldHaveFullStop(Select sel) {
|
||||
result =
|
||||
max(AstNode str, int i |
|
||||
str.getParent+() = sel.getExpr(1) and str = getSelectPart(sel, i)
|
||||
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
|
||||
|
|
||||
str order by i
|
||||
) and
|
||||
@@ -73,7 +73,7 @@ String shouldHaveFullStop(Select sel) {
|
||||
String shouldStartCapital(Select sel) {
|
||||
result =
|
||||
min(AstNode str, int i |
|
||||
str.getParent+() = sel.getExpr(1) and str = getSelectPart(sel, i)
|
||||
str.getParent*() = sel.getExpr(1) and str = getSelectPart(sel, i)
|
||||
|
|
||||
str order by i
|
||||
) and
|
||||
|
||||
Reference in New Issue
Block a user