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

Check: Low Coupling

asburyk edited this page Feb 15, 2024 · 4 revisions

Name

"lowCoupling"

Configuration

Name Type Description
maxInDegree int Specifies the maximum In-Degree for a class. -1 for no max. Defaults to -1
maxOutDegree int Specifies the maximum Out-Degree for a class. -1 for no max. Defaults to -1
ignorePackage String Specifies a package to ignore in a check (for example, ignore the presentation layer). Defaults to null
cycles boolean Specifies whether to check for cycles. Defaults to true
ignoreSelfCycles boolean Specifies whether Classes that reference themselves will be reported (cycles like A --> A). Defaults to true

Description

Searches a graph of all of the classes. Degree is defined by how many different classes have an edge with a class. A class has an edge with another class if it extends, implements, has-a, or depends on the other class. A warning is raised for any class exceeding either max. Also searches for any cycles in the graph. Raises a warning for each cycle found.

Clone this wiki locally