We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the plugin in VS, a notification appears with the following content:
phpcs: Unknown error ocurred. Please verify that C:\Users\xx\AppData\Roaming\Composer\vendor\bin\phpcs.bat --report=json -q --encoding=UTF-8 --error-severity=5 --warning-severity=5 --stdin-path=c:\path\to\file.php - returns a valid json object.
When executing this command in PowerShell, the output is the following: ERROR: You must supply at least one file or directory to process.
ERROR: You must supply at least one file or directory to process.
However, removing the --stdin option and passing the path as an argument, gives a correct output in JSON.
--stdin
phpcs.bat --report=json -q --encoding=UTF-8 --error-severity=5 --warning-severity=5 c:\path\to\file.php {"totals":{"errors":...
Any idea on how to fix it?
Thanks!
The text was updated successfully, but these errors were encountered:
PHP_CodeSniffer version 3.5.4 does not have --stdin-path
You need to clone the develop branch and alter code as stated below:
#119 (comment).
Sorry, something went wrong.
No branches or pull requests
Using the plugin in VS, a notification appears with the following content:
phpcs: Unknown error ocurred. Please verify that C:\Users\xx\AppData\Roaming\Composer\vendor\bin\phpcs.bat --report=json -q --encoding=UTF-8 --error-severity=5 --warning-severity=5 --stdin-path=c:\path\to\file.php - returns a valid json object.
When executing this command in PowerShell, the output is the following:
ERROR: You must supply at least one file or directory to process.
However, removing the
--stdin
option and passing the path as an argument, gives a correct output in JSON.Any idea on how to fix it?
Thanks!
The text was updated successfully, but these errors were encountered: