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

IBX-9627: Replaced Symfony code quality set with specific rules #27

Merged
merged 3 commits into from
Feb 27, 2025

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Feb 27, 2025

🎫 Issue IBX-9627

Related PRs:

Description:

This is a follow-up to #24. Code quality Symfony Set List proved to be too volatile. For example, it removes Action suffix from controllers while not updating controller configuration YAMLs, which makes it not suitable for automated CI jobs.

Instead, I've chosen 3 Rectors from that set list, which provide a value:

  • EventListenerToEventSubscriberRector
  • LiteralGetToRequestClassConstantRector // converts 'GET' literals to use a const from SF
  • ResponseStatusCodeRector // converts HTTP status codes to use a const from SF

@alongosz alongosz merged commit 1257477 into main Feb 27, 2025
3 checks passed
@alongosz alongosz deleted the ibx-9627-drop-sf-code-quality-rector branch February 27, 2025 11: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.

4 participants