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/link/wpGetCanonicalURL.php

    r42343 r43571  
    5252                'page' => 2,
    5353                'foo'  => 'bar',
    54             ), get_permalink( self::$post_id )
     54            ),
     55            get_permalink( self::$post_id )
    5556        );
    5657
     
    6061            array(
    6162                'page' => 2,
    62             ), get_permalink( self::$post_id )
     63            ),
     64            get_permalink( self::$post_id )
    6365        );
    6466
     
    7779                'page' => $page,
    7880                'foo'  => 'bar',
    79             ), get_permalink( self::$post_id )
     81            ),
     82            get_permalink( self::$post_id )
    8083        );
    8184
     
    97100                'cpage' => $cpage,
    98101                'foo'   => 'bar',
    99             ), get_permalink( self::$post_id )
     102            ),
     103            get_permalink( self::$post_id )
    100104        );
    101105
     
    105109            array(
    106110                'cpage' => $cpage,
    107             ), get_permalink( self::$post_id ) . '#comments'
     111            ),
     112            get_permalink( self::$post_id ) . '#comments'
    108113        );
    109114
     
    124129                'cpage' => $cpage,
    125130                'foo'   => 'bar',
    126             ), get_permalink( self::$post_id )
     131            ),
     132            get_permalink( self::$post_id )
    127133        );
    128134
Note: See TracChangeset for help on using the changeset viewer.