Skip to content

Conversation

@p-26
Copy link

@p-26 p-26 commented Apr 3, 2025

We have the issue, that we need to create a separate "allow" rule for each level of child namespace in our code.

E.g. to enable, that namespace Dg.BookIn.RecirculateProduct.Erp; can reference using Dg.BookIn.Contracts.Internal;, it would be nice if only one "allow" rule Dg.[context].* Dg.[context].*.Internal would suffice. Currently, we need to create the "allow" rule Dg.[context].*.* Dg.[context].*.Internal for it
Our rules file currently looks like this:

# Do not reference internal apis
!Dg.* Dg.*.Internal
# ..except within your own context
Dg.[context] Dg.[context].Internal
Dg.[context] Dg.[context].*.Internal
Dg.[context].* Dg.[context].Internal
Dg.[context].* Dg.[context].*.Internal
Dg.[context].*.* Dg.[context].*.Internal
Dg.[context].*.* Dg.[context].Internal
Dg.[context].*.*.* Dg.[context].*.Internal
Dg.[context].*.*.*.* Dg.[context].*.Internal
Dg.[context].*.*.*.* Dg.[context].*.Internal
Dg.[context].*.*.*.*.* Dg.[context].*.Internal

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