AtomLinter / linter-phpcs

Linter plugin for PHP, using PHP_CodeSniffer.
63 stars 31 forks source link

Add support for specifying extensions #300

Closed ericfrank closed 6 years ago

ericfrank commented 7 years ago

I'd love to be able to lint .phtml files in Atom. On the command line I can use phpcs --extensions=php,phtml, but I don't see a similar option here. Thanks!

karmap commented 6 years ago

had you found a solution for this?

tlindig commented 6 years ago

you can workaround this by adding following line in the ruleset of your config file phpcs.xml:

<arg name="extensions" value="php,phtml"/>