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

More options for providing a list of files to (not) check #26

Open david-binda opened 4 years ago

david-binda commented 4 years ago

PHPCS has rather broad options to provide a list of files to check and/or to exclude:

  [--extensions=<extensions>] [--ignore=<patterns>]
  [--stdin-path=<stdinPath>] [--file-list=<fileList>] [--filter=<filter>] <file> - ...

I believe that it would be cool if we could make the phpcs-changed as much drop-in replacement for phpcs as possible, to make it easier to use it in places where phpcs is currently used.

The --stdin-path is IMHO not really possible, but other params should be doable, for automatic mode.

sirbrillig commented 4 years ago

Definitely. These are good ideas and can totally be added.