[wp-trac] [WordPress Trac] #49783: PHPCS config: Persistent caching on Travis

WordPress Trac noreply at wordpress.org
Tue Jun 2 05:57:59 UTC 2020


#49783: PHPCS config: Persistent caching on Travis
------------------------------+-------------------------------
 Reporter:  johnbillion       |       Owner:  (none)
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  5.5
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  coding-standards
------------------------------+-------------------------------

Comment (by jrf):

 @johnbillion I've ran some tests myself as well & had a look at the
 caching code. I concur with your conclusions.

 The only thing I can think of which still needs addressing in the PHPCS
 caching code would be to take enabled PHP extensions into account, but
 that's not something we should be concerned about for this ticket.


 I do wonder a little about the `tests/cache/phpcs.json` file name as it
 would suggest this has something to do with the (unit) tests, which it
 doesn't.

 What about just letting it cache in the root directory where the ruleset
 lives as well to a file called `.phpcs.cache` ?

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


More information about the wp-trac mailing list