how to automatically identify errors in the output of checkcode

5 views (last 30 days)
Hi,
my project comprises thousands of matlab functions, some of them created automatically... I need a way to check that there is no error in any of them... obviosuly without having to open them one by one!
Unfortunately, the structure created by mlint (now checkcode) does not output explicitely which entries represent errors and which warnings.
The only apparent way to achieve what I want is with the .id field that details the code of each of the entry of the structure, but I do not know where they have been defined... is there any documentation of that?

Answers (2)

Tejaswini Veduruvada
Tejaswini Veduruvada on 23 Mar 2020
You can refer to the below documentation link on how to use “checkcode” function to find possible errors :
  1 Comment
Arabarra
Arabarra on 15 Jun 2020
I checked, and I am still not able to find an answer to my question. The function "checkcode" outputs a wide report, without distinguishing between suggestions, warnings and downright errors... or did I skip something?

Sign in to comment.


Steven Lord
Steven Lord on 13 Aug 2020
Generally speaking, a Code Analyzer red message (error) will prevent the code from executing.
So if you have tests for the large number of functions that make up your project, running those tests should detect Code Analyzer red messages.
  5 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by