-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support PHP CodeSniffer standards in packages installed outside of the vendor directory #63
Comments
Having Coding Standards in your main project is already supported. The only limitation is the maximum search depth, which is going to be configurable when #46 gets merged in. Am I missing something? |
I'll try to be a bit more specific here. So given the following pretty typical Drupal project structure:
PHPCodeSniffer composer installer rightfully discovers this standard among others:
But later on in updateInstalledPaths() it assumes that the path is absolute and attempts to get a relative path for an already relative one, which results in configuring PHPCodeSniffer with a non-existent standard install path:
|
I get it, nevertheless, I'm unable to reproduce. I have set up a full Drupal project to test this out and this is what happens on my machine (note I've added a
Used Please note, I've used the latest dev version of the installer in the above example, but I've got the same results with the |
@echernyavskiy I've ended up implementing your solution (slightly different / more incorporated with the plugin, since Since I lack a reproduction scenario, I cannot ensure this fixes your problem. |
@echernyavskiy It is in the |
@frenck, yup, tested and it works in my setup as well, thanks. |
Nice @echernyavskiy! Thanks for letting me know! I'll go ahead and close up this issue. |
Problem/Motivation
Expected behaviour
Actual behaviour
Steps to reproduce
Proposed changes
The text was updated successfully, but these errors were encountered: