-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPCS gets stuck creating file list when processing circular symlinks #1758
Comments
Might have something to do with it:
PHPCS follows symlinks and it looks to be getting stuck around here. I'll see what I can do, but adding |
Ah, yes. That mess, I'd forgotten about that piece of work. Fresh pair of eyes is always useful, thanks! Long filed over at https://phabricator.wikimedia.org/T151685 Let's add it to Cheers |
Good idea, although I will still try and fix this. |
Creating file list...
That'd be great if you could 👍 |
I've had to re-introduce the realpath check and record already accepted paths, but it gets it working. Thanks for the report. |
This is fine on PHP_CodeSniffer
2.9.0
, but on3.1.1
, running phpcs on this repo it gets stuck onCreating file list...
To reproduce:
Then it'll get to
In our CI, we get it timing out after 10 minutes
Originally, we had some issues relating to symlinks, https://phabricator.wikimedia.org/T171510 which I think was "fixed" in #1438 (errors being the same "No PHP code was found in this file" etc) and therefore edcca45
Did that break something? The repo has quite a few symlinks...
Downstream task for this is https://phabricator.wikimedia.org/T181262
The text was updated successfully, but these errors were encountered: