Codacy integration (#87)

This commit is contained in:
Ryan Brink
2021-10-04 18:17:25 -05:00
committed by GitHub
parent 5a7e052ac4
commit 91a6164663
7 changed files with 70 additions and 2 deletions

View File

@ -30,6 +30,7 @@ allprojects {
apply(plugin = "io.gitlab.arturbosch.detekt")
apply(plugin = "com.adarshr.test-logger")
apply(plugin = "idea")
apply(plugin = "jacoco")
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
@ -37,6 +38,21 @@ allprojects {
}
}
tasks.withType<Test>() {
finalizedBy(tasks.withType(JacocoReport::class))
}
tasks.withType<JacocoReport>() {
reports {
html.required.set(true)
xml.required.set(true)
}
}
configure<JacocoPluginExtension> {
toolVersion = "0.8.7"
}
configure<TestLoggerExtension> {
theme = ThemeType.MOCHA
setLogLevel("lifecycle")