moodlehq/moodle-plugin-ci

moodle-plugin-ci phpcs fails: moodle coding standard not installed

PhMemmel opened this issue · 2 comments

When running moodle-plugin-ci codechecker in my local gitlab pipeline, the error is reported:

RUN  Moodle CodeSniffer standard on MY_PLUGINNAME
ERROR: the "moodle" coding standard is not installed. The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz and Zend

It's working for me, so far: https://github.com/moodlehq/moodle-local_codechecker/actions/runs/8263285860

I'd recommend to take a look to logs, maybe there was some networking / gha / composer problem and that caused the standard not to be installed. And, also, rerun it to see if the (bad) condition was temporal.

Ciao :-)

Digged some more and found the related error message when running composer:

Composer plugins have been disabled for safety in this non-interactive session

Setting COMPOSER_ALLOW_SUPERUSER=1 when running composer solved the issue. Thank you for the feedback and sorry for the noise!