Skip to content

[DX] Report rules that registered in withSkip() but never registered in withRules()#5919

Merged
TomasVotruba merged 9 commits intomainfrom
show-ignore-warning
May 29, 2024
Merged

[DX] Report rules that registered in withSkip() but never registered in withRules()#5919
TomasVotruba merged 9 commits intomainfrom
show-ignore-warning

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented May 29, 2024

Closes rectorphp/rector#8657

It shows the never registered in withRules() but registered in withSkip()

Screenshot 2024-05-29 at 11 25 40

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@samsonasik
Copy link
Copy Markdown
Member Author

It seems not work for array data:

        RemoveDeadLoopRector::class => [
            __DIR__ . '/src'
        ],

@samsonasik samsonasik marked this pull request as draft May 29, 2024 04:42
@samsonasik samsonasik marked this pull request as ready for review May 29, 2024 05:22
@samsonasik
Copy link
Copy Markdown
Member Author

I refactored ensureRectorRulesExist() to work with validate key => array data.

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@TomasVotruba
Copy link
Copy Markdown
Member

Looks good to me :) lets ship it, thank you

@TomasVotruba TomasVotruba merged commit 79d1b25 into main May 29, 2024
@TomasVotruba TomasVotruba deleted the show-ignore-warning branch May 29, 2024 07:01
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.

[DX] Make withSkip() report rules that are ignored, but never registered

2 participants