Closed
Description
We are using a custom file extension for cli scripts. While upgrading to phpcs 3 the issue arose that i can not check these files using the following invocation anymore:
phpcs --standard=path/ruleset.xml file.custom
The file is plainly ignored.
On further investigation via debugging i found the following:
- Contrary to the comment in the help output of phpcs, the extension filtering is active even for single files.
- Setting the
extensions
parameter using the command line parameters is not possible in my current environment (but works) and when setting this option in the config file or custom ruleset it is not honoured (/ not passed into the config-objects values).
After clarification of the desired behavior i am willing to work on a PR.