0

I have a dockerized WSL with PHP code sniffer installed. Now I stuck to set up "wordpress" coding standard. When I run phpcs -i from WSL it then shows

The installed coding standards are PSR2, PEAR, PSR12, MySource, Squiz, Zend, PSR1, WordPress-Core, WordPress-Docs, WordPress-Extra and WordPress

but the "coding standards" in the settings are still Pear, PSR1, PSR12, PSR2, Squiz, Zend, Custom. How to make it understand that I have WordPress coding standard?

4
  • of course Phpstorm was restarted since then Commented Dec 7, 2022 at 14:20
  • 1
    installed_paths -- does it points to the right folder? In the config file and/or the IDE ("Installed standards path" field)? youtrack.jetbrains.com/issue/WI-66502/… Commented Dec 7, 2022 at 15:11
  • Yepp, installed_paths does, but when I manually set "installed standard path" it says phpcs: ERROR: the file "\set\path" does not exists. But Phpstorm looks for a file here not a directory - while this dialog enables only directories.... Commented Dec 7, 2022 at 15:24
  • 1
    "ERROR: the file "\set\path" does not exists. But Phpstorm looks for a file here not a directory" I'm not sure at all .. but it could be affected by "dockerized WSL" -- not using the path on the target file system... TBH -- I do not use PHP_CS that much, only local (Windows host OS, nothing like Docker/WSL or remote) and standard rules only (which works perfectly fine for me) and therefore cannot generate many ideas for your setup. Commented Dec 7, 2022 at 15:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.