Closed sirbrillig closed 5 years ago
When a newly added file is empty, then the command cat filename.php | phpcs fails with the error You must supply at least one file or directory to process. In that case, however, we know there are no phpcs errors so we can just skip that command.
cat filename.php | phpcs
You must supply at least one file or directory to process
Fixes #5
When a newly added file is empty, then the command
cat filename.php | phpcs
fails with the errorYou must supply at least one file or directory to process
. In that case, however, we know there are no phpcs errors so we can just skip that command.Fixes #5