Problem/Motivation

The phpcs job fails on Gitlab CI at the moment with this error.

ERROR: Referenced sniff "Drupal.WhiteSpace.OperatorSpacing" does not exist
Run "phpcs --help" for usage information

It's unclear why this happens but #3358806: Rename phpcs.xml.dist to phpcs.xml in preparation for GitLabCI provides a good lead. We should begin by renaming phpcs.xml.dist to see if it fixes the problem.

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Needs work

The module contains a phpcs.xml.dist from here: https://git.drupalcode.org/project/examples/blob/HEAD/phpcs.xml.dist.

As such, the current version of the file is very similar to the one in the above link (except the sniff referred to in the error message). While we can update the file, I think it is more productive to just remove the file and let Gitlab CI pull in the default one. We can bring this one back if we need to customize anything.

  • hussainweb committed 6427a57a on 2.x
    Issue #3401246 by hussainweb: Fix phpcs sniff error
    
    Remove the phpcs....
hussainweb’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.