io.gitlab.arturbosch.detekt.extensions.DetektReport.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of detekt-gradle-plugin Show documentation
Show all versions of detekt-gradle-plugin Show documentation
Static code analysis for Kotlin
package io.gitlab.arturbosch.detekt.extensions
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.OutputFile
import java.io.File
import javax.inject.Inject
open class DetektReport @Inject constructor(val type: DetektReportType, objects: ObjectFactory) {
@Deprecated("Use required.set(value)")
var enabled: Boolean?
get() = required.get()
set(value) = required.set(value)
@Deprecated("Use outputLocation.set(value)")
var destination: File?
get() = outputLocation.asFile.orNull
set(value) {
outputLocation.set(value)
}
@Input
val required: Property = objects.property(Boolean::class.java)
@OutputFile
val outputLocation: RegularFileProperty = objects.fileProperty()
override fun toString(): String {
return "DetektReport(type='$type', required=$required, outputLocation=$outputLocation)"
}
companion object {
const val DEFAULT_FILENAME = "detekt"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy