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

Add --stdin-path argument to phpcs command #14

Closed david-binda closed 4 years ago

david-binda commented 4 years ago

By passing in the file name via --stdin-path argument, we make the <exclude-pattern> and <include-patter> configs in ruleset.xml working properly.

Without passing in the file path, PHPCS does not know with what file it's currently working, so can't properly apply those.

sirbrillig commented 4 years ago

Oh, nice! I was always bothered by that but I didn't know there was a way to avoid it.