[buddypress-trac] [BuddyPress Trac] #7926: Automated linting for PHP versions

buddypress-trac noreply at wordpress.org
Fri Jul 13 19:25:33 UTC 2018


#7926: Automated linting for PHP versions
------------------------------+-------------------------------------
 Reporter:  boonebgorges      |      Owner:  netweb
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Contributions
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch 2nd-opinion
------------------------------+-------------------------------------
 On a handful of occasions over the last few releases, we've included
 syntax that is incompatible with a version of PHP that we claim to
 support. See eg #7925. We could help to avoid this by adding some linting
 to our Travis CI framework.

 Here's one possible approach: https://hakre.wordpress.com/2015/11/10
 /linting-php-files-in-parallel-on-travis/

 Another is a PHP script that I cobbled together for a client:
 https://github.com/livinglab/openlab/blob/master/developer/lint-php.php.
 This approach is nice because we can easily define a blacklist.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7926>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list