Closed (fixed)
Project:
Scheduler
Version:
2.x-dev
Component:
Coding Standards
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 May 2023 at 09:33 UTC
Updated:
23 May 2023 at 09:04 UTC
Jump to comment: Most recent
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.
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
Comment #2
jonathan1055 commentedFirst the MR with no change to show the baseline current state of the jobs.
Comment #4
jonathan1055 commentedBaseline phpcs job https://git.drupalcode.org/project/scheduler/-/jobs/46080 shows the current failures
Also images stored on #3357870: The PHPCS job overwrites the projects own phpcs.xml.dist file
Comment #5
jonathan1055 commentedThe Gitlab pipeline PHPCS job for the branch is https://git.drupalcode.org/project/scheduler/-/jobs/46080
It fails on two sniffs, with errors
and
Comment #6
jonathan1055 commentedThe PHPCS job for this MR is https://git.drupalcode.org/project/scheduler/-/jobs/46086 and it passes
Comment #7
jonathan1055 commentedTest failures are unrelated to this issue. See #3358927: SchedulerRulesEventsTest fail with "Indirect modification of overloaded property ... has no effect"
Comment #9
jonathan1055 commentedRenaming 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.