net.twisterrob.gradle.quality.LintPlugin.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twister-quality Show documentation
Show all versions of twister-quality Show documentation
All quality plugins bundled in one.
The newest version!
package net.twisterrob.gradle.quality
import net.twisterrob.gradle.common.BasePlugin
import net.twisterrob.gradle.common.registerTask
import net.twisterrob.gradle.quality.tasks.GlobalLintGlobalFinalizerTask
import org.gradle.api.Project
@Suppress("detekt.UnnecessaryAbstractClass") // Gradle convention.
internal abstract class LintPlugin : BasePlugin() {
override fun apply(target: Project) {
super.apply(target)
if ("lint" !in project.tasks.names) {
project.registerTask("lint", GlobalLintGlobalFinalizerTask.Creator())
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy