io.gitlab.arturbosch.detekt.extensions.CustomDetektReport.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.tasks.Internal
import org.gradle.api.tasks.OutputFile
import java.io.File
import javax.inject.Inject
open class CustomDetektReport @Inject constructor(objects: ObjectFactory) {
@Internal
var reportId: String? = null
@Deprecated("Use outputLocation.set(value)")
@get:Internal
var destination: File?
get() = outputLocation.asFile.orNull
set(value) {
outputLocation.set(value)
}
@OutputFile
val outputLocation: RegularFileProperty = objects.fileProperty()
override fun toString(): String {
return "CustomDetektReport(reportId=$reportId, outputLocation=$outputLocation)"
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy