NodeSecure / js-x-ray

JavaScript & Node.js open-source SAST scanner. A static analyser for detecting most common malicious patterns 🔬.
MIT License
229 stars 26 forks source link

Use JsSourceParser as default parser for AstAnalyser class #223

Closed fraxken closed 9 months ago

fraxken commented 9 months ago

The parser argument in the constructor of AstAnalyser class is currently required:

https://github.com/NodeSecure/js-x-ray/blob/master/src/AstAnalyser.js#L18

For me we should make it optional and assign new JsSourceParser() by default.

madina0801 commented 9 months ago

Hi, I would like to work on it! Could you please assign it to me?

jean-michelet commented 9 months ago

Go for it @madina0801, I think the issue is quite simple.