Closed (fixed)
Project:
Coder
Version:
8.x-3.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2022 at 09:53 UTC
Updated:
16 Apr 2022 at 18:04 UTC
Jump to comment: Most recent
On some occasions, running phpcbf with the "Drupal" and "Drupal-Practice" coding rulesets, "min.css" files will get formatted. Since these files are intended to be compressed and should never be optimized, we have to exclude them from the "Drupal" ruleset.
It seems that this is not always the case, but excluding them directly in the ruleset, will fix the issue.
Exclude all "min.css" files in the ruleset.
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 #3
grevil commentedI created a merge request, fixing the issue.
Comment #4
thomas.frobieterPatch looks fine to me!
Comment #5
anybodyShouldn't it better be
*.min.css? (with a dot)?Otherwise wouldn't admin.css be excluded? ;)
Comment #6
anybodyComment #7
anybodyInterestingly the code check on Drupal CI also checks minified css files, which also doesn't make much sense to me, see for example: https://www.drupal.org/pift-ci-job/2339610 - I didn't find an issue for that.
Comment #8
anybodyComment #9
grevil commentedThanks, @Anybody, didn't think of that!
I fixed it on Gitlab and https://github.com/pfrenssen/coder/pull/159.
Comment #11
klausiMerged, thanks!