gemWartsdefined above, L71
NonUnitStatement. Is there a way to get it to run before the async-await macro?
@SuppressWarningseverywhere does not seem like a good idea)? Or does anyone know how to make it working? Calling this https://github.com/sangria-graphql/sangria/blob/master/src/main/scala/sangria/schema/Schema.scala#L346 fails on
[wartremover:Any] Inferred type containing Any
toMyClasson a string that does not represent
throw, so let's say I rewrite
toMyClassto return an
Either. But then what is the caller supposed to do? Call
Left? I'd like the program to crash (with a stack trace, if possible). Generally, I'd like to know how you handle situations where you used to
wartremoverExcluded += baseDirectory.value, wartremoverErrors in (Compile, compile) := Seq.empty
To exclude a file or directory from all checks, use wartremoverExcluded in your build.sbt file:
wartremoverExcluded += baseDirectory.value / "src" / "main" / "scala" / "SomeFile.scala" wartremoverExcluded += sourceManaged.value
Left[String, Nothing](you wrote this much yourself), and then calculates a meet at the level of the
ifexpression, without propagating this back to the calls themselves. And in that case the wart does work as intended.
-X:typerto see what exactly happens in your toy example - that's described in wartremover Readme.
typerto see what's going on.