Cater for PHPCS when phpcodesniffer-composer-installer is not loaded

Issue information

From user: jonathan1055

Related to !427 (merged)

Contribution record

Fork management

Problem/Motivation

In the d7 pipelines, we need to support PHP5.6 as this is the minimum for Drupal 7. During the testing of #3557341: Symlink project script needs to be PHP5.6 compatible we discovered that the PHPCS job fails at PHP5.6 with

$COMPOSER_BIN_DIR/phpcs -e || true
ERROR: Referenced sniff "Drupal" does not exist.
ERROR: No sniffs were registered.

More details are on the GTD issue #3557370: PHPCS fails on d7-basic - The Drupal standard is not found

Proposed resolution

Implement the solution tested in the above issue, but do it the main-d7.yml composer: script:, as this should not be down to each separate project to fix it in their own after_script

Remaining tasks

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information