fix some more style-guide violations in the alert-messages

This commit is contained in:
erik-krogh
2022-10-07 11:22:22 +02:00
parent 5f740a5598
commit 368f84785b
127 changed files with 1297 additions and 1282 deletions

View File

@@ -25,5 +25,5 @@ where
exists(Expr e1, Expr e2 | e1 = vd1.getInit() and e2 = vd2.getInit() |
not v.getAnAccess().getParentExpr*() = e2
)
select vd2.(FirstLineOf), "This initialization of " + v.getName() + " overwrites $@.", vd1,
"an earlier initialization"
select vd2.(FirstLineOf), "This initialization of " + v.getName() + " overwrites an $@.", vd1,
"earlier initialization"

View File

@@ -18,4 +18,4 @@ where
vd1.getBindingPattern().getAVariable() = v and
vd2.getBindingPattern().getAVariable() = v and
i < j
select vd2, "Variable " + v.getName() + " has already been declared $@.", vd1, "here"
select vd2, "Variable " + v.getName() + " has already $@.", vd1, "been previously declared"

View File

@@ -24,4 +24,4 @@ where
// Redeclaring a namespace extends the previous definition.
not decl = any(NamespaceDeclaration ns).getIdentifier() and
not redecl = any(NamespaceDeclaration ns).getIdentifier()
select redecl, "This variable has already been declared $@.", decl, "here"
select redecl, "This variable has already $@.", decl, "been declared"