Code Monkey home page Code Monkey logo

Comments (7)

matthewfarwell avatar matthewfarwell commented on September 23, 2024

I agree. I'll be rewriting the sbt plugin soon, and this sort of thing should be easily done after that.

from scalastyle-sbt-plugin.

java-developer avatar java-developer commented on September 23, 2024

+1 for this functionality.

I need to be able to fail the build if there are warnings when I run "sbt checkstyle".

from scalastyle-sbt-plugin.

manub avatar manub commented on September 23, 2024

This would be a very good feature. +1

from scalastyle-sbt-plugin.

pathikrit avatar pathikrit commented on September 23, 2024

sbt scalastyle should return error code 1 (exit 1) if check fails. This way I could fail builds on style issues.

from scalastyle-sbt-plugin.

matthewfarwell avatar matthewfarwell commented on September 23, 2024

I've just added a method to combine the scalastyle and test to the README: see:

http://www.scalastyle.org/sbt.html

from scalastyle-sbt-plugin.

cainj avatar cainj commented on September 23, 2024

I'm not able to get this working with Build.scala.

lazy val placeableTestTask = taskKeyUnit

val scalastyleTask = PluginKeys.scalastyle

val placeableSettings = placeableTestTask := {
scalastyleTask.scopedKey.value
}

test in Test <<= (test in Test).dependsOn(placeableTestTask)

SBT 13.0

from scalastyle-sbt-plugin.

matthewfarwell avatar matthewfarwell commented on September 23, 2024

This is now possible using the method defined in

http://www.scalastyle.org/sbt.html

If it is not, please reopen this issue.

from scalastyle-sbt-plugin.

Related Issues (20)

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.