-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable scalafmt on this project #4037
Comments
This was tried before, but scalafmt wasn't up to the standard of formatting in this codebase. Does scalafmt support binpacking well, these days? |
If someone comes up with a PR for enabling scalafmt even in just one meaningful project (such as |
I think this should be better to hold a llittle longer |
What do you mean by a "non-fix formatting change"? |
A fix formatting change would be a change where scalafmt actually fixes the formatting according to your existing standards. So that would be somewhere where we had already let badly-formatted code into the codebase. I'm happy for scalafmt to correct those if it finds them. A non-fix formatting change would be a change where scalafmt reformatted something that was already correct by our standards. |
OK, got it. That means (minor) changes to our coding standards for the sake of being able to use scalafmt are out of scope entirely? |
I don't want to make any blanket statement, so I wouldn't say "out of scope entirely", but "most likely out of scope". The issue with changes in coding standard, applied by a tool, is that even when minor, they tend to affect a very large portion of lines of code. And that is so many lines of code for which Also the trouble with such tools is that they evolve themselves, and change things. So when you upgrade, your coding style changes and you have another wave of changes everywhere, further deteriorating your |
/cc @MaximeKjaer |
That looks extremely useful! |
I am indeed planning to open a PR based on the argument in that link quite soon 😉 |
As the scala-native will learn more from this project, and the scala-native current has scalafmt 2.4.2 enabled, let this project formatted with scalafmt will help for code sharing.
refs:#2701
refs:scala-native/scala-native#1787
The text was updated successfully, but these errors were encountered: