jc_0774: Comments for through transition
Sub ID Recommendations
NA-MAAB — a
JMAAB — a
Sub ID a
When there is no processing within an unconditional transition, a clarifying comment shall be written on the transition label.
The clarifying comment
/*do nothing*/ is provided.
A clarifying comment is not provided on the condition path, so it is difficult to determine whether the lack of action is intentional.
Sub ID a:
Clarifies that the processing is deliberately excluded.
The comment that is added to a transition label is also included in the generated code.
Model Advisor check: Check for comments in unconditional transitions (Simulink Check)
JMAAB guideline jc_0774, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.
Add Descriptive Comments in a Chart (Stateflow)
Transition Between Operating Modes (Stateflow)
Introduced in R2020a