Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (6 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/admin/includesListTable.php

    r42343 r43571  
    8282                'paged'          => 1,
    8383                'posts_per_page' => 2,
    84             ), array(
     84            ),
     85            array(
    8586                self::$top[1]->ID,
    8687                self::$children[1][1]->ID,
     
    9798                'paged'          => 2,
    9899                'posts_per_page' => 2,
    99             ), array(
     100            ),
     101            array(
    100102                self::$top[1]->ID,
    101103                self::$children[1][2]->ID,
     
    114116                'posts_per_page' => 2,
    115117                's'              => 'Child',
    116             ), array(
     118            ),
     119            array(
    117120                self::$children[1][1]->ID,
    118121                self::$children[1][2]->ID,
     
    130133                'posts_per_page' => 2,
    131134                's'              => 'Top',
    132             ), array(
     135            ),
     136            array(
    133137                self::$top[3]->ID,
    134138                self::$top[4]->ID,
     
    146150                'paged'          => 6,
    147151                'posts_per_page' => 2,
    148             ), array(
     152            ),
     153            array(
    149154                self::$top[3]->ID,
    150155                self::$children[3][1]->ID,
     
    164169                'paged'          => 7,
    165170                'posts_per_page' => 2,
    166             ), array(
     171            ),
     172            array(
    167173                self::$top[3]->ID,
    168174                self::$children[3][1]->ID,
     
    188194            array(
    189195                'post_type' => 'page',
    190             ), $args
     196            ),
     197            $args
    191198        );
    192199
Note: See TracChangeset for help on using the changeset viewer.