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!