Skip to content
Snippets Groups Projects
Commit 52d22869 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Har lagt til pmd og spotbugs i build.gradle. Ikke alt som rapporteres er

interessant, men det er verdt å diskutere.
parent 965f96b4
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,11 @@ plugins {
// test coverage
id 'jacoco'
// code quality with PMD
id 'pmd'
// code quality with SpotBugs
id "com.github.spotbugs" version "2.0.0"
}
repositories {
......@@ -13,7 +18,6 @@ repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenLocal()
flatDir {
dirs 'libs'
}
......@@ -36,6 +40,27 @@ test {
}
}
pmd {
// See https://docs.gradle.org/current/dsl/org.gradle.api.plugins.quality.PmdExtension.html
ignoreFailures = true
// Consider turning these off
// <rule ref="category/java/errorprone.xml/BeanMembersShouldSerialize" />
// <rule ref="category/java/errorprone.xml/DataflowAnomalyAnalysis" />
}
spotbugs {
// see http://gradle.monochromeroad.com/docs/dsl/org.gradle.api.plugins.quality.FindBugsExtension.html
ignoreFailures = true
}
// To generate an HTML report instead of XML
tasks.withType(com.github.spotbugs.SpotBugsTask) {
reports {
xml.enabled = false
html.enabled = true
}
}
dependencies {
compile "com.fasterxml.jackson.core:jackson-databind:2.9.8"
// compile 'fischer.clemens:FxMapControl:1.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment