Open catena2w opened 6 years ago
The Scalastyle task has a non-zero exit code when it finds an error. You have one error, which looks like a parse error. If you don't want scalastyle to fail on error, set the scalastyleFailOnError setting to false.
[error] /home/pozharko/Code/ergo/ergo/src/main/scala/org/ergoplatform/nodeView/ErgoReadersHolder.scala: expected start of definition, but was Token(VAL,val,596,val)
Scalastyle is failing with above error.
Do you have a for instance a Seq in your code where the last entry is followed by a , ?
Yes, I have a similar issue and the reason was a List() with a trailing comma (last symbol, not followed by an element). However, it is pity that error log print doesn't contain any location info (line number or function name).
Such a terrible error message.
I run
sbt scalastyle
command end everything looks fine, while exit code of this task is 1 that fails our CI server.