HairyFotr / linter

Static Analysis Compiler Plugin for Scala
Apache License 2.0
268 stars 34 forks source link

Direct use of booleans in conditions #13

Open eugene-sy opened 10 years ago

eugene-sy commented 10 years ago

looks like linter do not find conditions like

if (false) "not linted"
if (true) { "not linted" } else { "not linted" }

Here should be a warning, that conditional expression should be omitted.

My stack is: Scala 2.10.2, sbt 0.13.0, Play 2.2.1 Linter is added as jar and scalacOpt to Build.scala file.