[wp-trac] [WordPress Trac] #47853: Minor update to composer lint scripts

WordPress Trac noreply at wordpress.org
Thu Sep 19 15:00:25 UTC 2019


#47853: Minor update to composer lint scripts
------------------------------+-------------------------------
 Reporter:  dingo_d           |       Owner:  desrosj
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.3
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  coding-standards
------------------------------+-------------------------------
Changes (by desrosj):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46187" 46187]:
 {{{
 #!CommitTicketReference repository="" revision="46187"
 Build/Test Tools: Improvements to Composer scripts.

 Prefixing a script command with `@php ` ensures that the script runs with
 the same version of PHP that Composer is installed with (and not the
 system default).

 This change also updates the `phpcs` and `phpcbf` commands to use the
 version of PHPCS installed by Composer.

 The `—standard` is no longer explicitly passed to the command. By default,
 PHPCS will look for `phpcs.xml.dist`, which is the name of the custom
 standards file currently in Core.

 Props dingo_d, jrf.
 Fixes #47853.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47853#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list