Closed nixcms closed 10 years ago
The reason is likely that structure now has multiple standards in subfolders.
Had you looked at updated how to use section? --config-set installed_paths
is now (highly) recommended way to configure. It makes multiple standards play nicely and removes the need to put them inside PHPCS folder.
Good Morning, I have the same problem too. I can not configure Wordpress Coding Standard in PHPCodeSniffer. Doing the commando 'phpcs -i' I can not see it.
I know that you have changed the folder structure, you give us a couple of practical examples to understand how it works now?
Thank you.
Again, had you been through updated how to use section in readme? :)
PS I screwed up with link in comment above, oops, fixed
'phpcs config-set installed_paths' in Windows is not working.
Your screenshot shows you are trying to run it on pear, not phpcs?.. :)
Sorry :D. The final solution in Windows is 'phpcs --config-set installed_paths ../wpcs'
Thanks you.
Not sure if OP has it resolved as well?..
@nixcms Can you confirm this is working for you as well
My bad - didn't look closely enough at the names / icons.
Re-opening for confirmation.
@fulldecent Yes, it works, @Rarst Thanks for the explanation.
This repository was really helpful for me! But now I have an error connected with setting up WordPress coding standard! :bangbang: This code has worked before but not it is broken:
WordPress standard installation part
WordPress standard usage part
I think it could occur because of changes in your repository https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
We couldn't add WordPress coding standard to PHPCS using this code:
We've tried this coding standard with these versions of the PHPCS:
or
We've saved our previous WordPress standard as a temporary solution. It works for us now:
Could anyone suggest what happened and how to fix it? I want use this repository regulary in order to get correct WordPress coding standards, but it is impossible now. Any help / advice is really appreciated! Thanx in advance!