Julia editor that flags anomalous code?

Consider the following code, which contains two anomalies:

function t1(n)
    x = n
    x = 5
    for i = 1 : x
        for i = 1 : x
            println("i = ", i)
        end
    end
end

The anomalies are: the first assignment to x is useless, and the subscript i is nested in a for-loop that is already over i. The Matlab code editor issues warnings about both of these anomalies in the analogous Matlab function, and these warnings have saved me much time over the years that would otherwise have been spent on debugging. Is there a Julia code editor that identifies suspicious code like this?