import ModuleMethodReport from 'typhonjs-escomplex-commons/src/module/report/ModuleMethodReport.js'
ModuleMethodReport
Extends:
Provides the module method report object which stores data pertaining to a single method / function.
Static Method Summary
Static Public Methods | ||
public static |
getFormats(): Object[] Returns the supported transform formats. |
|
public static |
parse(object: object): ModuleMethodReport Deserializes a JSON object representing a ModuleMethodReport. |
Member Summary
Public Members | ||
public get |
type: ReportType: * Returns the enum for the report type. |
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. |
From class AggregateMethodReport | ||
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. |
From class MethodReport | ||
protected static |
_parse(targetObject: ClassMethodReport | ModuleMethodReport, jsonObject: object): ClassMethodReport | ModuleMethodReport Deserializes a JSON object representing a ClassMethodReport. |
|
public |
Stores any analysis errors. |
|
public |
Stores the end line for the method. |
|
public |
Stores the start line for the method. |
|
public |
The name of the method. |
|
public |
The number of parameters for the method or report. |
|
public |
Clears all errors stored in the method report. |
|
public |
Gets all errors stored in the method report. |
|
public |
Returns the name / id associated with this report. |
Static Public Methods
public static parse(object: object): ModuleMethodReport source
Deserializes a JSON object representing a ModuleMethodReport.
Params:
Name | Type | Attribute | Description |
object | object | A JSON object of a ModuleMethodReport that was previously serialized. |