List of MATLAB code analyzer message IDs

I'd like to find a list of the message IDs of the built-in code analyzer warning messages used for suppressing those messages either on a single line or in a file (see here ). I know you can search by message ID, but the list in the preferences (see here ) doesn't actually show the ID itself. Any help would be appreciated, thanks!

 Akzeptierte Antwort

Oren
Oren am 30 Jul. 2014

1 Stimme

The answer was found in a parallel SO thread. In short:
msgs = mlint('-allmsg', filename)
where filename can be any arbitrary filename. This works with the checkcode function as well. The resulting struct must be parsed to separate message IDs and messages, but this shouldn't be too difficult. An alternative solution was proposed as well, see the thread for details.

Weitere Antworten (1)

Kategorien

Mehr zu Historical Contests finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 29 Jul. 2014

Beantwortet:

am 22 Mär. 2023

Community Treasure Hunt

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

Start Hunting!

Translated by