MATLAB checkcode show all warnings...

When running the code analyzer, is there a way to enable showing all warnings per file? The reports shows only the first 500 messages.

3 件のコメント

Ed Yu
Ed Yu 2015 年 9 月 15 日
In order to do that, I had to use mlintrpt by copying mlintrpt.m into another directory and modify the line below to a more reasonable limit (50000):
displayLimit = 500;
Image Analyst
Image Analyst 2015 年 9 月 16 日
Sorry, but I like Steven's answer better. It's better to fix your first 500 errors and then run the check again rather than to modify a built-in function. I think all other experienced users would agree with us. You don't need to see a "reasonable" 50,000 errors at once - you can only fix at most a few at a time anyway.
Ed Yu
Ed Yu 2015 年 9 月 16 日
編集済み: Ed Yu 2015 年 9 月 16 日
Absolutely not... For all do respect, should I fix (or add a directive to ignore) calls to MATLAB basic commands such as 'figure', 'close', 'strcmp', and many other common MATLAB commands?
I actually made a copy of mlintrpt.m and then modify it to ignore anything that can be resolved by calling 'which' to generate a much cleaner report. That's the way to go.

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

回答 (1 件)

Steven Lord
Steven Lord 2015 年 9 月 14 日

2 投票

I suggest addressing those first 500 messages (fix them or suppress them) then rerun the report to identify the next lines with Code Analyzer warnings.

カテゴリ

質問済み:

2015 年 9 月 14 日

編集済み:

2015 年 9 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by