In some cases, it is desirable to disable specific rules for certain classes. When using ArchUnit regularly, this would typically be achieved by filtering the JavaClasses before checking the rule.
It would be nice if the plugin would expose a DSL to replicate such exceptions on (at least) a per-rule basis. Ideally, this would tie into a general mechanism for per-sourceset configuration (See also #90).
While covering the entire expressiveness of ArchUnit in a DSL is probably not feasible, it would be nice a nice start if we could ignore targets by name or when they have certain annotations.
In some cases, it is desirable to disable specific rules for certain classes. When using ArchUnit regularly, this would typically be achieved by filtering the
JavaClassesbefore checking the rule.It would be nice if the plugin would expose a DSL to replicate such exceptions on (at least) a per-rule basis. Ideally, this would tie into a general mechanism for per-sourceset configuration (See also #90).
While covering the entire expressiveness of ArchUnit in a DSL is probably not feasible, it would be nice a nice start if we could ignore targets by name or when they have certain annotations.