mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Merge remote-tracking branch 'upstream/rc/1.20' into merge/rc/1.20
This commit is contained in:
@@ -154,6 +154,9 @@ where
|
||||
or
|
||||
// exclude result from js/overwritten-property
|
||||
assign2.getBase() instanceof DataFlow::ObjectLiteralNode
|
||||
or
|
||||
// exclude result from accessor declarations
|
||||
assign1.getWriteNode() instanceof AccessorMethodDeclaration
|
||||
)
|
||||
select assign1.getWriteNode(),
|
||||
"This write to property '" + name + "' is useless, since $@ always overrides it.",
|
||||
|
||||
Reference in New Issue
Block a user