Giter Site home page Giter Site logo

slickwarts's Introduction

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

slickwarts's People

Contributors

danielnixon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

slickwarts's Issues

Can't compile with SBT 1.x

Tried with SBT versions: 1.0.0, 1.1.1

When using this plugin, SBT successfully resolves the plugin at load time, but at compile time, it fails to resolve the slickwarts library:

[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     ::          UNRESOLVED DEPENDENCIES         ::
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     :: org.danielnixon#slickwarts_2.12;1.0.0-SNAPSHOT: not found
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]     Note: Unresolved dependencies path:
[warn]         org.danielnixon:slickwarts_2.12:1.0.0-SNAPSHOT (/Users/tenchi/.../build.sbt#L133)
[warn]           +- shared:shared_2.12:0.1.0-SNAPSHOT
[error] sbt.librarymanagement.ResolveException: unresolved dependency: org.danielnixon#slickwarts_2.12;1.0.0-SNAPSHOT: not found

Minimal setup to reproduce:

git clone https://github.com/sbt/helloworld-one.git
cd helloworld-one
cat > project/plugin.sbt << EOF
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.2.1")
addSbtPlugin("org.danielnixon" % "sbt-slickwarts" % "1.0.0")
EOF
sbt compile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.