sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.
BSD 3-Clause "New" or "Revised" License
2.34k stars 167 forks source link

"No files found to scan" should exit 0 #226

Closed danepowell closed 1 year ago

danepowell commented 2 years ago

When no files are found to scan, I'd prefer phploc to exit 0 instead of 1. It used to exit 0, and exiting 1 is a breaking change in the 7.0 release that should have been included in the release notes (introduced by https://github.com/sebastianbergmann/phploc/commit/438fda0e2a761805de84b9ad4c682f53c80ad03f)

This appears to be a regression, since there's a specific issue from even earlier requesting that it exit 0 when there are no files to scan: https://github.com/sebastianbergmann/phploc/pull/175 This was merged, and then seemingly reverted in the 7.0 release.