[wp-trac] [WordPress Trac] #44600: Update WPCS to 1.0.0, and enforce coding standards
WordPress Trac
noreply at wordpress.org
Fri Aug 17 01:50:30 UTC 2018
#44600: Update WPCS to 1.0.0, and enforce coding standards
------------------------------+-------------------------------
Reporter: pento | Owner: pento
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: | Focuses: coding-standards
------------------------------+-------------------------------
Changes (by pento):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"43571" 43571]:
{{{
#!CommitTicketReference repository="" revision="43571"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44600#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list