florianschanda / miss_hit

MATLAB Independent, Small & Safe, High Integrity Tools - code formatter and more
GNU General Public License v3.0
160 stars 21 forks source link

special understanding of save semantics #186

Open florianschanda opened 3 years ago

florianschanda commented 3 years ago

https://www.mathworks.com/help/matlab/ref/save.html

MLint has a bug where this pattern raises a false alarm:

x = foo();
save('potato.mat', 'x');

x is in fact not unused. But honestly, this is an insane interface.

But hey. We should to support this, even if it's morally wrong.