Problem/Motivation
As seen within #3345607: Update to Package Manager 3.x, there is a much less brittle approach to running commit checks
Steps to reproduce
Proposed resolution
Remaining tasks
- ✅ File an issue about this project
- ☐ Manual Testing
- ☐ Code Review
- ☐ Accessibility Review
- ☐ Automated tests needed/written?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | commit-checks.patch | 11.73 KB | tim.plunkett |
Issue fork project_browser-3348781
Show commands
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 #4
tim.plunkettComment #5
chrisfromredfinWoo! Linting & testing back up and working.
Comment #7
wim leersI introduced this alternative approach for Package Manager/Automatic Updates in #3343430: Stop reusing core's commit-code-check.sh in favor of 4 simple commands. But there's one important difference between the two projects: PM/AU does not contain any JS, but PB does!
So right now you lost all JS code quality checks 😅 You'll want to port those over.
Comment #8
tim.plunkettGood point @Wim Leers!
But I think we only have one non-Svelte JS file, and we were already going out of our way to disable JS checks for those, since they contain HTML and CSS as well.
That's why our version committed above has an additional step to run our
lint:sveltecommandI'll leave this for @chrisfromredfin to ponder, but I think we're okay here
Comment #9
wim leers👍
Comment #10
chrisfromredfinAs I've thought about this, it feels the same as the yaml linter. We could do it now or do it later, but the consequence regardless is minimal. If we discover it late, it's maybe 30 minutes to fix both, because the surface area is so small. It might be nice to open a lower-priority ticket to add those two things.
My larger concern is that the javascript that IS inside of .svelte files is passing Drupal JS checks, and I'm hoping lint:svelte is able to check those things.
Comment #11
chrisfromredfinDocumenting here that yes, lint:svelte does check for proper formatting inside of the .svelte files, so I do think we're good here.