Open MikeOnTea opened 1 year ago
Given these example dependencies:
Module.One.Class1 -> Module.Two.Class1 Module.Two.Class2 -> Module.One.Class1
a slice rule of Slices().Matching("Module.(*)").Should().BeFreeOfCycles() finds the dependency cycle. However, if you move Class2 into a sub-namespace, the cycle no longer gets detected:
Slices().Matching("Module.(*)").Should().BeFreeOfCycles()
Module.One.Class1 -> Module.Two.Class1 Module.Two.InnerNamespace.Class2 -> Module.One.Class1
Given these example dependencies:
a slice rule of
Slices().Matching("Module.(*)").Should().BeFreeOfCycles()
finds the dependency cycle. However, if you move Class2 into a sub-namespace, the cycle no longer gets detected: