forked from devsearch-epfl/devsearch-concat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
50 lines (39 loc) · 1.89 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import scalariform.formatter.preferences._
name := """srccat"""
shellPrompt := { state => "[\033[36m" + name.value + "\033[0m] $ " }
version := "1.0.0"
scalaVersion := "2.11.6"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.9",
"com.typesafe.akka" %% "akka-testkit" % "2.3.9" % "test",
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"com.github.scopt" %% "scopt" % "3.3.0",
"org.apache.tika" % "tika-core" % "1.7",
"de.sven-jacobs" % "loremipsum" % "1.0",
"org.apache.commons" % "commons-compress" % "1.9",
"org.apache.commons" % "commons-io" % "1.3.2"
)
resolvers += Resolver.sonatypeRepo("public")
target in Compile in doc := (baseDirectory.value / "api")
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, false)
.setPreference(CompactControlReadability, false)
.setPreference(CompactStringConcatenation, false)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(FormatXml, true)
.setPreference(IndentLocalDefs, false)
.setPreference(IndentPackageBlocks, true)
.setPreference(IndentSpaces, 2)
.setPreference(IndentWithTabs, false)
.setPreference(MultilineScaladocCommentsStartOnFirstLine, false)
.setPreference(PreserveDanglingCloseParenthesis, false)
.setPreference(RewriteArrowSymbols, false)
.setPreference(SpaceBeforeColon, false)
.setPreference(SpaceInsideBrackets, false)
.setPreference(SpaceInsideParentheses, false)
.setPreference(SpacesWithinPatternBinders, true)
wartremoverErrors ++= Warts.allBut(Wart.DefaultArguments, Wart.Nothing, Wart.FinalCaseClass, Wart.NoNeedForMonad, Wart.Any, Wart.Throw)
wartremoverWarnings ++= Warts.allBut(Wart.FinalCaseClass, Wart.NoNeedForMonad, Wart.Any, Wart.Throw)