GitHub
NPM
Examples
Preparing search index...
The search index is not available
ArchUnitTS - v2.1.51
ArchUnitTS
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
Function
Count
Metric
(
)
:
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
calculate
From
File
(
sourceFile
)
:
number
Parameters
sourceFile
:
SourceFile
Returns
number
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
name
description
calculate
From
File
ArchUnitTS - v2.1.51
Loading...
Counts the number of functions in a file (excluding methods)