Skip to content

Add base rules #30

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add base rules #30

wants to merge 1 commit into from

Conversation

rickwest
Copy link

@rickwest rickwest commented Jun 16, 2025

Hey @smortexa

Just wanted to say thanks for the great package! I've just implemented this on a work project and it's great to have all the default Laravel rules as a starting point.

Due to the sheer size of our project, however, we had a lot of failures, mainly due to our own internal abstractions and namespaces/legacy files that just need ignoring. To work around this, I've added several abstract 'base rules' that allow us to easily extend some defaults. I wanted to propose something like this for the base package as it would make extending and customising the provided rules much easier as well as being really easy to add new custom rules.

I'm opening this draft PR as an example and to gauge your interest, but would be happy to implement for the remainder of the rules. I don't think this would be a breaking change (but I may have naively overlooked something) and I think this would be a neat addition to the package, especially when adding to larger projects. Would be great to hear your thoughts?

Thanks again!

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.

1 participant