Navigation Menu

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

Introduce Scalafmt via Pants #877

Closed
wants to merge 5 commits into from

Conversation

wisechengyi
Copy link
Collaborator

@wisechengyi wisechengyi commented Jun 22, 2018

This introduces scalafmt as an automated formatter and linter via Pants.

To format:

./pants fmt ::

To lint (which would run in CI):

./pants lint ::

Example changes are visible at: https://github.com/coursier/coursier/compare/master...wisechengyi:eg?expand=1

A separate PR would be made once this gets in to format all targets covered by Pants and to enforce it via CI.

@wisechengyi wisechengyi changed the title Introduce Scalafmt vis Pants Introduce Scalafmt via Pants Jun 24, 2018
@alexarchambault
Copy link
Member

@wisechengyi I'm not sure I want to add this right now, as the sources of coursier aren't formatted by scalafmt for now… But it sure should be merged as soon as it's added.

@wisechengyi
Copy link
Collaborator Author

This PR has no effect until pants lint is used in Travis. But yeah, whenever you feel comfortable.

@wisechengyi wisechengyi closed this Nov 3, 2018
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.

None yet

2 participants