Repository navigation
Replies: 1 comment
|
Hi! We do not actually support grouping that way. We only support one pattern which can be either a namespace ( e.g But i think what you are trying to do is a valid use case that we SHOULD support. I would suggest opening a feature request for this, and will try to get it implemented ASAP. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
While working with Mago Guard, I ran into a problem and wanted to ask for help here.
I have added the following rule:
[[guard.structural.rules]]
on = "CafmBundle\Gateway\"
not-on = "CafmBundle\Gateway\{DTO,Doctrine}\"
must-be-named = "*Gateway"
reason = "Gateway must be named Gateway"
Now the issue is that the range/scope of “not-on” does not filter out the DTO and Doctrine directories as expected.
I tested the glob with various tools to make sure there is no error there.
After that, I started researching and came across two different statements. Picomatch, which is being used, claims that “brace expansion” is not supported. However, Tinyglobbing, which is also used, says that this documentation is wrong and that it does in fact work.
Of course, if I found something incorrect here or made a wrong assumption, it would also be good to know.
So the question is what is actually correct and what the proper approach is in this case.
Thanks in advance.
All reactions