mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JavaScript: Autoformat all QL files.
This commit is contained in:
@@ -12,9 +12,10 @@
|
||||
import javascript
|
||||
|
||||
from DeclStmt vds, VariableDeclarator vd1, int i, VariableDeclarator vd2, int j, Variable v
|
||||
where vd1 = vds.getDecl(i) and
|
||||
vd2 = vds.getDecl(j) and
|
||||
vd1.getBindingPattern().getAVariable() = v and
|
||||
vd2.getBindingPattern().getAVariable() = v and
|
||||
i < j
|
||||
select vd2, "Variable " + v.getName() + " has already been declared $@.", vd1, "here"
|
||||
where
|
||||
vd1 = vds.getDecl(i) and
|
||||
vd2 = vds.getDecl(j) and
|
||||
vd1.getBindingPattern().getAVariable() = v and
|
||||
vd2.getBindingPattern().getAVariable() = v and
|
||||
i < j
|
||||
select vd2, "Variable " + v.getName() + " has already been declared $@.", vd1, "here"
|
||||
|
||||
Reference in New Issue
Block a user