softwaremill / scala-clippy

Good advice for Scala compiler errors
Apache License 2.0
312 stars 20 forks source link

Add ability to match on capture groups in advices. #18

Closed ShaneDelmore closed 7 years ago

ShaneDelmore commented 8 years ago

Here is a motivating example for this. Say I want to look for the type mismatches where I have found an Option[A] and found A so I can tell users they may have used map when they should have used flatMap. I do not want to match found Option[A] if I have found [B] though.