-
Notifications
You must be signed in to change notification settings - Fork 7
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
Running with PHP inside docker #2
Comments
So you cannot run |
If I run the command "phpSniffer.executablesFolder": "./vendor/bin/phpcs" |
Try |
I tried it now, not worked yet, the extension output a log somewhere? |
Yes, open devtools: Help > Toggle Developer Tools |
I'm getting some errors when I save my code:
|
I've already solved Not sure what |
I got my phpcs working with the following:
#!/bin/bash
docker exec \
-i \
-u $(id -u) \
-w "$PWD" \
php7 \
php "$@" But it yet wont work with a custom
|
I discovered what was causing it, was the following lines at my <arg value="sp"/> <!-- Show sniff and progress -->
<arg name="colors"/> <!-- Show results with colors --> There is a way to contorn it with these options? |
The extension is not following these configs: <!-- What to scan -->
<file>.</file>
<!-- Ignoring Files and Folders:
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-files-and-folders -->
<exclude-pattern>api-reference/</exclude-pattern>
<exclude-pattern>dist/</exclude-pattern>
<exclude-pattern>node_modules/</exclude-pattern>
<exclude-pattern>resources/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<!-- Scrutinizer dependency -->
<exclude-pattern>wordpress/</exclude-pattern> It's pointing errors at files inside vendor folder, but it's on exclude-pattern tag. |
Thank you. I'm glad we could get to the cause of your issues with this extension. These two points have been moved to separate issues. |
I'm having the same problem, but my php is running inside a docker container, I have a
/usr/bin/php
that looks like this:Originally posted by @elvishp2006 in #1 (comment)
@wongjn #1 (comment)
@elvishp2006 #1 (comment)
The text was updated successfully, but these errors were encountered: