ArchUnitTS - v2.2.0
    Preparing search index...

    Class LCOM3

    LCOM3 (Li & Henry, 1993)

    Formula: LCOM3 = (M - Σ(MF)/F) / (M - 1)

    Where:

    • M is the number of methods in the class
    • F is the number of fields in the class
    • MF is the number of methods that access each field
    • Σ(MF) is the sum of MF over all fields

    Returns a value between 0 and 1:

    • 0: perfect cohesion
    • 1: lack of cohesion

    Implements

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = 'LCOM3'
    description: string = 'Lack of Cohesion of Methods (Li & Henry, 1993) - Normalized cohesion measure'

    Methods