Editor warnings
ID | FCNS-5 |
Title | Prevent or suppress Code Analyzer messages. |
Priority | Strongly recommended |
Severity level | 5 |
Description | Prevent or suppress Code Analyzer messages shown in the MATLAB editor. When the messages cannot be prevented, suppress them on an individual basis and add the reason in the comments. |
Rationale | The messages usually indicate that improvements can be made to the performance or stability of the code. Adding file-wide Code Analyzer suppressions is discouraged because new triggers of the messages may be overlooked. |
Avoid:
%#ok<*ABCDE> Suppress a Code Analyzer warning in the entire file.
Instead use:
%#ok<ABCDE> Suppress the Code Analyzer warning on this line alone.