benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
812 stars 126 forks source link

Feature Request: Use a different method of determining if PHPCS should run #15

Closed mpedrummer closed 12 years ago

mpedrummer commented 12 years ago

Right now, you're using the syntax of the open buffer to determine if the actual PHPCS command should be run or not. This unfortunately breaks if you're using a custom syntax, or really, any syntax other than the built-in PHP.

Could there be a different way to determine it? File extension, perhaps? Combined with my other request, perhaps there could be a configuration setting that allows an array of file extensions for which the command will execute?

Thanks MPEDrummer

benmatselby commented 12 years ago

This needs to take into account JS and CSS files which PHP_CodeSniffer can also sniff

benmatselby commented 12 years ago

Hi there, I've added another configuration setting to cater for this.. Please try this out and re-open this issue if it isn't working for you

mpedrummer commented 12 years ago

Awesome - works great!