title: Avoid extra parenthesis when writing for comprehensions
body: <p>I have this code</p>
  
  <pre><code>def doCheck() : Boolean = (for {
      c &lt;- foo.getOption()
      d &lt;- bar.getOption()
      if c == d
  } yield true) getOrElse false
  </code></pre>
  
  <p>Every time I write such code, the scala-style (IntelliJ 2017.1) check complains "unnecessary parenthesis" but if I remove the <code>(</code> and <code>)</code> around the for comprehension then the compiler would throw an error. How can I make both the scala style check and the compiler both happy.</p>
  
  <p>Somehow I feel that the <code>(</code> around the for is just code noise.</p>