? ? ? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
16 Jul 2019

This PR simplifies the call to phpcs and automatically sets the installed_paths of phpcs with composer. This depends on joomla/cms-coding-standard to push the latest release to packagist. It also fixes a codestyle violation.

avatar Hackwar Hackwar - open - 16 Jul 2019
avatar Hackwar Hackwar - change - 16 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jul 2019
Category Unit Tests External Library Composer Change Libraries
avatar Hackwar Hackwar - change - 16 Jul 2019
Labels Added: ? ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2019
Category Unit Tests External Library Composer Change Libraries Unit Tests External Library Composer Change
avatar wilsonge
wilsonge - comment - 20 Jul 2019

This either isn’t required here or is required as a consequence of https://github.com/joomla/cms-coding-standards/blob/4.0-dev/lib/Joomla-CMS/ruleset.xml#L11 or can be removed. In addition this should be called per running of the tests. Because in real life people can have multiple terminal sessions running not running composer install to facilitate that

avatar Hackwar
Hackwar - comment - 21 Jul 2019

The parameter in cms-coding-standard does not have an effect and the paths are not set per terminal session, but are set once in a config file of phpcs. We had a whole additional package in our composer.json which practically only did what the script now does. So this is required here and needs to be removed from the cms-coding-standard. PR for that is coming soon.

avatar wilsonge wilsonge - change - 24 Jul 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-24 19:00:55
Closed_By wilsonge
avatar wilsonge wilsonge - close - 24 Jul 2019
avatar wilsonge wilsonge - merge - 24 Jul 2019
avatar wilsonge
wilsonge - comment - 24 Jul 2019

Thanks!

avatar twister65
twister65 - comment - 27 Jul 2019

The build fails:

phpcs --config-set installed_paths ../../joomla/cms-coding-standards/lib,../../joomla/coding-standards
sh: 1: phpcs: not found
Script phpcs --config-set installed_paths ../../joomla/cms-coding-standards/lib,../../joomla/coding-standards handling the post-install-cmd event returned with error code 127
composer install did not complete as expected.

avatar wilsonge
wilsonge - comment - 27 Jul 2019

This only happens if you're running composer install --no-dev and the fix is in #25720

avatar twister65
twister65 - comment - 28 Jul 2019

Thanks !

Add a Comment

Login with GitHub to post a comment