mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
exclude tagged template literals from js/superfluous-trailing-arguments
This commit is contained in:
@@ -46,7 +46,8 @@ class SpuriousArguments extends Expr {
|
||||
|
||||
SpuriousArguments() {
|
||||
this = invk.getArgument(maxArity(invk)).asExpr() and
|
||||
not invk.isIncomplete()
|
||||
not invk.isIncomplete() and
|
||||
not invk.getAstNode() instanceof TaggedTemplateExpr
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user