CodeQL library for Java/Kotlin
codeql/java-all 4.1.1-dev (changelog, source)
Search

Member predicate MetricPackage::getAfferentCoupling

Afferent Coupling (incoming dependencies).

The afferent coupling of a package is the number of types outside this package that depend on types inside this package.

A high afferent coupling is an indication that the package has many responsibilities; it may thus be a good idea to consider whether these responsibilities can be separated into separate packages.

Afferent coupling of packages is also used to define other package metrics, such as the instability metric.

int getAfferentCoupling()