#49722 closed defect (bug) (fixed)
Don't format before linting on Travis
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-dev-note |
Focuses: | Cc: |
Description
When the lint:php
job runs on Travis, the code is formatted (with phpcbf) before it's linted. This defeats the point of linting as it means problems that can be fixed with phpcbf get missed.
Ref: https://core.trac.wordpress.org/browser/tags/5.3.2/.travis.yml?marks=124-125#L110
Introduced in [45799]. @pento Is this intentional or was it something temporary that was supposed to be removed at a later date?
Change History (4)
#2
@
5 years ago
- Keywords needs-patch added; dev-feedback removed
- Milestone changed from Awaiting Review to 5.5
#3
@
5 years ago
- Owner set to johnbillion
- Resolution set to fixed
- Status changed from new to closed
In 47741:
#4
@
5 years ago
- Keywords has-dev-note added; needs-patch removed
Referenced in the following dev note: https://make.wordpress.org/core/2020/07/14/php-related-improvements-changes-wordpress-5-5-edition/.
Note: See
TracTickets for help on using
tickets.
IIRC,
phpcbf
will return an error value if it makes any changes, so the subsequentphpcs
commands won't be run. This was probably done for performance.The
composer format
can probably be removed, I have no strong feelings either way on it.