Problem/Motivation
The proposed GitLab CI checks report existing PHP coding-standard violations, JavaScript and CSS lint errors, and spelling findings.
Steps to reproduce
- Run Drupal PHPCS, ESLint, Stylelint and CSpell against the current
1.0.xbranch. - Observe coding-standard violations, lint errors and spelling findings.
Proposed resolution
Apply coding standards, fix JavaScript and CSS formatting, use US spelling and add a dictionary for valid project terms. Preserve formatter behavior and settings.
Two array-key errors are already addressed by #3628598; leave those blocks unchanged to avoid conflicts.
ESLint, Stylelint and CSpell pass. Drupal PHPCS passes with the pending token-help MR applied. Compatibility with all three pending MRs has been checked.
Service-injection recommendations and non-blocking JavaScript warnings are outside this issue.
Remaining tasks
Review and merge the MR.
Issue fork glightbox_media_video-3628807
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 #3
nick hope commentedComment #5
levmyshkinThanks @nick hope! Reviewed and merged into 1.0.x.
Review notes:
#statesarrays intentionally left for #3628598.Committed as b1abc1e.
Comment #7
levmyshkin