Percent Lack Of Cohesion Modified is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Percent Lack Of Cohesion Modified
API ID: PercentLackOfCohesionModifiedLanguages: Basic, C#, Java, Pascal
Targets: Classes
100% minus the average cohesion for class data members, modified for accessor methods.
Same as PercentLackOfCohesion but does not penalize the use of accessor methods within a class to set/read variables.
Targets By Language:- Basic: Class, Struct
- C#: Class, Struct
- Java: Class, Interface
- Pascal: Class, Interface
- This metric can be disabled from "Project Configuration/Metrics/Object Orientated" with the "Show coupling and cohesion metrics" option.