miss_hit
miss_hit copied to clipboard
detect questionable if patterns
Some questionable logic constructions:
if x
y = true
else
y = false
end
Or
x = y == true
Or
x = false
if y
x = true
end
Or (for some boolean x)
x ~= 0