[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards
WordPress Trac
noreply at wordpress.org
Mon Nov 27 01:10:17 UTC 2017
#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
Reporter: netweb | Owner: pento
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 5.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: early commit | Focuses:
----------------------------+-----------------------
Comment (by pento):
I agree that Docs should be left out for now. Hopefully some more rules
can be auto-fixed, because manually fixing 15000+ errors and warnings is a
bit of an overwhelming problem. 🙃
In [attachment:phpcs.xml.9.dist]:
- Remove the `WordPress-Docs` rule.
- Exclude the entire `tests/phpunit/data` directory - fixtures may
intentionally include incorrectly formatted code.
@jrf's PR has been merged, so I've updated the
[https://github.com/WordPress/wordpress-develop/pull/8 WordPress PR], run
against WPCS `dev-develop` and PHPCS `dev-master`.
Before `wpcbf`: 72816 errors and 21044 warnings in 1117 files.
After `wpcbf`: 3387 errors and 1242 warnings in 541 files.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41057#comment:96>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list