Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Feb 2025 at 06:11 UTC
Updated:
8 Aug 2025 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedComment #3
quietone commentedComment #6
immaculatexavier commentedHi @quietone,

Enabled Drupal.NamingConventions.ValidEnumCase sniff in core/phpcs.xml.dist. Verified the change by running PHPCS on a test enum file with intentional violations—errors were correctly reported.
Do you need any further actions?
Comment #7
smustgrave commentedComment #8
quietone commented@immaculatexavier, the MR looks fine. The only thing is to remember to check that tests are passing before setting an issue to Needs Review. There was a failing test, which I presume, is why this was set back to Needs work. In this case the solution was simply to rerun the failing linting test. Then, since that passed the next step was to start the tests. All that is from the GitLab UI.
I reran test failing tests and tests are passing now.
Comment #9
smustgrave commentedThanks @quietone
Comment #10
xjmThanks @immaculatexavier. #8 is definitely a good way to evaluate this issue.
Previously, we would have added this to the release notes for the minor since it's enabling a new PHPCS rule, but we stopped doing that except in extreme cases. In the case of this rule, it is a very small addition (as can be seen from the fact that core already passes).
Committed to 11.x only as an addition to the core ruleset. Thanks everyone!
Comment #12
xjmHelps if I remember to push the commit, oops!