Giter Site home page Giter Site logo

Breaking the build about scalastyle HOT 6 CLOSED

scalastyle avatar scalastyle commented on May 21, 2024
Breaking the build

from scalastyle.

Comments (6)

matthewfarwell avatar matthewfarwell commented on May 21, 2024

Which build tool are you using? I'm going to do maven plugin, which would naturally break the build if there were an error raised (but not a warning). The maven plugin doesn't yet exist btw.

If you're simply going to call it from a script (ant or whatever), then it's easy to change org.scalastyle.Main to add a System.exit() with the correct value. But this class is very simple at the minute, we'd need to check the arguments as well before it became usable.

from scalastyle.

fatlazycat avatar fatlazycat commented on May 21, 2024

Currently maven, though may well be using SBT at some point. Happy to change to some script etc in the mean time.

from scalastyle.

matthewfarwell avatar matthewfarwell commented on May 21, 2024

I've just committed a change to Main.java et al. to exit with value 1 if there are any errors (including command line options), and 0 if there are none. This should make scalastyle usable through a script and/or maven, using exec:java. There are also several command line options.

Please tell me if you have any problems with it.

from scalastyle.

fatlazycat avatar fatlazycat commented on May 21, 2024

Thanks, have now breaking our build. Main pain was maven config on a multi module build.

Will now look at the issues we have with the code :)

from scalastyle.

matthewfarwell avatar matthewfarwell commented on May 21, 2024

Can I close this issue then?

from scalastyle.

fatlazycat avatar fatlazycat commented on May 21, 2024

Yeah sorry.

from scalastyle.

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.