Exclude license.txt/.md/etc from phpcs by default

Created on 8 July 2025, 5 days ago

Problem/Motivation

We increasingly want to encourage the correct license file to be committed to project repos, as now that Composer is in wide use, the automatic packaging of the license.txt into zip files is no longer as relevant for distribution.

However, it looks like this can result in phpcs errors in some cases:
https://drupal.slack.com/archives/C204BR9ML/p1751981012040629

Proposed resolution

We should exclude license.txt, license.md and any similar names that might be in common usage for including license files by default from the phpcs configuration.

✨ Feature request
Status

Active

Component

gitlab-ci

Created by

πŸ‡ΊπŸ‡ΈUnited States hestenet Portland, OR πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Production build 0.71.5 2024