Main Content

Check length of folder name at every level of model path

Check ID: mathworks.jmaab.jc_0242

Guideline: jc_0242: Length restriction for folder names

Description

Checks the length of the folder names at every level of the model path to see if all the folders in the path adhere to the minimum and maximum length restriction specified by the input parameters.

The default values for the maximum and minimum lengths are 63 and 1, respectively.

This check requires a Simulink® Check™ license.

Check Parameterization

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

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

  • NA-MAAB — a

  • JMAAB — a

You can configure the following input parameters to customize the check action:

Input ParameterValueDefault Value
Minimum lengthMinimum length for the folder path.1
Maximum lengthMaximum length for the folder path.63
Overall number of characters in path nameTotal length (no of characters) for the folder path.Disabled
Project Directory Project path address.Not configured

For example, consider that a Simulink model is present in the following directory: 'C:\Desktop\Project\TrafficLamp\architecture\model'. The Project Directory field is not configured. When you run the check for this model, each of the folder names in the model path, that is C:, Desktop, Project, TrafficLamp, architecture, and model is individually checked for compliance with the maximum length.

If you specify the Project Directory as 'C:\Desktop\Project', then only the folder names inside the project directory, that is TrafficLamp, architecture, and model are checked for compliance.

Results and Recommended Actions

ConditionRecommended Action
Length of the folder names at every level of the model path does not adhere to the length restriction of 63 characters.Modify the folder names that do not meet the length restriction of 63 characters throughout the path.

Capabilities and Limitations

  • This check does not have additional capabilities or limitations