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.



git-svn-id: https://develop.svn.wordpress.org/trunk@43571 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2018-08-17 01:50:26 +00:00
parent fed48ba3fe
commit a75d153eee
549 changed files with 9936 additions and 6721 deletions
@@ -200,7 +200,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -270,7 +271,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -326,7 +328,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -382,7 +385,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -433,7 +437,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 1,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -484,7 +489,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link );
@@ -539,7 +545,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
$link_p1 = add_query_arg(
array(
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link_p1 );
@@ -558,7 +565,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link_p2 );
@@ -630,7 +638,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
$link_p0 = add_query_arg(
array(
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link_p0 );
@@ -648,7 +657,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 2,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link_p2 );
@@ -668,7 +678,8 @@ class Tests_Comment_CommentsTemplate extends WP_UnitTestCase {
array(
'cpage' => 1,
'comments_per_page' => 2,
), get_permalink( $p )
),
get_permalink( $p )
);
$this->go_to( $link_p1 );