AutosarC++17_03-A2.9.1

A header file name shall be identical to a type name declared in it if it declares a type

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 header should be named as a type it declares.

None

False

Options

file_type

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

Type of header 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] = {'Named_Type_Interface'}

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.