Last active
October 18, 2018 16:33
-
-
Save sleepiecappy/2f6b9ed9c625c8d684c29e3f878edfbc to your computer and use it in GitHub Desktop.
scala project common files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://editorconfig.org/ | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true | |
max_line_length = 80 | |
[*.scala] | |
indent_size = 2 | |
indent_style = space | |
trim_trailing_whitespace = true | |
[*.md] | |
indent_size = 4 | |
indent_style = space | |
trim_trailing_whitespace = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sbt | |
target/ | |
# Java | |
*.class | |
# Logs | |
*.log | |
log/ | |
logs/ | |
# Temporary files | |
*~ | |
*.bak | |
*.old | |
*.tmp | |
nohup.out | |
tmp/ | |
# vim | |
.*.sw[a-z] | |
# IntelliJ | |
.idea/ | |
*.iml | |
*.ipr | |
*.iws | |
# Eclipse | |
.cache | |
.classpath | |
.project | |
.scala_dependencies | |
.settings/ | |
*.sc | |
# Mac OS X | |
._* | |
.DS_Store | |
# Windows | |
Desktop.ini | |
Thumbs.db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
align = some | |
align.openParenDefnSite = true | |
maxColumn = 80 | |
docstrings = "ScalaDoc" | |
newlines.alwaysBeforeTopLevelStatements = true | |
rewrite.rules = [SortModifiers, PreferCurlyFors, SortImports] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "foo-bar" | |
organization in ThisBuild := "foo.bar" | |
scalaVersion in ThisBuild := "2.12.7" | |
scapegoatVersion in ThisBuild := "1.3.8" | |
lazy val scalacOptionsDefault = Seq( | |
"-unchecked", | |
"-deprecation", | |
"-encoding", "utf-8", | |
"-Xlint", | |
"-Ywarn-unused", | |
"-Ywarn-dead-code", | |
"-Ywarn-dead-code", | |
"-Ybackend-parallelism", "8", | |
"-Ybackend-worker-queue", "8" | |
) | |
lazy val scalacOptionsTest = Seq( | |
"-Xcheckinit" | |
) | |
lazy val settings = Seq( | |
scalacOptions ++= scalacOptionsDefault, | |
scalacOptions in (Test, compile) ++= scalacOptionsTest | |
) | |
lazy val global = project.in(file(".")).settings(settings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.1.0-M7") | |
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1") | |
// sksamuel/sbt-scapegoat | |
addSbtPlugin("com.sksamuel.scapegoat" % "sbt-scapegoat" % "1.0.9") | |
// scoverage/sbt-scoverage | |
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1") | |
// orrsella/sbt-stats | |
addSbtPlugin("com.orrsella" % "sbt-stats" % "1.0.7") | |
// jrudolph/sbt-dependency-graph | |
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2") | |
// rtimush /sbt-updates | |
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment