julia-vscode / StaticLint.jl

Static Code Analysis for Julia
Other
145 stars 28 forks source link

Warn on `for i in size(x, 3)` #367

Open ericphanson opened 1 year ago

ericphanson commented 1 year ago

It would be nice to warn if "obvious" numbers-are-iterable mistakes are happening. E.g. this one should be for i in 1:size(x,3) or for i in axes(x, 3).