Skip to content

Commit

Permalink
Merge pull request #120 from alejandrohdezma/enable-simple-expression…
Browse files Browse the repository at this point in the history
…s-in-literal-argument-lists

Enable `binPack.literalsIncludeSimpleExpr` by default
  • Loading branch information
alejandrohdezma authored Apr 8, 2021
2 parents 39ace00 + ceaa846 commit 82ffbd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ align {

binPack {
literalArgumentLists = true
literalsIncludeSimpleExpr = true
literalsExclude = [ "Term.Name" ]
}

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ lazy val `sbt-scalafmt-defaults` = module
.settings(addSbtPlugin(scalafmt))
.settings(scriptedLaunchOpts += s"-Dplugin.version=${version.value}")
.settings(scriptedLaunchOpts += s"-Dscalafmt.conf.content=${IO.read(file(".scalafmt.conf"))}")
.settings(Compile / unmanagedResources += baseDirectory.in(LocalRootProject).value / ".scalafmt.conf")
.settings(Compile / unmanagedResources += (LocalRootProject / baseDirectory).value / ".scalafmt.conf")

0 comments on commit 82ffbd2

Please sign in to comment.