-
Notifications
You must be signed in to change notification settings - Fork 3
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
Are patterns supported? #76
Comments
Thanks for the issue request! I want to dig a bit more into what you're asking for - from what I understand, there are two potential features here. Feature one: container wildcardsThe first potential feature is to support container wildcards in your contract. I've created an issue for this here: #77 The answer with this one is, it's not possible yet but I'm planning on implementing it soon. In the meantime, you can just list all your apps in the containers and you get the same result. Let me know if (and why) it's causing you a lot of pain and I may be able to prioritise it. Feature two: layers at different levelsAs I understand it, the example you give might be for the following files:
You would want to disallow, say, Currently this isn't possible, because layers have to exist in the same container. So you could make However, I'm planning to add support for closed layers: #78 I think this might give you what you need. Your contract might look something like this:
This would prevent anything from anywhere else in the codebase from reaching down below the Closed layers for me is a feature I'd really like to implement soon, especially if others are interested in it too. Let me know your thoughts. |
Eg, I'd like the ability to say that modules in
utils
may not import from from any path that matchesapps.*.models
.The text was updated successfully, but these errors were encountered: