PHP-Parallel-Lint icon indicating copy to clipboard operation
PHP-Parallel-Lint copied to clipboard

Flag to ignore 'No file found' error

Open etki opened this issue 7 years ago • 3 comments

Hi!

Currently lint fails if it hasn't found any file. This makes hard to setup CI before writing any code, it would be great to add special flag to ignore such behavior.

etki avatar Nov 17 '17 11:11 etki

Or better yet, to just exit with exit code 0 and the No files found message.

I just ran into this as well :unamused:

jrfnl avatar Aug 14 '19 14:08 jrfnl

Yes please

simesy avatar Aug 17 '19 13:08 simesy

Workarounds:

  • catch code 255 with something like parallel-lint foo || if [ testcode ]; then ...
  • touch path-to-files/index.php before script call - empty file will pass

simesy avatar Aug 17 '19 13:08 simesy