Skip to content

Standardise Composer script names#69

Merged
GaryJones merged 1 commit intodevelopfrom
GaryJones/fix-cs-fix-command
Feb 18, 2026
Merged

Standardise Composer script names#69
GaryJones merged 1 commit intodevelopfrom
GaryJones/fix-cs-fix-command

Conversation

@GaryJones
Copy link
Contributor

Summary

Our Composer scripts for code style checking and auto-fixing used
non-standard names (cs calling phpcs directly, cbf calling
phpcbf), which diverged from the conventions defined in
plugin-standards. Developers working across multiple plugins shouldn't
need to remember different command names for the same operation.

This renames cbf to cs-fix and updates both scripts to use the
@php ./vendor/bin/ prefix, aligning with the standard script
definitions. The development documentation is also updated to reference
the canonical composer cs and composer cs-fix aliases rather than
calling the binaries directly.

Test plan

  • Run composer cs — confirms PHPCS executes correctly
  • Run composer cs-fix — confirms PHPCBF executes correctly
  • Run composer run --list — confirms both scripts appear with descriptions

Align the code style scripts with the conventions defined in
plugin-standards. Rename `cbf` to `cs-fix` and use the `@php
./vendor/bin/` prefix for both `cs` and `cs-fix`. Update the
development docs to reference the canonical script aliases.
@GaryJones GaryJones requested a review from a team as a code owner February 18, 2026 17:30
@GaryJones GaryJones merged commit 7e9cd23 into develop Feb 18, 2026
4 checks passed
@GaryJones GaryJones deleted the GaryJones/fix-cs-fix-command branch February 18, 2026 17:33
@GaryJones GaryJones self-assigned this Feb 18, 2026
@GaryJones GaryJones added the type: maintenance Routine maintenance and code quality improvements label Feb 18, 2026
@GaryJones GaryJones added this to the Next milestone Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: maintenance Routine maintenance and code quality improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant