mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
fix some more style-guide violations in the alert-messages
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user