-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Unable to set WP standards along side Drupal standards #1320
Comments
That's a new one. Ok, first off, before I can even begin to answer this, I need more information:
|
Ok, so I've found the git repo for Coder, cloned it and added it to my So... please provide detailed steps on how to reproduce the error you are getting, as otherwise, there nothing I can do to help. |
PHP 7.1.8, PHPCS 2.9.1, WPCS 0.13.1 |
Tried with that same combination, again working fine. Without detailed steps to reproduce, there's nothing I can do. |
Can you show how you added the two standards? |
I cheated - I just edited the The effect is the same ( |
@paulcanning Just checking - did you get it working ? And if so, how ? (for other people who come across the issue) |
@jrfnl I have not looked at it since sorry, other things have taken priority. I might try going your route and editing the conf file. Could you provide an example of yours? |
@paulcanning No worries, just checking. This is what my <?php
$phpCodeSnifferConfig = array (
'installed_paths' => 'X:/path/to/PHPCS/WordPress,X:/path/to/PHPCS/PHPCompatibility,X:/path/to/PHPCS/QA-WP-Projects,X:/path/to/PHPCS/DrupalCoder/coder_sniffer',
'report_width' => '90',
)
?> |
@paulcanning Did you get this working ? Can the issue be closed ? |
I am struggling to install both WP standards and Drupals (extracted from the Coder module)
They live in two different folders, so I am doing the following:
phpcs --config-set installed_paths ~/A_Folder/wpcs,~/Another_Folder/coder/coder_sniffer
When I do
phpcs -i
I get:I can set either individually, but not both!
I also can't seem ot set one, and then use
phpcs --standard=path/to/standard path/to/file
- it simply states the standard isn't installed.The text was updated successfully, but these errors were encountered: