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

Force quiet mode #8

Closed david-binda closed 5 years ago

david-binda commented 5 years ago

While the quiet mode in PHPCS is the default setting, it can be changed via show_progress config. Turning the show_progress on / disabling the quiet mode, makes the PHPCS to not only output the JSON contianing warnings and errors, but also a progress on individual files (eg.: E 1 / 1 (100%)), which then breaks the phpcs-changed's JSON parsing.

By using the -q flag in the phpcs --format=json commands, we would force the quiet mode for phpcs-changed run commands only, not affecting local settings, and making sure the phpcs-changed works no matter what the local setting is.

Fixes #7

sirbrillig commented 5 years ago

Good point! Thanks for this!