Predefined specifications for names of projects/folders/objects

When the rule Only identifiers conform to predefined specifications must be used for projects/folders/objects is activated for validating the application, the names of →projects, →folders and other →objects (incl. file extensions) within the project explorer are checked whether they are conform to predefined specifications.

This rule can be used e.g. to check the →MISRA-conformity of the corresponding names of the application.

By default, the following specifications are predefined for logi.CAD 3 (they are based on the MISRA rule MISRA AC GMG 004):

  • names for projects, folders and objectss:

    • length: 1 – 31 characters

    • allowed: letters A – Z or a – b (without umlauts), numbers 0 – 9, the characters _ (underline) and . (dot)

    • not allowed: blanks, leading numbers, leading or trailing underlines, no sequences of more than one underline
      Moreover, a name corresponding to an IEC-system-block is not allowed. Examples: RS, AND
      The name of a default folder of logi.CAD 3 is also not allowed. The default folders are required by logi.CAD 3 for a correct mode of operation within the project. Usually, the default folders are hidden within the project explorer. The names of the default folders are: src-gen, target, test-gen, oem-data, PiLTestExecutionProject

  • file extensions for objects:

    • length: more than 5 characters are allowed – This is a deviation from the MISRA rule!

    • allowed: as with names for projects, folders and objects

    • not allowed: blanks, leading numbers, underlines

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg An identifier of an object or a project is already checked when the object/project is created in the project explorer. Subsequently, the name entered in the dialog must be conform to the predefined specifications.
Identifiers of folders are only checked, when the command to start the validation is selected.

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/warning.svg Depending on the system configuration it is possible that there are different predefined specifications for your applications. If in doubt, contact your system integrator and ask for more details on the relevant system configuration.

Examples:

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg conform names

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg not conform names

MyProject

My Project

Project1

1Project

Project_1

Project__1

ForTesting

FürTesten

Folder_2_2

_Folder_2_2

The name Counter.iecfbd of the object is not conform to MISRA (because of the 6 characters for the file extension) but logi.CAD 3 will not report that there is a rule violation.