-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Traverse also interfaces #325
Comments
Hi @javaDeveloperKid can you please provide an example? Thanks! |
In my case, I wanted to forbid |
If I understood well your issue @javaDeveloperKid to avoid the suffix
What do you think? |
I think you can achieve that with this rule: $rules[] = Rule::allClasses()
->that(new ResideInOneOfTheseNamespaces('App'))
->andThat(new IsInterface())
->should(new NotHaveNameMatching('*Interface'))
->because('interface names should not end with Interface'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Request
Summary
Currently interfaces are not traversed therefore we can't create rules for them.
The text was updated successfully, but these errors were encountered: