Added detekt baseline.

This commit is contained in:
Erik C. Thauvin 2018-07-11 22:55:18 -07:00
parent 6415eb5d16
commit c85749f754
2 changed files with 13 additions and 2 deletions

View file

@ -64,7 +64,10 @@ tasks {
detekt {
profile("main", Action {
input = "src/main/kotlin"
filters = ".*/resources/.*"
filters = ".*/resources/.*,.*/build/.*"
output = "$buildDir/reports/detekt-reports"
outputName = "detekt-report"
baseline = "detekt-baseline.xml"
})
}
@ -94,4 +97,4 @@ pluginBundle {
groupId = project.group.toString()
artifactId = project.name
}
}
}

8
detekt-baseline.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<SmellBaseline>
<Blacklist timestamp="1531335731933"></Blacklist>
<Whitelist timestamp="1531335731933">
<ID>MaxLineLength:SemverPlugin.kt$net.thauvin.erik.gradle.semver.SemverPlugin.kt</ID>
<ID>NestedBlockDepth:SemverPlugin.kt$SemverPlugin$private fun afterEvaluate(project: Project)</ID>
</Whitelist>
</SmellBaseline>