Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Check: Adapter Pattern

Madeline Kahn edited this page Mar 11, 2024 · 2 revisions
  • Name: "adapterPattern"
  • Default: Enabled

Configuration

Name Type Description
adapterClassNameRegex String Regular expression for adapter class names, to exempt from this check (default is "Adapter$").

Description

For each adapter class (based on its name, in accordance with adapterClassNameRegex), generates a warning if the class does not implement an interface. Also generates a warning if an adapter class type is ever used as a field type, method return type, or method parameter type anywhere in the project.

Clone this wiki locally