-
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
Check failes on symlink directory #1438
Comments
You don't specifically say if PHPCS is running properly when you point it at the directory itself and not the symlink. Have you tried this? I'm trying to figure out if this is a symlink issue or if this is just PHPCS checking files and not finding any non-PHP content. It would also be good if you could post the output of |
Thanks for your fast reply. The directory itself is beeing processed fine. The verbose output (I hope that is what you ment):
/home/.../config/doctrine is the symlink directory. |
That verbose output shows that PHPCS is processing the symlink as a file instead of a directory. When I create a test symlink dir setup, it works fine and PHPCS iterates through the directory content of the symlink as if it was a real directory. The only thing I can think of is that maybe the perms of the symlink are incorrect and can't be followed, but I'm really not sure. You should be able to run PHPCS directly on |
I can reproduce this on macOS 10.12.6:
But on Linux the same situation is fine:
|
I think it's probably doing the exact same thing on Linux but you've got short open tags allowed by that PHP instance. PHPCS still sees the symlink as a single file (1 files in queue) so it would be processing it in the same way. It is possible that the difference between my test setup and your setup is that I'm pointing PHPCS directly at the symlink and not a directory higher up. I'll have a play around and see if this is the case. Either way, thanks a lot for doing that testing and providing such detailed steps and output. It's very helpful. |
I've allowed symlinks to be followed when generating the file list, which fixes this problem. |
Hi,
with PHP_Codesniffier 3.0.0 the check fails on a directory which is a symlink to a directory containing only .orm.yml files.
Message:
Is this a bug or is there new configuration that needs to be done?
Any help would be very much appreciated.
Thanks in advance!
The text was updated successfully, but these errors were encountered: