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

git-base option reports `File does not appear to be tracked by git` #89

Closed sirbrillig closed 1 year ago

sirbrillig commented 1 year ago

There appears to be a regression with 2.11.0 which causes the --git-base option to report that a file is not tracked by git even though it is.

I believe this only happens when scanning files that have no changes because changed files will have a status.

This can be avoided by using the --no-verify-git-file option but this needs to be fixed.