Detekt potential-bugs 그리고 Gradle

configurations {
detekt
}

task detekt(type: JavaExec) {
main = "io.gitlab.arturbosch.detekt.cli.Main"
classpath = configurations.detekt
def classpath = "$rootDir/app/src/main/kotlin"
def input = "$rootDir/app/src/main/kotlin"
def config = "$rootDir/detekt/config/detekt.yml"
def report = "xml:$rootDir/detekt/detekt.xml"
def params = ['-cp ', classpath, '-i', input, '-c', config, '-r', report]
args(params)
}

dependencies {
detekt("io.gitlab.arturbosch.detekt:detekt-cli:1.8.0")
}

--

--

fobidlim.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store