Main Content

Check bus and enumeration data type names

Check ID: mathworks.jmaab_v6.jc_0900

Guideline: jc_0900: Usable characters for Data Type definition

Description

Checks if bus object names, bus element names, enumeration class names, and enumeration member names adhere to the following guideline standards.

  • Do not end with an underscore.

  • Do not have consecutive underscores.

  • Do not coincide with reserved MATLAB® words.

Note

Reserved MATLAB words include the following:

This check applies to the following target components defined in the base workspace, the model workspace, or the data dictionary:

  • Bus data type names

  • Enumeration data type names used in the model

This check requires a Simulink® Check™ license.

Check Parameterization

This check contains sub-checks that correspond to sub IDs specified in the JMAAB modeling guidelines. You can use the Model Advisor Configuration Editor to specify which sub IDs (one or multiple) to execute.

For reference, the guideline sub ID(s) that are recommended for use by the JMAAB modeling standards organizations are:

  • JMAAB — a, b, c

Results and Recommended Actions

Guideline Sub IDConditionRecommended Action
jc_0900_a: Underscore at the endThe bus object name, bus element name, enumeration class name, or enumeration member name ends with an underscore. Do not end bus object names, bus element names, enumeration class names, or enumeration member names with underscores.
jc_0900_b: Consecutive underscoresThe bus object name, bus element name, enumeration class name, or enumeration member name has consecutive underscores.Do not use consecutive underscores in bus object names, bus element names, enumeration class names, or enumeration member names.
jc_0900_c: Single reserved MATLAB wordThe bus object name, bus element name, enumeration class name or enumeration member name is a reserved MATLAB word.Do not use reserved MATLAB words as bus object names, bus element names, enumeration class names, or enumeration member names.

Capabilities and Limitations

  • Analyzes content in masked subsystems.

  • Analyzes content of library-linked blocks.

  • Does not support exclusions of blocks or charts for bus object data type names.

  • Does not run on library models.