WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (22 months 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/term/meta.php

    r43378 r43571  
    226226        // Prime cache.
    227227        $found = get_terms(
    228             'wptests_tax', array(
     228            'wptests_tax',
     229            array(
    229230                'hide_empty' => false,
    230231                'fields'     => 'ids',
     
    243244
    244245        $found = get_terms(
    245             'wptests_tax', array(
     246            'wptests_tax',
     247            array(
    246248                'hide_empty' => false,
    247249                'fields'     => 'ids',
     
    266268        // Prime cache.
    267269        $found = get_terms(
    268             'wptests_tax', array(
     270            'wptests_tax',
     271            array(
    269272                'hide_empty' => false,
    270273                'fields'     => 'ids',
     
    283286
    284287        $found = get_terms(
    285             'wptests_tax', array(
     288            'wptests_tax',
     289            array(
    286290                'hide_empty' => false,
    287291                'fields'     => 'ids',
     
    306310        // Prime cache.
    307311        $found = get_terms(
    308             'wptests_tax', array(
     312            'wptests_tax',
     313            array(
    309314                'hide_empty' => false,
    310315                'fields'     => 'ids',
     
    323328
    324329        $found = get_terms(
    325             'wptests_tax', array(
     330            'wptests_tax',
     331            array(
    326332                'hide_empty' => false,
    327333                'fields'     => 'ids',
Note: See TracChangeset for help on using the changeset viewer.