miss_hit icon indicating copy to clipboard operation
miss_hit copied to clipboard

detect questionable if patterns

Open florianschanda opened this issue 3 years ago • 0 comments

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

florianschanda avatar Nov 19 '20 08:11 florianschanda