Skip to content

[java] LooseCoupling rule: Extend to cover user defined implementations and interfaces #2822

@linusjf

Description

@linusjf

Is your feature request related to a problem? Please describe.
The rule LooseCoupling flags implemented classes when interfaces suffice. It prescribes coding against an interface as against implementor classes.
It currently checks for Collections API classes. Please extend the rule so that developers can specify user-defined classes as well.

Describe the solution you'd like
The rule must be made configurable so that users can define interfaces and implementor classes from their application's source base.

Describe alternatives you've considered
None that I know of.

Additional context

None.

Other issues for the same rule:

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions