-
Notifications
You must be signed in to change notification settings - Fork 277
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
Do not add a new line in multilevel chained package clause #1594
Do not add a new line in multilevel chained package clause #1594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 thank you for reporting and fixing this issue! Could you take a look @kitbellew?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple of questions below.
p.s. you included a few unrelated cosmetic changes as well, looks like.
package f | ||
|
||
import g.h.i.j | ||
package k {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should there be an empty line here as well? perhaps it was this way before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, scalafmt does not change formatting between import and class and keeps an empty line (if it present) as is.
pkg.stats.headOption | ||
|
||
// package a.b.c | ||
case select: Term.Select => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this pattern match package a.b.c {
as well? there might an Apply
there somewhere.
Thank you! |
This PR fixes #1593