You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are times when there are architecture rules that only apply to some classes, but that are not on the same package.
It would be nice if we could do something similar to this
This will however not only import First and Second, but their entire packages.
If your rules only apply to those classes, I'd be explicit about that in the rule definition.
I think principally this classes = syntax would be a fair addition, since there is also ClassFileImporter.importClasses(Class...). I originally left it out, because I thought it's a corner case and you can use LocationProvider exactly as you did to achieve the same. Still not sure if classes = ... would be used that often, but it would be consistent with ClassFileImporter and also not be a huge deal to add.
So, if anybody wants to give this a shot I'd be open for a PR 😁
There are times when there are architecture rules that only apply to some classes, but that are not on the same package.
It would be nice if we could do something similar to this
Something similar can be achieved using
locations
, but it implies either adding a lot of boilerplate codeor having to develop a custom solution like this one, that still isn't completely clean as it implies adding an extra annotation
The text was updated successfully, but these errors were encountered: