Open spencerfinnell opened 6 years ago
@spencerfinnell Can we get our .editorconfig
updated for any necessary changes?
@cklosowski the .editorconfig
looks pretty much up to date as far as I know.
https://github.com/WordPress/gutenberg/blob/master/.editorconfig is the newest I'm aware of.
Pushed a branch with the auto fixes to get an idea of what would change: https://github.com/easydigitaldownloads/easy-digital-downloads/compare/release/3.0...phpcs
The *template*.php
-type files that include a lot of inline conditionals would need to be manually refactored to avoid some ugly spacing (and probably some other general manual cleanup).
Now that WordPress Coding Standards for PHP have reached a 1.0 release I think it would be as good of time as any to implement these rules.
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
Implementing the standards could be done in a few ways:
For reference I ran the standards on the codebase and it touched ~393 files with automatic fixes.
The automatic fixes are almost entirely spacing issues that can't break anything. The biggest debate currently is multiline function arguments: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1330