When checking
classes()...should().onlyBeAccessedBy()...
it would make sense to ignore violations by self access by default. Often usecases look like
classes().that().resideInAPackage("..bar..").should().onlyBeAccessedByAnyPackage("..foo..", "..bar..")
because otherwise a ton of violations of '..bar..' calling itself would be reported.
It seems to never make sense, to report self-accesses, so this should be excluded by default, making rules easier to specify.
When checking
it would make sense to ignore violations by self access by default. Often usecases look like
because otherwise a ton of violations of '..bar..' calling itself would be reported.
It seems to never make sense, to report self-accesses, so this should be excluded by default, making rules easier to specify.