import AggregateMethodReport from 'typhonjs-escomplex-commons/src/module/report/AggregateMethodReport.js'AggregateMethodReport
Extends:
Direct Subclass:
Indirect Subclass:
Provides the aggregate report object which stores base data pertaining to a single method / function or cumulative aggregate data for a ModuleReport / ClassReport.
Constructor Summary
| Public Constructor | ||
| public |
constructor(lineStart: number, lineEnd: number) Initializes aggregate report. |
|
Member Summary
| Public Members | ||
| public |
The cyclomatic complexity of the method. |
|
| public |
The cyclomatic density of the method. |
|
| public |
Stores the Halstead data instance. |
|
| public |
The number of parameters for the method or aggregate report. |
|
| public |
The source lines of code for the method. |
|
Inherited Summary
| From class AbstractReport | ||
| public get |
Returns the associated |
|
| public |
Stores any associated |
|
| public |
incrementDistinctHalsteadItems(metric: string, identifier: string) Increments the associated aggregate report HalsteadData for distinct identifiers. |
|
| public |
incrementHalsteadItems(metric: string, identifier: string) Increments the associated aggregate report Halstead items including distinct and total counts. |
|
| public |
incrementHalsteadMetric(metric: string, type: string) Increments the associated aggregate report Halstead metric type. |
|
| public |
incrementParams(count: number) Increments the associated aggregate report parameter count. |
|
| public |
isHalsteadMetricDistinct(metric: string, identifier: string): boolean Returns true if a given HalsteadData metric / identifier is not found in the associated aggregate report. |
|
| public |
Formats this report given the type. |
|