Permalink
Browse files

Add scalafmt configuration

  • Loading branch information...
travisbrown committed Nov 6, 2018
1 parent d2d200c commit f9769027b689b4b1007678c9b099a19c006c25e3
Showing with 14 additions and 2 deletions.
  1. +9 −0 .scalafmt.conf
  2. +4 −2 build.sbt
  3. +1 −0 project/plugins.sbt
@@ -0,0 +1,9 @@
continuationIndent.defnSite = 2
docstrings = JavaDoc
includeCurlyBraceInSelectChains = false
maxColumn = 120
newlines.alwaysBeforeElseAfterCurlyIf = false
newlines.alwaysBeforeMultilineDef = false
optIn.breakChainOnFirstMethodDot = false
spaces.inImportCurlyBraces = true
@@ -561,14 +561,16 @@ lazy val CompileTime = config("compile-time")
val jvmTestProjects = jvmProjects.filterNot(Set(core, jawn, parser))
val jsTestProjects = jsProjects.filterNot(Set(core, parser, scalajs))
val formatCommands = ";scalafmtCheck;test:scalafmtCheck;scalafmtSbtCheck;scalastyle"
addCommandAlias("buildJVM", jvmProjects.map(";" + _.id + "/compile").mkString)
addCommandAlias(
"validateJVM",
";buildJVM" + jvmTestProjects.map(";" + _.id + "/test").mkString + ";scalastyle"
";buildJVM" + jvmTestProjects.map(";" + _.id + "/test").mkString + formatCommands
)
addCommandAlias("buildJS", jsProjects.map(";" + _.id + "/compile").mkString)
addCommandAlias(
"validateJS",
";buildJS" + jsTestProjects.map(";" + _.id + "/test").mkString + ";scalastyle"
";buildJS" + jsTestProjects.map(";" + _.id + "/test").mkString + formatCommands
)
addCommandAlias("validate", ";validateJVM;validateJS")
@@ -2,6 +2,7 @@ addSbtCoursier
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.24")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.3")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.2")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.6.0-RC4")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.3.0")

0 comments on commit f976902

Please sign in to comment.