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

Enforce scalafmt 2.5.2 in travis build #782

Closed

Conversation

bluesheeptoken
Copy link
Contributor

For code consistency I was wondering if we could enforce the use of scalafmt in travis build.

The first commit is an idea of the code after formatting with scalafmt

@bluesheeptoken bluesheeptoken marked this pull request as ready for review May 29, 2020 11:48
@bluesheeptoken bluesheeptoken changed the title Apply scalafmt 2.5.2 configuration Enforce scalafmt 2.5.2 in travis build May 29, 2020
Copy link
Member

@dlwh dlwh left a comment

Choose a reason for hiding this comment

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

i'll be honest: I really dislike code scala code formatters... though I definitely like some of these changes. If we could make it a little less opinionated about certain things I'd probably be willing to go for it. Let me look at it more closely in the next week or so.

@bluesheeptoken
Copy link
Contributor Author

i'll be honest: I really dislike code scala code formatters...

May I ask why ? I have to admit I use it without thinking about the "should I?"

though I definitely like some of these changes. If we could make it a little less opinionated about certain things I'd probably be willing to go for it. Let me look at it more closely in the next week or so

Sure, thanks ! We can probably play with the rules and remove the checks in Travis build !

@dlwh
Copy link
Member

dlwh commented May 29, 2020 via email

@bluesheeptoken
Copy link
Contributor Author

I have to admit there are still some issues sometimes. But I have not enough experience with it to have a strong opinion with scalafmt.

Usually I use code formatters on large code base to avoid checking the linting on PR review (for instance missing spaces).

Enforcing format also avoid "quick fixes" on code that does not concern the feature. For example, when i save the file, it adds automatically missing spaces on code I don't work on. Hence, it adds some noise for the review.

I will remove the enforcement on Travis' side. I kinda agree about the line-length rule, it is making the code less clear at several places in this PR.

Thanks for sharing your opinion !

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