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

Use Scalafmt for Code Formatting and Consistency #1407

Open
athersharif opened this issue Jan 25, 2019 · 2 comments
Open

Use Scalafmt for Code Formatting and Consistency #1407

athersharif opened this issue Jan 25, 2019 · 2 comments

Comments

@athersharif
Copy link
Collaborator

https://scalameta.org/scalafmt/

some background relevant conversation for context is here.

@misaugstad
Copy link
Member

Pasting over the relevant bits from that thread:

@athersharif

thoughts on scalafmt?

@misaugstad

Looks pretty good! Want to create an issue for it? I imagine we would have a PR that updates style across the project. We would then add to the dev environment setup instructions! 😁

@athersharif

yup, 💯 . creating an issue for it, shortly. it will touch a gazillion files so probably should work on it when nothing critical is in a pr state otherwise it'd be a rebasing nightmare. 🤣

@misaugstad
Copy link
Member

misaugstad commented Mar 10, 2021

So in PR #2430 @uditpatwal added linters for JavaScript, CSS, and HTML. We did not include the scalafmt formatter in that PR because we didn't know of a way to enforce only a small subset of rules. We didn't find an easy to way just ignore all rules and then include just the ones we wanted. So there were a ton of rules that we didn't want, and it would have been a lot of work to figure out which ones we needed to ignore.

Would still love to have a Scala linter! I would at least want to add just a few rules or warnings for things where I can't think of obvious exceptions to the rule that we have. Just need to either find a new linter that lets us do that, or figure out how to do that using scalafmt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants