mozilla / scanjs

[DEPRECATED] Static analysis tool for javascript code.
Other
428 stars 39 forks source link

Add template rule for call function with a specific argument #111

Closed pauljt closed 2 years ago

pauljt commented 10 years ago

Currently in the new scanner, you can specify call rules, like foo() .foo() or bar.foo(). However we are often interested in the arguments, so we should create a template rule that allows you filter on arguments, maybe with regex or something like that.

A key use case for this would be: addEventListener("message"...) setTimeout("string"...) (as opposed to a function...)

etc