Skip to content
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

feature: add config to describe command to support custom fixers #6659

Closed
wants to merge 1 commit into from

Conversation

mollux
Copy link

@mollux mollux commented Oct 22, 2022

This fixes #6052

@mollux mollux changed the title add config to describe command to support custom fixers feature : add config to describe command to support custom fixers Oct 22, 2022
@mollux mollux changed the title feature : add config to describe command to support custom fixers feature: add config to describe command to support custom fixers Oct 22, 2022
Copy link
Member

@keradus keradus left a comment

Choose a reason for hiding this comment

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

I like the idea and current code update of this PR. Yet, to merge this PR I would like to ask you to provide a new test to confirm this feature is working and preventing us from accidentally breaking it in the future

@@ -359,7 +362,7 @@ private function getFixers(): array

$fixers = [];

foreach ($this->fixerFactory->getFixers() as $fixer) {
foreach ($this->configResolver->getFixers() as $fixer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this will limit the rules you can describe to the ones you configured I think?

Copy link
Member

Choose a reason for hiding this comment

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

potentially we should get union here, built-in rules and registered custom ones [configured to be used, or not]

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.

Describe custom fixers too
3 participants