Closed KenCoder closed 6 years ago
@KenCoder by all means, please submit a PR; if tests pass we'll get it merged.
@godenji what sort of release cadence should i expect for scalariform (and thus picking up this bug fix downstream)? thanks.
Thanks, @KenCoder. I agree with @bhmiller, it's could be nice to have a release with these kinds of bugfix.
+1 for releasing this fix.
occurred in scalastyle version 1.0.0, how was this going on?
We occasionally get a StackOverflowError using ScalaStyle in our builds. The end of the stack is shown below, but I believe this is due to the fact that groupBy is implemented using recursion but not @tailrec.
Since the stack trace is cut off, I don't actually have the sample code that generates the problem. However, I can generate the problem with the following valid (albeit unlikely) unit test. The Scala compiler handles this expression fine.
I'm happy to submit a PR to fix this -- give me a day or two to put it together. I'll add tests for the updated groupBy (since I'm changing it) as well as the above.
The stack trace: