Skip to content

How to Specify Valid File Extensions? #215

@yourasheesh

Description

@yourasheesh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions