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/term/termExists.php

    r42343 r43571  
    9292    public function test_term_exists_taxonomy_nonempty_parent_nonempty_match_slug() {
    9393        register_taxonomy(
    94             'foo', 'post', array(
     94            'foo',
     95            'post',
     96            array(
    9597                'hierarchical' => true,
    9698            )
     
    124126    public function test_term_exists_taxonomy_nonempty_parent_0_should_return_false_for_child_term() {
    125127        register_taxonomy(
    126             'foo', 'post', array(
     128            'foo',
     129            'post',
     130            array(
    127131                'hierarchical' => true,
    128132            )
     
    152156    public function test_term_exists_taxonomy_nonempty_parent_nonempty_match_name() {
    153157        register_taxonomy(
    154             'foo', 'post', array(
     158            'foo',
     159            'post',
     160            array(
    155161                'hierarchical' => true,
    156162            )
Note: See TracChangeset for help on using the changeset viewer.