summaryrefslogtreecommitdiff
path: root/build-logic/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-04-27 14:42:11 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-04-27 14:45:06 +0530
commitf0ac9f97e2551aef14cd023de95da3281f12a5ee (patch)
treeff2114e480079cdaa7806ccdd5263137524ae698 /build-logic/src/main
parent2b2c0860f8fa84f51dd440c8dd899ef54ba15588 (diff)
feat(build): remove Detekt
This no longer adds value for me and instead results in unnecessary bikeshedding.
Diffstat (limited to 'build-logic/src/main')
-rw-r--r--build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt19
1 files changed, 0 insertions, 19 deletions
diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
index 6d43a494..54907b1c 100644
--- a/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
+++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/KotlinCommonPlugin.kt
@@ -5,17 +5,13 @@
package app.passwordstore.gradle
-import io.gitlab.arturbosch.detekt.DetektPlugin
-import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.testing.Test
import org.gradle.api.tasks.testing.logging.TestLogEvent
-import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.withType
-import org.gradle.language.base.plugins.LifecycleBasePlugin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -25,22 +21,7 @@ class KotlinCommonPlugin : Plugin<Project> {
override fun apply(project: Project) {
val isAppModule = project.pluginManager.hasPlugin("com.android.application")
- project.pluginManager.apply(DetektPlugin::class.java)
- project.extensions.configure<DetektExtension> {
- parallel = true
- ignoredBuildTypes = listOf("release")
- ignoredFlavors = listOf("free")
- basePath = project.layout.projectDirectory.toString()
- baseline =
- project.rootProject.layout.projectDirectory
- .dir("detekt-baselines")
- .file("${project.name}.xml")
- .asFile
- }
project.tasks.run {
- project.pluginManager.withPlugin("base") {
- named(LifecycleBasePlugin.CHECK_TASK_NAME).configure { this.dependsOn(named("detekt")) }
- }
withType<JavaCompile>().configureEach {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()