WordPress code style - export

Under Settings > Editor > Code Style > PHP    I am able to use "Set from..." and choose "WordPress".

Is there a way to export these WordPress rules in a format which can easily converted into a PHP CS Fixer (please note: PHP Code Standard Fixer and NOT PHP Code Sniffer) configuration file?

Thanks

4 comments
Comment actions Permalink

There are only two export options available from an IDE perspective: a PhpStorm/IDEA XML and an .editorconfig file. The second option looks more universal but after quick googling, I was not able to find a way to convert .editorconfig to the PHP CS Fixer ruleset (is it even possible?).

0
Comment actions Permalink

Thank you Vasiliy Yur.

So I guess there is no way to map these rules, except from manually translating all the rules (of the current code style) under PHPStorm  into PHP CS rules (like the one listed here: https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0)?

0
Comment actions Permalink

Probably, one of the community members can comment on this but I have no idea how to translate these rules automatically, sorry.

1
Comment actions Permalink

Vasiliy Yur Thanks for your kind interest

0

Please sign in to leave a comment.