es-analysis / plato

JavaScript source code visualization, static analysis, and complexity tool
MIT License
4.56k stars 322 forks source link

How to Specify Valid File Extensions? #215

Open yourasheesh opened 6 years ago

yourasheesh commented 6 years ago

I have a file with file extension *.phtml in which i have written mixed code PHP, HTML and Javascript. I want to validate that inline javascript code using this tool. I used command line plato -r -d api/plato test.phtml test1r.js test2.js test3.js

But plato only evaluate .js file not .phtml files.

So, Is there any option available to allow file extensions ? For example plato --extensions=js,phtml -r -d api/plato test.phtml test1r.js test2.js test3.js