phpcs stopped working since the switch to testing on Drupal 10.0.x by default

Created on 22 December 2022, over 1 year ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

see https://www.drupal.org/pift-ci-job/2549923 β†’ which is a test run with PHP 7.4 & MySQL 5.7, Drupal 9.4.x from yesterday

It fails with

FILE: ...ic_updates/package_manager/tests/src/Build/PackageUpdateTest.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
59 | ERROR | [x] Functions must not contain multiple empty lines in
| | a row; found 3 empty lines
61 | ERROR | [ ] More than 2 empty lines are not allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY

If you run composer phpcs package_manager/tests/src/Build/PackageUpdateTest.php locally you can see there error is correct.

but none of the other test runs catch this. for instance https://www.drupal.org/pift-ci-job/2549927 β†’

Proposed resolution

Figure out how to fix this. It is probably a problem with drupalci.yml

In #3328740: Test failing on core 9.x β†’ we don't know if 9.4 test would fail because of this

Remaining tasks

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024