Skip to content

Add ddev commands for phpstan, phpcs and cspell#27

Merged
amateescu merged 1 commit into
mainfrom
add-code-quality-commands
Jul 16, 2026
Merged

Add ddev commands for phpstan, phpcs and cspell#27
amateescu merged 1 commit into
mainfrom
add-code-quality-commands

Conversation

@amateescu

@amateescu amateescu commented Jul 16, 2026

Copy link
Copy Markdown
Owner
  • ddev phpstan [paths]: uses core/phpstan.neon.dist for full runs and core/phpstan-partial.neon when specific paths are given, matching what commit-code-check.sh does (the baseline only applies cleanly to whole-codebase runs). Disables APC like core's script.
  • ddev phpcs [paths]: runs with core/phpcs.xml.dist, -ps and --parallel=$(nproc), mirroring core's invocation.
  • ddev cspell [globs]: mirrors core's spellcheck:core yarn script (project-root-relative globs, shared cache); checks the same default file set when run without arguments, and prints install instructions when core/node_modules is missing.
  • Documents all three in the README and DRUPAL-DEV.md, and extends the bats health checks (positive runs for phpstan/phpcs, the not-installed error path for cspell).

@amateescu
amateescu merged commit 3409af1 into main Jul 16, 2026
2 checks passed
@amateescu
amateescu deleted the add-code-quality-commands branch July 16, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant