フィルターのクリア

List of MATLAB code analyzer message IDs

7 ビュー (過去 30 日間)
Oren
Oren 2014 年 7 月 29 日
回答済み: Narfi 2023 年 3 月 22 日
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!
  1 件のコメント
per isakson
per isakson 2014 年 7 月 29 日
me too

サインインしてコメントする。

採用された回答

Oren
Oren 2014 年 7 月 30 日
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.

その他の回答 (1 件)

Narfi
Narfi 2023 年 3 月 22 日
The entirety of the Code Analyzer checks is now listed in the documentation: https://www.mathworks.com/help/matlab/matlab_env/index-of-code-analyzer-checks.html

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by