Installation guide

M-Lint Code Analyzer
M-Lint Code Analyzer
In this section...
“What Is M -Lint?” on page 6-87
WaystoUseM-Lint”onpage6-87
“M-Lint Automatic C ode Analyzer in the Editor/ Debugger ” o n p age 6-88
“Suppressing M-Lint Indicators and Messages” on page 6-98
What Is M-Lint?
TheM-Lintcodeanalyzerchecksyour code for problems and recommends
modifications to maximize performance and maintainability.
Ways to Use M-Lint
YoucanuseM-Lintintwodifferentways,bothofwhichreportthesame
information:
R u n a report for an existing M-file or group of M-files. To do so, from a n
M-file in the Editor/Debugger, select Tools > M-Lint > Show M-Lint
Report. Make any changes to your file based on the M-Lint messages in
the report. After making changes, you must save the file and rerun the
report to see if your changes addressed the issues noted in M-Lint messages.
To run M-Lint for all files in a directory, access M-Lint from the Current
Directory b row ser select View > Directory Reports > M-Lint Code
Check Report. For details, see “M-Lint Code Check Report” on page 7-16.
Continuously check code in the Editor/Debugger while you work. View
M-Lint me ssages and make changes to your file based on the messages.
The code analyzer updates automatically and continuously so you can see
if your changes addressed the issues noted in the M-Lint messages. Fo r
some messages, M-Lint offers automatic code correction. For details about
specific M-Lint messages, see “M-Lint Code Check Report” on page 7-16.
Information about using the continuous checking and correction interface
in the Editor/Debugger is explained here.
6-87