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

Indentation of closing curly bracket } #1171

Closed
mfolnovic opened this issue May 10, 2018 · 0 comments
Closed

Indentation of closing curly bracket } #1171

mfolnovic opened this issue May 10, 2018 · 0 comments

Comments

@mfolnovic
Copy link

  • Version: 1.5.1
  • Integration: IntelliJ
  • Configuration:
style = defaultWithAlign

assumeStandardLibraryStripMargin = true
maxColumn = 120

rewrite.rules = [ExpandImportSelectors, PreferCurlyFors]

newlines.neverInResultType = true
newlines.sometimesBeforeColonInMethodReturnType = false

rewrite.redundantBraces.stringInterpolation = true

Steps

Given code like this:

def call(x: Int)(f: Int => Int): Unit = ???

call(1) { x =>
}

When I run scalafmt through IDEA.

Problem

Scalafmt formats code like this:

def call(x: Int)(f: Int => Int): Unit = ???

call(1) { x =>
  }

Expectation

I would like the formatted output to look like this:

def call(x: Int)(f: Int => Int): Unit = ???

call(1) { x =>
}
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

No branches or pull requests

1 participant