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

Does not report failures in certain situations #80

Closed klutt closed 1 year ago

klutt commented 1 year ago

I'm running phpcs-changed in a bitbucket pipeline, and I got an error because it was not a git repository.

The message is fatal: not a git repository (or any of the parent directories): .git

However, the pipeline passed

(The problem might be somewhere else. I'm still investigating)

sirbrillig commented 1 year ago

Try running with --debug to get more details about the commands that the script is trying to run. Currently I believe it will always fail if the current working directory when the command is executed is not a git (or svn, respectively) repository and you're running in automatic mode. (Some of the changes I'm working on right now should make it possible to run phpcs-changed outside of the repo's path as long as the scanned files are inside the path, but so far that hasn't been implemented.)

sirbrillig commented 1 year ago

Since there's been no activity for a month, I'm going to close this issue for now. Please re-open it if you can give any more details about the problem you saw!