In the prototype testing of GitLabCI the PHPCS job overwrites Scheduler's phpcs.xml.dist file with its own. This results in Scheduler's customised rules being ignored, and we get warnings about standards that we are not interested in, or for those where we have modified the arguments, eg to allow longer array definition line length.

According to Moshe on #3357870: The PHPCS job overwrites the projects own phpcs.xml.dist file contrib modules should use a phpcs.xml file not a phpcs.xml.dist version.

Issue fork scheduler-3358806

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

First the MR with no change to show the baseline current state of the jobs.

jonathan1055’s picture

jonathan1055’s picture

The Gitlab pipeline PHPCS job for the branch is https://git.drupalcode.org/project/scheduler/-/jobs/46080
It fails on two sniffs, with errors

 284 | WARNING | [x] There must be no blank line following an inline
     |         |     comment (Drupal.Commenting.InlineComment.SpacingAfter)

and

 873 | ERROR   | [ ] The array declaration extends to column 91 (the limit is
      |         |     80). The array content should be split up over multiple
      |         |     lines (Drupal.Arrays.Array.LongLineDeclaration)
jonathan1055’s picture

The PHPCS job for this MR is https://git.drupalcode.org/project/scheduler/-/jobs/46086 and it passes

jonathan1055’s picture

  • jonathan1055 committed b8ca0c1b on 2.x
    Issue #3358806 by jonathan1055: Rename phpcs.xml.dist to phpcs.xml in...
jonathan1055’s picture

Status: Active » Fixed
Parent issue: » #3356800: Enable GitLab CI testing

Renaming should not cause a big problem. Better to do this now before 2.0 release
Will also backport to 8.x-1.x to keep both branches aligned.

  • jonathan1055 committed 389244d2 on 8.x-1.x
    Issue #3358806 by jonathan1055: Rename phpcs.xml.dist to phpcs.xml in...

Status: Fixed » Closed (fixed)

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