From 23888d0f32ef522a67c787ac2a89aebd07ba6b47 Mon Sep 17 00:00:00 2001 From: Aniruddh <63553175+Noir01@users.noreply.github.com> Date: Mon, 16 Oct 2023 04:34:05 -0400 Subject: [PATCH] Re-enable detekt Bumped version of `io.gitlab.arturbosch.detekt:detekt-gradle-plugin` to `1.23.0` Signed-off-by: Aniruddh <63553175+Noir01@users.noreply.github.com> --- notifications/build.gradle | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/notifications/build.gradle b/notifications/build.gradle index 7c9b7741..899d50d4 100644 --- a/notifications/build.gradle +++ b/notifications/build.gradle @@ -38,16 +38,14 @@ buildscript { classpath "org.opensearch.gradle:build-tools:${opensearch_version}" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}" classpath "org.jetbrains.kotlin:kotlin-allopen:${kotlin_version}" -// TODO: enable detekt only when snakeyaml vulnerability is fixed -// classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.17.1" + classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.0" classpath "org.jacoco:org.jacoco.agent:0.8.7" } } apply plugin: 'base' apply plugin: 'jacoco' -// TODO: enable detekt only when snakeyaml vulnerability is fixed -//apply plugin: 'io.gitlab.arturbosch.detekt' +apply plugin: 'io.gitlab.arturbosch.detekt' apply from: 'build-tools/merged-coverage.gradle' allprojects { @@ -100,12 +98,11 @@ task ktlintFormat(type: JavaExec, group: "formatting") { jvmArgs "--add-opens=java.base/java.lang=ALL-UNNAMED" } -// TODO: enable detekt only when snakeyaml vulnerability is fixed -//detekt { -// config = files("detekt.yml") -// buildUponDefaultConfig = true -// parallel = true -//} +detekt { + config = files("detekt.yml") + buildUponDefaultConfig = true + parallel = true +} check.dependsOn ktlint