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

Excess new line in the chained package clauses #1593

Closed
iRevive opened this issue Dec 7, 2019 · 0 comments · Fixed by #1594
Closed

Excess new line in the chained package clauses #1593

iRevive opened this issue Dec 7, 2019 · 0 comments · Fixed by #1594

Comments

@iRevive
Copy link
Contributor

iRevive commented Dec 7, 2019

  • Version: "org.scalameta" % "sbt-scalafmt" % "2.2.1"
  • Integration: IntelliJ
  • Configuration:
version = 2.3.1
newlines.alwaysBeforeTopLevelStatements = true

Steps

Given code like this:

package a.b.c
package d

import e.f
package object g {}

When I run scalafmt like this:

sbt scalafmt

Problem

Scalafmt formats code like this:

package a.b.c

package d

import e.f
package object g {}

Expectation

I would like the formatted output to look like this:

package a.b.c
package d

import e.f
package object g {}

Note

Everything works fine until the parent package is not multilevel.

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 a pull request may close this issue.

1 participant