Skip to content

Improve rule definitions#706

Closed
simonschaufi wants to merge 1 commit into
rectorphp:mainfrom
simonschaufi:improve-rule-definition
Closed

Improve rule definitions#706
simonschaufi wants to merge 1 commit into
rectorphp:mainfrom
simonschaufi:improve-rule-definition

Conversation

@simonschaufi

Copy link
Copy Markdown
  • Use active voice
  • Remove final fullstop
  • Use code style

public function getRuleDefinition(): RuleDefinition
{
return new RuleDefinition('Refactor deprecated withConsecutive() to willReturnCallback() structure', [
return new RuleDefinition('Refactor deprecated `withConsecutive()` to `willReturnCallback()` structure', [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you do typos first and leave this function names wrap for next round? I find it hard to review and not sure about this change.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hmm, that will also make it hatte for me and create a lot of extra time to split into another PR. These changes already took me a lot of time and now I need to go through all rules again? I did these kind of changes already before and they went through without causing much trouble in another repo.

- Use active voice
- Remove final fullstop
- Use code style
@simonschaufi
simonschaufi force-pushed the improve-rule-definition branch from e460abe to 0ceb76d Compare July 11, 2026 13:16
@simonschaufi

Copy link
Copy Markdown
Author

@TomasVotruba how can we move forward?

@TomasVotruba

Copy link
Copy Markdown
Member

I've decided to keep it as it is. It's more human readable and its just code samples, not real code.
Thanks for understanding 🙏

@simonschaufi

Copy link
Copy Markdown
Author

Sorry but I don't understand it just like that. I parse the files and use that like actually for commit messages and I want my commit messages to be clear. I've invested a lot of time into unifying the commit message also in the past in the main rector repository and some messages are even completely wrong.

@rectorphp rectorphp locked as resolved and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants