Skip to content

Commit 19ff293

Browse files
committed
QL: add TODOs in the ql/alert-message-style-violation query
1 parent 7b45306 commit 19ff293

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ private AstNode getSelectPart(Select sel, int index) {
2323
(
2424
n = getASubExpression(sel) and loc = n.getLocation()
2525
or
26+
// TODO: Use dataflow instead.
2627
// the strings are behind a predicate call.
2728
exists(Call c, Predicate target | c = getASubExpression(sel) and loc = c.getLocation() |
2829
c.getTarget() = target and
@@ -188,6 +189,7 @@ String doubleWhitespace(Select sel) {
188189
* Gets an expression that repeats the alert-loc as a link.
189190
*/
190191
VarAccess getAlertLocLink(Select sel) {
192+
// TODO: Get this to work with GVN. I got an infinite loop when I tried.
191193
result = sel.getExpr(0).(VarAccess).getDeclaration().getAnAccess() and
192194
exists(int msgIndex | sel.getExpr(msgIndex) = sel.getMessage() |
193195
result = sel.getExpr(any(int i | i > msgIndex))

0 commit comments

Comments
 (0)