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/media/getAttachmentTaxonomies.php

    r42343 r43571  
    1010
    1111        $a          = self::factory()->attachment->create_object(
    12             'image.jpg', 0, array(
     12            'image.jpg',
     13            0,
     14            array(
    1315                'post_mime_type' => 'image/jpeg',
    1416                'post_type'      => 'attachment',
     
    2729
    2830        $a          = self::factory()->attachment->create_object(
    29             'image.jpg', 0, array(
     31            'image.jpg',
     32            0,
     33            array(
    3034                'post_mime_type' => 'image/jpeg',
    3135                'post_type'      => 'attachment',
     
    4448
    4549        $a          = self::factory()->attachment->create_object(
    46             'image.jpg', 0, array(
     50            'image.jpg',
     51            0,
     52            array(
    4753                'post_mime_type' => 'image/jpeg',
    4854                'post_type'      => 'attachment',
     
    6167
    6268        $a          = self::factory()->attachment->create_object(
    63             'image.jpg', 0, array(
     69            'image.jpg',
     70            0,
     71            array(
    6472                'post_mime_type' => 'image/jpeg',
    6573                'post_type'      => 'attachment',
     
    7886
    7987        $a          = self::factory()->attachment->create_object(
    80             'image.jpg', 0, array(
     88            'image.jpg',
     89            0,
     90            array(
    8191                'post_mime_type' => 'image/jpeg',
    8292                'post_type'      => 'attachment',
     
    98108
    99109        $a          = self::factory()->attachment->create_object(
    100             'image.jpg', 0, array(
     110            'image.jpg',
     111            0,
     112            array(
    101113                'post_mime_type' => 'image/jpeg',
    102114                'post_type'      => 'attachment',
     
    120132
    121133        $a          = self::factory()->attachment->create_object(
    122             'image.jpg', 0, array(
     134            'image.jpg',
     135            0,
     136            array(
    123137                'post_mime_type' => 'image/jpeg',
    124138                'post_type'      => 'attachment',
Note: See TracChangeset for help on using the changeset viewer.