-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa.sbt
49 lines (35 loc) · 1.68 KB
/
qa.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
import sbt._
import Keys._
import play.Project._
import de.johoop.findbugs4sbt.FindBugs._
import de.johoop.jacoco4sbt._
import de.johoop.jacoco4sbt.JacocoPlugin._
findbugsSettings
jacoco.settings
// Add 'pmd' command to Play console.
// Configuration file: project/pmd-ruleset.xml
// Output file: target/pmd/pmd-report.txt
PmdSettings.pmdTask
// Add 'checkstyle' command to Play console.
// Configuration file: project/checkstyle-config.xml
// Output file: target/checkstyle/checkstyle-report.txt
CheckstyleSettings.checkstyleTask
// Add 'api-doc' command (JavaDoc + ScalaDoc) to Play console.
// Output directory: target/doc/api
ApiDocSettings.apiDocTask
// Add the 'findbugs' command to Play console.
// Configuration file: project/findbugs-excludefilter.xml
// Output file: target/findbugs/findbugs.xml
// You want the report name file extension to match the report type.
findbugsReportType := Some(de.johoop.findbugs4sbt.ReportType.Xml)
findbugsReportName := Some("findbugs.xml")
// Not sure how to express this:
//findbugsTargetPath <<= target (_ / "findbugs")
// Not sure how to express this:
//findbugsExcludeFilters <<= baseDirectory { base => Some(xml.XML.loadFile(BuildPaths.projectStandard(base) / "findbugs-excludefilter.xml")) }
// Add the 'jacoco:cover' command to Play console.
// Output file: target/jacoco/html/index.html
parallelExecution in jacoco.Config := false
jacoco.outputDirectory in jacoco.Config := file("target/jacoco")
jacoco.reportFormats in jacoco.Config := Seq(XMLReport("utf-8"), HTMLReport("utf-8"))
jacoco.excludes in jacoco.Config := Seq("views*", "*Routes*", "controllers*routes*", "controllers*Reverse*", "controllers*javascript*", "controller*ref*")