sirbrillig / phpcs-changed

🐘 Run phpcs on files and only report new warnings/errors compared to the previous version.
MIT License
31 stars 11 forks source link

Allow more files extensions to be checked #29

Closed david-binda closed 4 years ago

david-binda commented 4 years ago

PHPCS which is internally used by the phpcs-changed allows more than .php files to be linted by default. This PR brings the default allowed extensions in phpcs-changed on par with phpcs.

The logic is a copy-paste from the phpcs, as it would validate the extensions using the very same logic again, so it should ideally work the same in both places.

Fixes #27

sirbrillig commented 4 years ago

I think the PR description here got accidentally copied from #28 😂

david-binda commented 4 years ago

@sirbrillig have moved the logic to a separate function. Back at ya for the review :)