title: lint error Useless assignment to variable
body: <p>I have this if condition in model</p>
  
  <pre><code>  if column_value = 'Y'
      Abc.new('test', latest.column_1, latest.column_2, latest.column_3)
    else
      Abc.new('test2', latest.column_1, latest.column_2, latest.column_3)
    end
  end
  </code></pre>
  
  <p>column_value is not a variable. I am using column value thats present in active record.
  why i am getting the lint error <code>Useless assignment to variable - column</code></p>
  
  <p>EDIT:
  tried column_value == 'Y' but then get error <code>undefined variable or method column_value</code>
  also tried self.column_value got lint error <code>redundant self detected</code></p>