[wp-trac] [WordPress Trac] #46869: Fix PHPCS configuration

WordPress Trac noreply at wordpress.org
Wed Apr 10 04:38:59 UTC 2019


#46869: Fix PHPCS configuration
------------------------------+-------------------------------
 Reporter:  azaozz            |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  needs-testing     |     Focuses:  coding-standards
------------------------------+-------------------------------
Changes (by azaozz):

 * keywords:  needs-patch => needs-testing


Comment:

 In 46869.diff: Add few config options to phpcs.xml.dist to account for
 recent changes and format some associative arrays to be more easily
 readable.

 This lowers the severity of few rules to `4` or less, which in practice
 makes them optional. They can be used by setting `warning-severity=4` or
 `error-severity=4` (or both) from the cli.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46869#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list