Skip to content

feat: add dev-phpcbf command to auto-fix PHP files (issue #28) - #29

Open
Tdnshah wants to merge 1 commit into
Vardot:mainfrom
Tdnshah:feat/phpcbf-auto-fixer-issue-28
Open

feat: add dev-phpcbf command to auto-fix PHP files (issue #28)#29
Tdnshah wants to merge 1 commit into
Vardot:mainfrom
Tdnshah:feat/phpcbf-auto-fixer-issue-28

Conversation

@Tdnshah

@Tdnshah Tdnshah commented Jul 2, 2026

Copy link
Copy Markdown

The Issue

How This PR Solves The Issue

Adds a new ddev command similar to dev-phpcs for fixing linting issue with a command named dev-phpcbf

  • Adds new PHPCBF linter that auto-fixes Drupal code style issues
  • Supports --all, --files=, and default (git diff) modes
  • Same extension filtering as dev-phpcs (--ext=php,module,inc,...)
  • Excludes LineLength rules to avoid false negatives
  • Documents usage in README.md

Manual Testing Instructions

No, this PR just adds a new command for fixing issues.

ddev add-on get https://github.com/Vardot/ddev-dev-tools/tarball/refs/pull/28/head
ddev restart

Automated Testing Overview

NA

Release/Deployment Notes

NA

- Adds new PHPCBF linter that auto-fixes Drupal code style issues
- Supports --all, --files=, and default (git diff) modes
- Same extension filtering as dev-phpcs (--ext=php,module,inc,...)
- Excludes LineLength rules to avoid false negatives
- Documents usage in README.md
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.

Enable support for phpcbf

1 participant