Make WordPress Core


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

    r42343 r43571  
    7676                'class'     => 'test-class',
    7777                'some-meta' => 'value',
    78             ), $node2->meta
     78            ),
     79            $node2->meta
    7980        );
    8081    }
     
    492493    public function test_admin_bar_has_no_archives_link_for_non_public_cpt() {
    493494        register_post_type(
    494             'foo-non-public', array(
     495            'foo-non-public',
     496            array(
    495497                'public'            => false,
    496498                'has_archive'       => true,
     
    515517    public function test_admin_bar_has_no_archives_link_for_cpt_without_archive() {
    516518        register_post_type(
    517             'foo-non-public', array(
     519            'foo-non-public',
     520            array(
    518521                'public'            => true,
    519522                'has_archive'       => false,
     
    538541    public function test_admin_bar_has_no_archives_link_for_cpt_not_shown_in_admin_bar() {
    539542        register_post_type(
    540             'foo-non-public', array(
     543            'foo-non-public',
     544            array(
    541545                'public'            => true,
    542546                'has_archive'       => true,
Note: See TracChangeset for help on using the changeset viewer.