Language Scope (VOCF) 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.
Language Scope (VOCF)
API ID: LanguageScopeLanguages: Any
Targets: Files, Functions
The language scope (VOCF) is an indicator of the cost of maintaining/changing functions
A Hersteller Initiative Software (HIS) metric. It's calculated as:
(N1 + N2) / (n1 + n2)
- N1 = total operators (HalsteadTotalOperators)
- N2 = total operands (HalsteadTotalOperands)
- n1 = unique operators (HalsteadDistinctOperators)
- n2 = unique operands (HalsteadDistinctOperands)
See also HalsteadVol