mozilla / scanjs

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

add rule that checks for assignments in while/if/.. clauses #130

Closed mozfreddyb closed 10 years ago

mozfreddyb commented 10 years ago

It's a common mistake to write = instead of ==. We would most likely check for node types of AssignmentExpressions in nodes of type

Thanks to @joernchen for suggesting this :P

codelion commented 10 years ago

I sent in a pull request for review which adds this feature. Do let me know if you need me to make any modifications.