Metric-ImportCSV

ImportCSV

Imports metrics from a comma-separated value file and imports them into an RFG. The first line of the file contains the name of the RFG attributes to add. Make sure that there is an attribute called Linkage.Name that identifies the nodes uniquely. If an attribute does not yet exists in the RFG, the script assumes that the attribute type is float.

Please note that in addition to this rule, an instance of Metric-ImportRFGMetricAttribute is needed to import the metric into the Dashboard and to have issues created for violations of the metric.

Possible Messages

This rule has no predefined messages.

Options

The following places define options that affect this rule: Analysis-GlobalOptions

delimiter

delimiter : str = ';'

Delimiter used between fields. If empty string, a system dependent default (',' or ';') is used.
 

filename

filename : bauhaus.analysis.config.LayerRelativePath | None = None

Name of the CSV file. Must not be None.
 

node_type

node_type : str = 'Module'

Node type of newly created nodes.
 

view_name

view_name : str = 'Code Facts'

View where to add the nodes.