Main Content

Check for spaces between function or variable names and left parenthesis symbol

Check ID: mathworks.jmaab_v6.mp_0008

Guideline: mp_0008: Format of parentheses

Description

Checks for spaces between a function or variable name and the left parenthesis symbol.

This check applies to the following target components:

  • Function and variable names within MATLAB Function blocks in Simulink®.

  • Function and variable names within MATLAB® functions in Stateflow® charts.

  • States, transitions, and truth tables in Stateflow MATLAB charts.

  • Function and variable names within external MATLAB files referenced in a model.

This check requires a Simulink Check™ license.

Check Parameterization

This check does not include sub-checks because the JMAAB modeling guideline provides only one sub ID.

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

  • JMAAB — a

Select Check external .m files referenced in the model, to include files with a .m extension in the analysis. The check box is selected by default.

Results and Recommended Actions

ConditionRecommended Action
Spaces are present between function or variable names and the left parenthesis symbol.Remove spaces between function or variable names and the left parenthesis symbol.

Capabilities and Limitations

  • Does not analyze state and transition labels in Stateflow charts.

  • Analyzes content of library-linked blocks. By default, the input parameter Follow links is set to on.

  • Analyzes content in masked subsystems. By default, the input parameter Look under masks is set to all.

  • Runs on library models.

  • Allows exclusion of blocks and charts.