AutosarC++19_03-A2.8.2

An implementation file name should reflect the logical entity for which it provides definitions

Required inputs: IR

The name of a source file should be related to a type name provided by this file.

Possible Messages

Key

Text

Severity

Disabled

source_file_name_not_type

The file should be named as a type it declares.

None

False

Options

file_type

file_type : bauhaus.rules.axivion.lexical.comments.FileToCheckSet = {'Primary_File'}

Type of source_file file to examine.
 

junk_characters

junk_characters : str = ' _-.:'

Characters that should not be considered in the filename to type similarity.
 

named_node_types

named_node_types : set[bauhaus.ir.PIR_Class_Name] = {'Definition', 'No_Def_Declaration'}

Physical IR node types to inspect for logical names to compare against the file name
 

similarity_threshold

similarity_threshold : float = 0.9

Ratio of how similar the names need to be.