ArchUnitTS - v2.2.0
GitHub
NPM
Examples
Preparing search index...
FunctionCountMetric
Class FunctionCountMetric
Counts the number of functions in a file (excluding methods)
Implements
FileCountMetric
Index
Constructors
constructor
Properties
name
description
Methods
calculate
From
File
Constructors
constructor
new
FunctionCountMetric
()
:
FunctionCountMetric
Returns
FunctionCountMetric
Properties
name
name
:
string
= 'FunctionCount'
description
description
:
string
= 'Counts the number of functions in a file (excluding class methods)'
Methods
calculate
From
File
calculateFromFile
(
sourceFile
:
SourceFile
)
:
number
Parameters
sourceFile
:
SourceFile
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
description
Methods
calculate
From
File
GitHub
NPM
Examples
ArchUnitTS - v2.2.0
Loading...
Counts the number of functions in a file (excluding methods)