This repository has been archived by the owner. It is now read-only.
WartRemover warts for Slick.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core/src
project
sbt-plugin/src/main/scala/org/danielnixon/slickwarts
.gitignore
.travis.yml
LICENSE
README.md
build.sbt
version.sbt

README.md

SlickWarts

Build Status Maven Central

WartRemover warts for Slick.

Versions

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

Usage

  1. Setup WartRemover.

  2. Add the following to your plugins.sbt:

    addSbtPlugin("org.danielnixon" % "sbt-slickwarts" % "1.0.0")
  3. Add the following to your build.sbt:

    wartremoverWarnings ++= Seq(
      SlickWart.BasicStreamingActionPartial)

Warts

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.

See also