You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPMD freezes when parsing a symbolic link to a wordpress installation. I tried to launch phpmd with vendor/bin/phpmd -vvv
but the only info I get is "ResultCache is not enabled." Then it remains at this point with no further info on screen.
Expected Behavior
To be able to exclude symbolic links
Steps To Reproduce:
The symbolic link is excluded with the following pattern
.src/wordpress/.
I also tried
src/wordpress/
and also took the trailing slash off with no luck.
I removed the symbolic link and phpmd could normaly run.
The symbolic link links towards a full wordpress installation, probably get stuck when parsing so many files.
Checks before submitting
[ X] Be sure that there isn't already an issue about this. See: Issues list
[ X] Be sure that there isn't already a pull request about this. See: Pull requests
[ X] I have added every step to reproduce the bug.
[ X] If possible I added relevant code examples.
[X ] This issue is about 1 bug and nothing more.
[X ] The issue has a descriptive title. For example: "JSON rendering failed on Windows for filenames with space".
The text was updated successfully, but these errors were encountered:
Looks like you are missing a slash here, it should probably be ./src/wordpress/., since . just means "relative to current" you could just have ./src/wordpress
./src/wordpress doesn't work.
I've been able to unfreeze phpmd by using wordpress/*
but then it reports another symbolic links that are inside the folder wordpress.
I had to add them into the exclude pattern, and most surprisingly, I had to use the full path to make it work. wordpress/symboliclink/*
didn't work, while fullpathofsymboliclink/*
did.
I keep this open, even if I solved my issue, I think weird the way phpmd exclude paths.
It's very different from other static analysis tools.
Current Behavior
PHPMD freezes when parsing a symbolic link to a wordpress installation. I tried to launch phpmd with
vendor/bin/phpmd -vvv
but the only info I get is "ResultCache is not enabled." Then it remains at this point with no further info on screen.
Expected Behavior
To be able to exclude symbolic links
Steps To Reproduce:
The symbolic link is excluded with the following pattern
.src/wordpress/.
I also tried
src/wordpress/
and also took the trailing slash off with no luck.
I removed the symbolic link and phpmd could normaly run.
The symbolic link links towards a full wordpress installation, probably get stuck when parsing so many files.
Checks before submitting
The text was updated successfully, but these errors were encountered: