Problem/Motivation
core/scripts/dev/commit-code-check.sh is used by core committers and contributors for pre-commit checks, but it can be improved:
- PHPCS, ESLint and Stylelint are invoked once for each file that needs to be checked, which is slow on large changesets
- Support for DrupalCI can be removed as CI checks are done in GitLab pipelines without this script
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3574117
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:
- 3574117-improve-commit-code-check.sh
changes, plain diff MR !14806
Comments
Comment #3
longwaveProbably can do more here to reduce duplication, but let's start with this.
Comment #5
smustgrave commentedLooks like good improvements to me.
Comment #8
catchThought about trying to manually test this on another issue, but this only really affects committers so I think it's safe enough to commit and if we run into a problem we can always revert again.
Committed/pushed to main and 11.x, thanks!