Skip to content
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

scalafmt config more close to scala style guide #88

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

cerveada
Copy link
Collaborator

No description provided.

@@ -3,7 +3,7 @@ runner.dialect = scala212

maxColumn = 120

align.preset = some
align.preset = none
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I quite liked some here, but I'd like to hear your opinion on this one (i.e. why none ? )

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It definitely may look nice in some instances, but it creates unnecessary changes in diff. It also may create lines longer than the limit, where it would not happen without it.

Those are not huge issues, so I am ok using 'some' if you think it's worth it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's go with none then and we'll see if we need to change it back 👍

align.openParenCallSite = true

align.openParenDefnSite = false
align.openParenCallSite = false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, it works, I just tested it & I like it

@github-actions
Copy link

JaCoCo agent module code coverage report - spark:2 - scala 2.12.12

There is no coverage information present for the Files changed

Total Project Coverage 51.55%

@github-actions
Copy link

JaCoCo server module code coverage report - scala 2.12.12

There is no coverage information present for the Files changed

Total Project Coverage 12.45%

@cerveada cerveada marked this pull request as ready for review October 20, 2023 14:29
@cerveada cerveada merged commit 20130a1 into master Oct 20, 2023
4 of 5 checks passed
@cerveada cerveada deleted the scalafmt-refinement branch October 20, 2023 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants