title: Warning for assignment in an if statement?
body: <p>Is there a way I can get a warning when I'm assigning a variable instead of checking equality? There have been many times where I have accidentally assigned, rather than compared, and it would be great to have a warning!</p>
  
  <p>Is there a way Xcode can warn me without having to change coding styles to:</p>
  
  <pre><code>if (YES == aVariable) {...}
  </code></pre>