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/pomo/po.php

    r42343 r43571  
    9292msgid_plural "babas"
    9393msgstr[0] ""
    94 msgstr[1] ""', $po->export_entry( $entry )
     94msgstr[1] ""',
     95            $po->export_entry( $entry )
    9596        );
    9697        $entry = new Translation_Entry(
     
    104105#  dyado
    105106msgid "baba"
    106 msgstr ""', $po->export_entry( $entry )
     107msgstr ""',
     108            $po->export_entry( $entry )
    107109        );
    108110        $entry = new Translation_Entry(
     
    115117            '#. baba
    116118msgid "baba"
    117 msgstr ""', $po->export_entry( $entry )
     119msgstr ""',
     120            $po->export_entry( $entry )
    118121        );
    119122        $entry = new Translation_Entry(
     
    129132#: 29
    130133msgid "baba"
    131 msgstr ""', $po->export_entry( $entry )
     134msgstr ""',
     135            $po->export_entry( $entry )
    132136        );
    133137        $entry = new Translation_Entry(
     
    157161            'msgid "baba"
    158162msgid_plural "babas"
    159 msgstr[0] "кукубуку"', $po->export_entry( $entry )
     163msgstr[0] "кукубуку"',
     164            $po->export_entry( $entry )
    160165        );
    161166
     
    172177msgstr[0] "кукубуку"
    173178msgstr[1] "кукуруку"
    174 msgstr[2] "бабаяга"', $po->export_entry( $entry )
     179msgstr[2] "бабаяга"',
     180            $po->export_entry( $entry )
    175181        );
    176182        // context
     
    191197msgstr[0] "кукубуку"
    192198msgstr[1] "кукуруку"
    193 msgstr[2] "бабаяга"', $po->export_entry( $entry )
     199msgstr[2] "бабаяга"',
     200            $po->export_entry( $entry )
    194201        );
    195202    }
     
    251258                'Project-Id-Version' => 'WordPress 2.6-bleeding',
    252259                'Plural-Forms'       => 'nplurals=2; plural=n != 1;',
    253             ), $po->headers
     260            ),
     261            $po->headers
    254262        );
    255263
Note: See TracChangeset for help on using the changeset viewer.