Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Default formatting produces too much code for arrays of literals #347
Here a few examples of Scala Native codebase where the quality of formatted code leaves a lot to be desired size-wise:
I agree that the output for Arrays.scala does not help readability and it would be great if scalafmt could automatically detect these situations to produce better formatting output.
That's an interesting idea, but in terms of detecting when bin-packing should be used I think that rule will produce too many false positives and negatives. IMO, for now, Arrays.scala is a case where scalafmt should be disabled. Maybe with #315, instead of disabling scalafmt you will be able to enable bin-packing for that file only.