LCOM4 too high for class

objectscriptQuality release 
1.0.0
Id 
OS0015
Rule type 
Code Smell
Severity 

Major

Major
SQALE characteristic 
  • Reusability
    • Modularity
Tags 
design
Remediation function 
Constant/issue
Remediation cost 
16h

This check computes the Lack of Cohesion of Methods as described here.

An LCOM4 which is greater than 1 means that this class has two or more distinct functional paths (a given set of instance variables is only used by a given set of methods of this class). If appropriate/possible, try and split this class into several ones with isolated functionalities.