Comments (6)
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.
Currently maven, though may well be using SBT at some point. Happy to change to some script etc in the mean time.
from scalastyle.
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.
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.
Can I close this issue then?
from scalastyle.
Yeah sorry.
from scalastyle.
Related Issues (20)
- ImportControl check HOT 2
- How does one force format files using sbt plugin?
- The string literal ]" appears multiple times in this file warning HOT 1
- The double blank lines doesn't work.
- "lexicographic" parameter sometimes ignored in ImportsChecker
- IndentationChecker refuses comments at the start of line
- Wrong error message when for ,) inside anonymous function or in flatMap/map/flapTap etc
- IndentationChecker on multiple commented line
- TODO/FIXME not work HOT 1
- Generate scalastyle.html report from scalastyle.xml HOT 1
- Is this project EOL? HOT 1
- Sort imports issue by scalastyle consistent in IntelliJ IDEA
- Show up "Expected token ARROW but got Token(RBRACKET,],3116,])" when using EitherT.leftT[IO,()]
- Scalastyle Documentation Coverage Analysis
- Some issues in the default config provided on the website
- Execution error when you have xml parts in s" block
- Expected identifier error `STRING_LITERAL` when defining Refined Regex
- org.scalastyle.scalariform.ScalaDocChecker checker rule
- String index out of range: -1 version 0.8 or 1.0 environment docker linux
- Unhelpful error on trailing comma on last element in `Seq` literal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalastyle.