AutosarC++17_10-A3.1.3

Implementation files, that are defined locally in the project, should have a file name extension of “.cpp”

Required inputs: IR

Rationale

This is consistent with developer expectations to provide C++ implementation files with the standard file name extension.

Note that compilers support various file name extensions for C++ implementation files.

See Also
  • JSF December 2005 [7]: 4.9.2 AV Rule 54 Implementation files will always have a file name extension of ".cpp".

Possible Messages

Key

Text

Severity

Disabled

illegal_file_extension

Use only certain extensions for file names.

None

False

Options

allowed_extensions

allowed_extensions : set[str] = {'.cpp'}

Which file extensions are allowed.
 

file_type

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

The files to check the extensions of.