Overly coupled class
Reports classes that reference too many other classes.
Classes with too high coupling can be very fragile, and should probably be split into smaller classes.
Configure the inspection:
Use the Class coupling limit field to specify the maximum allowed coupling for a class.
Use the Include couplings to java system classes option to specify whether references to system classes (those in the
java.
orjavax.
packages) should be counted.Use the Include couplings to library classes option to specify whether references to any library classes should be counted.
Inspection options
Option | Type | Default |
---|---|---|
Class coupling limit | Number | 15 |
Include couplings to java system classes | Checkbox | false |
Include couplings to library classes | Checkbox | false |
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |