Skip to content

[TASK] Streamline the code checker and fixer configuration#1535

Merged
JakeQZ merged 1 commit intomainfrom
cleanup/sorted-checked-files
Feb 17, 2026
Merged

[TASK] Streamline the code checker and fixer configuration#1535
JakeQZ merged 1 commit intomainfrom
cleanup/sorted-checked-files

Conversation

@oliverklee
Copy link
Collaborator

  • always check and fix the bin/, config/, src/ and test/ directories
  • sort the directories when provided to a tool
  • make the rector command explicit

- always check and fix the `bin/`, `config/`, `src/` and `test/`
  directories
- sort the directories when provided to a tool
- make the rector command explicit
@coveralls
Copy link

Coverage Status

coverage: 72.114%. remained the same
when pulling 6fb6a20 on cleanup/sorted-checked-files
into a3cc167 on main.

Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we missed the odd directory for the tool commands.

I like the alphabetical reordering, and the changes look good.

But I need to know why process is added to the rector command, and can't find the info.

"check:php:codesniffer": "phpcs --standard=config/phpcs.xml bin config src tests",
"check:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin config src tests",
"check:php:lint": "parallel-lint bin config src tests",
"check:php:rector": "rector process --no-progress-bar --dry-run --config=config/rector.php",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to know why process is now needed on the command line, when it wasn't before.

I've looked at the documentation, which alludes to it with "run process command with...", but provides no links, and does not explain what the commands are, how they work, or why they might be needed.

"fix:php:rector": "rector --config=config/rector.php",
"fix:php:codesniffer": "phpcbf --standard=config/phpcs.xml bin config src tests",
"fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin config src tests",
"fix:php:rector": "rector process --config=config/rector.php",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@oliverklee
Copy link
Collaborator Author

But I need to know why process is added to the rector command, and can't find the info.

This is the command for Rector to run. It's the default command (so omitting it will still get Rector to run it), but explicitly providing it makes it easier for the human reader to know what will happen.

@oliverklee oliverklee requested a review from JakeQZ February 17, 2026 23:34
Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the command for Rector to run. It's the default command (so omitting it will still get Rector to run it)

Where are you finding the documentation? I can't find anything saying that.

I'll trust what you say.

@JakeQZ JakeQZ merged commit 447fcb8 into main Feb 17, 2026
24 checks passed
@JakeQZ JakeQZ deleted the cleanup/sorted-checked-files branch February 17, 2026 23:48
@oliverklee
Copy link
Collaborator Author

Where are you finding the documentation? I can't find anything saying that.

That's from my experience: "Rector processes files even when I omit the process command." :-)

@JakeQZ
Copy link
Collaborator

JakeQZ commented Feb 18, 2026

"Rector processes files even when I omit the process command." :-)

Where's that from?

May as well include the process command for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants