Skip to content

[TASK] Add rector to composer.json with a simple null-config #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

ziegenberg
Copy link
Contributor

Adding rector as a development dependency enables us to do automatic refactorings. Initially, this comes with a simple null-config, that does not do much but run rector, so following the suggested integration path of "taking it slow" [1].

Helps with #432

[1] https://getrector.com/documentation/integration-to-new-project

Copy link
Collaborator

@oliverklee oliverklee left a comment

Choose a reason for hiding this comment

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

Thanks for contributing this PR, @ziegenberg! ❤️

Adding rector as a development dependency enables us to do automatic
refactorings. Initially this comes with a simple null-config, that does
not do much but run rector, so following the suggested integration path
of "taking it slow" [1].

Helps with MyIntervals#432

[1] https://getrector.com/documentation/integration-to-new-project

Signed-off-by: Daniel Ziegenberg <[email protected]>
Signed-off-by: Daniel Ziegenberg <[email protected]>
@ziegenberg
Copy link
Contributor Author

I addressed your comments, rebased onto the current main and force-pushed my changes. Please let me know if you would rather have fixup commits for later squashing them.

@ziegenberg ziegenberg requested a review from oliverklee June 17, 2024 13:57
@oliverklee
Copy link
Collaborator

Please let me know if you would rather have fixup commits for later squashing them.

Yes, I'd prefer that as that makes re-reviewing a PR a bit easier. Thanks for asking!

@ziegenberg
Copy link
Contributor Author

I addressed the last two comments regarding the Composer commands in a fixup commit. If you're done reviewing I can quash them.

@ziegenberg ziegenberg requested a review from oliverklee June 17, 2024 14:23
@oliverklee
Copy link
Collaborator

If you're done reviewing I can quash them.

Thanks! There's no need, though - GitHub allows me to squash all commits of a PR when I merge it.

@ziegenberg ziegenberg requested a review from oliverklee June 17, 2024 15:05
Copy link
Collaborator

@oliverklee oliverklee left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks! 🙏

@oliverklee oliverklee merged commit 2b5d935 into MyIntervals:main Jun 17, 2024
18 checks passed
@ziegenberg ziegenberg deleted the add-rector branch June 17, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants