Skip to content

Fine-grained rule exclusions #91

Description

@TheMrMilchmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions