How layer architecture rules handle unassigned modules
mainModules that are not explicitly assigned to a layer in your LayeredArchitecture definition are still part of the dependency graph.
If a rule specifies that a layer should only access certain other layers, any dependency on a module that does not belong to a defined layer will cause the rule to fail.
Example Scenario:
- Layer A contains module
M. - Layer B contains module
N. - Module
Ois not assigned to any layer. - If module
MimportsNandO, a rule statingLayer A should only access Layer Bwill raise anAssertionErrorbecauseMis accessingO(an unassigned module).