WartRemover warts for Slick.
SlickWarts version | WartRemover version | Slick version | Scala version | sbt version | Supported |
---|---|---|---|---|---|
1.0.0 | 2.2.1 | 3.2.1 | 2.11.11, 2.12.3 | 0.13.x, 1.0.x | |
0.3.0 | 2.0.2 | 3.2.0-RC1 | 2.11.8, 2.12.1 | 0.13.x | No |
0.2.0 | 2.0.1 | 3.1.1 | 2.11.8 | 0.13.x | No |
-
Setup WartRemover.
-
Add the following to your
plugins.sbt
:addSbtPlugin("org.danielnixon" % "sbt-slickwarts" % "1.0.0")
-
Add the following to your
build.sbt
:wartremoverWarnings ++= Seq( SlickWart.BasicStreamingActionPartial)
slick.profile.BasicStreamingAction
has a head
method which will fail if the stream is empty (i.e. if the SELECT
SQL query returned zero rows). Use headOption
instead.
- ExtraWarts: Extra WartRemover warts.
- PlayWarts: WartRemover warts for Play Framework.
- Scala.js Warts: WartRemover warts for Scala.js.