Merge pull request #1923 from yaroot/scalafmt

Add scalafmt
This commit is contained in:
Naoki Takezoe
2018-04-01 11:55:21 +09:00
committed by GitHub
3 changed files with 15 additions and 0 deletions

11
.scalafmt.conf Normal file
View File

@@ -0,0 +1,11 @@
project.git = true
maxColumn = 120
docstrings = JavaDoc
align = true
align.openParenCallSite = false
align.openParenDefnSite = false
continuationIndent.callSite = 2
continuationIndent.defnSite = 2
danglingParentheses = true

View File

@@ -17,6 +17,8 @@ name := Name
version := GitBucketVersion
scalaVersion := "2.12.5"
scalafmtOnCompile := true
// dependency settings
resolvers ++= Seq(
Classpaths.typesafeReleases,
@@ -25,6 +27,7 @@ resolvers ++= Seq(
"sonatype-snapshot" at "https://oss.sonatype.org/content/repositories/snapshots/",
"amateras-snapshot" at "http://amateras.sourceforge.jp/mvn-snapshot/"
)
libraryDependencies ++= Seq(
"org.eclipse.jgit" % "org.eclipse.jgit.http.server" % "4.11.0.201803080745-r",
"org.eclipse.jgit" % "org.eclipse.jgit.archive" % "4.11.0.201803080745-r",

View File

@@ -1,5 +1,6 @@
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.4.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-twirl" % "1.3.13")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")
//addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "4.0.0")