All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gradle-plugins.code-analysis.0.1.0-rc.12.source-code.com.javiersc.gradle.plugins.code.analysis.gradle.kts Maven / Gradle / Ivy

import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.extensions.DetektExtension

plugins {
    id("io.gitlab.arturbosch.detekt")
}

configure {
    parallel = true
    isIgnoreFailures = true
    buildUponDefaultConfig = true
    basePath = rootProject.projectDir.path
}

tasks.withType().configureEach {
    setSource(files(projectDir))
    include("**/*.kt")
    include("**/*.kts")
    exclude("**/resources/**")
    exclude("**/build/**")

    reports {
        html { enabled = true }
        sarif { enabled = true }
        txt { enabled = false }
        xml { enabled = false }
    }
}

val ideaDir = file("$rootDir/.idea").also(File::mkdirs)

file("${ideaDir.path}/detekt.xml").apply {
    if (!exists()) {
        createNewFile()
        writeText(detektXmlContent)
    }
}

val detektXmlContent: String
    get() =
        """
            
            
              
                true
                true
                true
              
            
        """.trimIndent()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy