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

WordPress Trac noreply at wordpress.org
Thu Aug 8 15:49:04 UTC 2019


#47853: Minor update to composer lint scripts
------------------------------+-----------------------------
 Reporter:  dingo_d           |      Owner:  pento
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  trunk
 Severity:  normal            |   Keywords:  has-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 I've modified the composer scripts used for checking the standards of the
 core.

 I've added `@php` prefix, which will make sure that the scripts are run
 against the same PHP version as with which Composer is called.
 I've also changed the location from where the scripts are called, since
 it's assumed that the user will install the packages using Composer (this
 is the `./vendor/bin/phpcs` and `./vendor/bin/phpcbf` part).

 Also the last script was just repeating the `lint` one so I've just used
 that.

 I don't think that the code sniffer is used without composer so this
 should be ok.

 Tested it locally and got the same result.

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


More information about the wp-trac mailing list