mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Move Directive subclasses into Directive module
This commit is contained in:
@@ -12,7 +12,7 @@ import javascript
|
||||
|
||||
from Directive d
|
||||
where
|
||||
not d instanceof KnownDirective and
|
||||
not d instanceof Directive::KnownDirective and
|
||||
// ignore ":" pseudo-directive sometimes seen in dual-use shell/node.js scripts
|
||||
not d.getExpr().getStringValue() = ":" and
|
||||
// but exclude attribute top-levels: `<a href="javascript:'some-attribute-string'">`
|
||||
|
||||
Reference in New Issue
Block a user