-
Notifications
You must be signed in to change notification settings - Fork 276
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
Support trailing commas in sbt files #1098
Labels
Comments
I'm happy to try and fix this. How do I setup a failing test for this? I'm happy to look at prior art/PRs. |
Very cool @dwijnand See
As for failing test, I think it should be sufficient to have a ScalafmtRunner.sbt("""
lazy
val x = project(
a,
b,
)
"".parse[Source].get doesn't crash |
dwijnand
added a commit
to dwijnand/scalafmt
that referenced
this issue
Jan 24, 2018
dwijnand
added a commit
to dwijnand/scalafmt
that referenced
this issue
Jan 24, 2018
dwijnand
added a commit
to dwijnand/scalafmt
that referenced
this issue
Jan 24, 2018
dwijnand
added a commit
to dwijnand/scalafmt
that referenced
this issue
Jan 26, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the sbt dialect is based of 211, which does not permit trailing commas. We should base it off the default lenient dialect.
The text was updated successfully, but these errors were encountered: