CodeQL library for C#
codeql/csharp-all 3.1.1 (changelog, source)
Search

Module Coupling

Import path

import semmle.code.csharp.metrics.Coupling

Imports

csharp

The default C# QL library.

Predicates

accessesLocalFieldOrProperty

whether m accesses field or property f defined in the same type

afferentCoupling

the afferent coupling of a type is the number of types that directly depend on it.

depends

whether t depends on u

efferentCoupling

The efferent coupling of a type is the number of types that it directly depends on.

hasAccessedFieldOrProperty

returns any field or property that is accessed by a local method

hasAccessingMethod

whether t has a method m that accesses some local field,

ignoreLackOfCohesionCK

whether the method m should be excluded from the CK cohesion computation

lackOfCohesionCK

The Chidamber-Kemerer lack of cohesion metric.

lackOfCohesionHS

the Henderson-Sellers lack of cohesion metric

methodUsesFieldOrProperty

Holds if the declaring type of method m is t and m accesses declaration d, which is either a field or a property.

shareFieldOrProperty

whether m1 and m2 access a common field or property

usesType

does t use dep in any way?