Coupling_Rules

pling_Rules">

Coupling Rules

  • CouplingBetweenObjects: This rule counts unique attributes, local variables and return types within an object. A number higher than specified threshold can indicate a high degree of coupling.
  • ExcessiveImports: A high number of imports can indicate a high degree of coupling within an object. Rule counts the number of unique imports and reports a violation if the count is above the user defined threshold.
  • LooseCoupling: Avoid using implementation types (i.e., HashSet); use the interface (i.e, Set) instead