Skip to content

Commit

Permalink
Remove detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbirillo committed Aug 19, 2024
1 parent b384dfa commit c2055a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/gradle-build-with-detekt.yml

This file was deleted.

26 changes: 0 additions & 26 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "2.0.0" apply true
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("com.github.johnrengelman.shadow") version "7.0.0"
}

Expand All @@ -30,15 +29,10 @@ fun printOutput(output: Any): Task {
}
}

val detektReportMerge by tasks.registering(io.gitlab.arturbosch.detekt.report.ReportMergeTask::class) {
output.set(rootProject.buildDir.resolve("reports/detekt/merge.sarif"))
}

allprojects {
apply {
plugin("java")
plugin("kotlin")
plugin("io.gitlab.arturbosch.detekt")
plugin("com.github.johnrengelman.shadow")
}

Expand All @@ -58,10 +52,6 @@ allprojects {
implementation("org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion")
runtimeOnly("org.junit.platform:junit-platform-console:1.9.0")

val detektVersion = "1.22.0"
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion")
implementation("io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")

implementation("org.jetbrains.academy.test.system:core:2.1.0")
}

Expand Down Expand Up @@ -105,22 +95,6 @@ allprojects {
getByName("test").java.srcDirs("test")
}

apply<io.gitlab.arturbosch.detekt.DetektPlugin>()

configure<io.gitlab.arturbosch.detekt.extensions.DetektExtension> {
config = rootProject.files("detekt.yml")
buildUponDefaultConfig = true
debug = true
}

tasks.withType<io.gitlab.arturbosch.detekt.Detekt> {
finalizedBy(detektReportMerge)
reports.sarif.required.set(true)
detektReportMerge.get().input.from(sarifReportFile)
}

tasks.getByPath("detekt").onlyIf { project.hasProperty("runDetekt") }

tasks.register<Exec>("run") {
// Just do nothing to avoid the edu plugin errors
}
Expand Down

0 comments on commit c2055a6

Please sign in to comment.