themehybrid / hybrid-core

Official repository for the Hybrid Core WordPress development framework.
GNU General Public License v2.0
688 stars 144 forks source link

Add PHP Coding Standards configuration #167

Open lkraav opened 5 years ago

lkraav commented 5 years ago

In the spirit of https://github.com/justintadlock/mythic/issues/7 it's probably time here as well?

justintadlock commented 5 years ago

Considering that I write about 99% of all code that goes into HC, I'm not too keen on the idea of putting together something that I don't really use. Perhaps when I've started using it more in other projects, I might want to use it more with HC. But, right now, it's extremely low on the priority list.

If I decided to move in this direction, I'd probably want to have a written set of coding standards that I follow (it's a mix of PSR-1,2 and WP). That'd give something to build a configuration file from.

saas786 commented 2 years ago

Close this as well, unless and until its decided to have PHPCS.

szepeviktor commented 1 year ago

This is a useful frankenstein https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset

  1. formatting from PSR-12
  2. security from Neutron -> WPCS
  3. extra benefit from Slevomat

I hope everyone will love it! 😍