ArchUnitTS - v2.2.0
GitHub
NPM
Examples
Preparing search index...
LinesOfCodeMetric
Class LinesOfCodeMetric
Counts the total lines of code in a file
Implements
FileCountMetric
Index
Constructors
constructor
Properties
name
description
Methods
calculate
From
File
Constructors
constructor
new
LinesOfCodeMetric
()
:
LinesOfCodeMetric
Returns
LinesOfCodeMetric
Properties
name
name
:
string
= 'LinesOfCode'
description
description
:
string
= 'Counts the total lines of code in a file (excluding empty lines and comments)'
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 total lines of code in a file