<commit_before>name := """varic"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.11.1"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  ws,
  "org.webjars" % "bootstrap" % "3.3.1",
  "org.webjars" % "angularjs" % "1.3.15",
  "org.webjars" % "angular-ui-bootstrap" % "0.12.0",
  "com.github.detro.ghostdriver" % "phantomjsdriver" % "1.0.4" % "test"
)

lazy val coffeelint = taskKey[Unit]("CoffeeLint")

coffeelint := {
  val sourceDir = (sourceDirectory in Assets).value
  val result = Seq("coffeelint", sourceDir.getAbsolutePath).!
  if (result != 0) {
    throw new Exception("coffeelint detected errors")
  }
}

addCommandAlias("full-test", ";clean;coverage;test;scalastyle;test:scalastyle;coffeelint")

ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := "<empty>;.*Reverse.*;views.*"

ScoverageSbtPlugin.ScoverageKeys.coverageMinimum := 70

ScoverageSbtPlugin.ScoverageKeys.coverageFailOnMinimum := true

ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false

scalastyleConfig := file("linters/scalastyle/scalastyle-config.xml")

scalastyleFailOnError := true<commit_msg>Add comments for custom sections in build file<commit_after>name := """varic"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayScala)

scalaVersion := "2.11.1"

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  ws,
  "org.webjars" % "bootstrap" % "3.3.1",
  "org.webjars" % "angularjs" % "1.3.15",
  "org.webjars" % "angular-ui-bootstrap" % "0.12.0",
  "com.github.detro.ghostdriver" % "phantomjsdriver" % "1.0.4" % "test"
)

// coffeelint

lazy val coffeelint = taskKey[Unit]("CoffeeLint")

coffeelint := {
  val sourceDir = (sourceDirectory in Assets).value
  val result = Seq("coffeelint", sourceDir.getAbsolutePath).!
  if (result != 0) {
    throw new Exception("coffeelint detected errors")
  }
}

// Alias for running tests, coverage and style check
addCommandAlias("full-test", ";clean;coverage;test;scalastyle;test:scalastyle;coffeelint")

// scoverage settings

ScoverageSbtPlugin.ScoverageKeys.coverageExcludedPackages := "<empty>;.*Reverse.*;views.*"

ScoverageSbtPlugin.ScoverageKeys.coverageMinimum := 70

ScoverageSbtPlugin.ScoverageKeys.coverageFailOnMinimum := true

ScoverageSbtPlugin.ScoverageKeys.coverageHighlighting := false

// scalastyle settings

scalastyleConfig := file("linters/scalastyle/scalastyle-config.xml")

scalastyleFailOnError := true
{'fraction_non_alphanumeric': 0.15338164251207728, 'fraction_numerical': 0.018518518518518517, 'mean_word_length': 5.339285714285714, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1611312', 'n_tokens_mistral': 959, 'n_tokens_neox': 917, 'n_words': 153}