Class Metrics is one of Understand's built-in reports — run it on your own code from the GUI, or headlessly with und report.
Class Metrics
Languages: Basic, C#, C++, Java, Pascal, Python, WebTargets: Architectures, Files, Project
Display metrics for classes
Create a table with each class metric as a column and each class in the file, architecture, or database as a row. Metric availability varies by project languages
Available Metrics
- Base Classes [aka IFANIN] (CountClassBase)
- Derived Classes [aka NOC] (CountClassDerived)
- Class Methods (CountDeclClassMethod)
- Class Variables [aka NV] (CountDeclClassVariable)
- Instance Methods [aka NIM] (CountDeclInstanceMethod)
- Instance Variables [aka NIV] (CountDeclInstanceVariable)
- Internal Instance Variables (CountDeclInstanceVariableInternal)
- Private Instance Variables (CountDeclInstanceVariablePrivate)
- Protected Instance Variables (CountDeclInstanceVariableProtected)
- Protected Internal Instance Variables (CountDeclInstanceVariableProtectedInternal)
- Public Instance Variables (CountDeclInstanceVariablePublic)
- Methods [aka WMC] (CountDeclMethod)
- All Methods [aka RFC, NM] (CountDeclMethodAll)
- Const Methods (CountDeclMethodConst)
- Default Methods (CountDeclMethodDefault)
- Friend Methods [aka NF, NFM] (CountDeclMethodFriend)
- Internal Methods (CountDeclMethodInternal)
- Private Methods [aka NPRM] (CountDeclMethodPrivate)
- Protected Methods (CountDeclMethodProtected)
- Protected Internal Methods (CountDeclMethodProtectedInternal)
- Public Methods [aka PM, NPM] (CountDeclMethodPublic)
- Strict Private Methods (CountDeclMethodStrictPrivate)
- Strict Published Methods (CountDeclMethodStrictPublished)
- Properties (CountDeclProperty)
- Auto-Implemented Properties (CountDeclPropertyAuto)
- Coupled Classes [aka CBO] (CountClassCoupled)
- Max Inheritance Tree [aka DIT] (MaxInheritanceTree)
- Percent Lack of Cohesion (PercentLackOfCohesion)
- Percent Lack of Cohesion Modified (PercentLackOfCohesionModified)
- Coupled Classes Modified (CountClassCoupledModified)