Save Time, Reviews, and Heartache by Running GitLab CI Checks Locally
summary
Shows a DDEV add-on that installs GitLabCI’s actual linters (ESLint, Stylelint, Prettier, PHPCS, PHPStan, cspell), scaffolds configs from Drupal Core/GitLab templates, and wires VS Code to run them inside the container. Demonstrates commands like ddev add-on get ultrabob drupal code quality, using phpcbf/phpcs autofix, prettier --write, eslint --fix, and cspell suggest, writes logs to DCQ reports, and uses generate baseline to capture 166+ PHPStan issues then incrementally unignore and fix them while recommending PHPStan level 3.
AI-written summary · about
chapters (15)
- 0:00Introduction and problem
- 3:35CI ping pong explained
- 5:42Tooling primer and motivation
- 8:29Installing the DDEV add-on
- 16:19Add-on installation complete
- 17:01Getting the add-on
- 19:51Running full suite of checks
- 23:14Fixing PHPCS issues
- 25:03Handling PHPStan errors
- 29:46Running Prettier and ESLint
- 32:19Stylint and CSpell checks
- 36:13Final checks and CI alignment
- 37:38DDEV Drupal contrib vs code quality
- 38:20Troubleshooting steps
- 40:29Future improvements and Q&A
