HairyFotr / linter

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

Linter suggesting to use exists instead of foldLeft, but there is no exists on the collection. #42

Closed TomasMikula closed 8 years ago

TomasMikula commented 8 years ago

Hi, I'm getting a warning

Unless there are side-effects, this col.foldLeft can be replaced by col.exists.

which in principle would be correct, except there is no exists on my collection (scalaz.NonEmptyList).

TomasMikula commented 8 years ago

Thanks for a quick fix!

HairyFotr commented 8 years ago

And thank you for reporting.