How to fix all instances of one particular mlint (code analyzer) warning?
6 ビュー (過去 30 日間)
古いコメントを表示
I have a very large m-file with a lot of unused function arguments (typically the "h_obj" and "eventdata" arguments automatically generated by Guide). Mlint suggests I replace them with a ~, which I am happy to do. Problem is that there are hundreds of these. How can I fix them all at once? I'm not talking about suppressing the warning--I know how to do that. I want to fix them all without having to click on "fix" for each one.
0 件のコメント
回答 (2 件)
Sean de Wolski
2013 年 3 月 26 日
Please contact support and submit an enhancement request for this!
As for a workaround:
[inform,filepaths]=checkcode('filename')
You might be able to loop over this and use either fprintf or the Editor API to overwrite what's there (it gives you line and column info). It'll be hideous and kldugy though...
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!