WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (3 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.0.0

WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues.

This change includes three notable additions:

  • Multiline function calls must now put each parameter on a new line.
  • Auto-formatting files is now part of the grunt precommit script.
  • Auto-fixable coding standards issues will now cause Travis failures.

Fixes #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/postStatus.php

    r42343 r43571  
    198198        set_current_screen( 'dashboard' );
    199199        register_post_status(
    200             'foo', array(
     200            'foo',
     201            array(
    201202                'protected'              => true,
    202203                'show_in_admin_all_list' => true,
     
    265266        register_post_type( 'foo_pt' );
    266267        register_post_status(
    267             'foo_ps', array(
     268            'foo_ps',
     269            array(
    268270                'public'    => false,
    269271                'protected' => true,
     
    291293        register_post_type( 'foo_pt' );
    292294        register_post_status(
    293             'foo_ps', array(
     295            'foo_ps',
     296            array(
    294297                'public'    => false,
    295298                'protected' => true,
     
    317320        register_post_type( 'foo_pt' );
    318321        register_post_status(
    319             'foo_ps', array(
     322            'foo_ps',
     323            array(
    320324                'public'  => false,
    321325                'private' => true,
     
    343347        register_post_type( 'foo_pt' );
    344348        register_post_status(
    345             'foo_ps', array(
     349            'foo_ps',
     350            array(
    346351                'public'  => false,
    347352                'private' => true,
Note: See TracChangeset for help on using the changeset viewer.