From 54c84c7d937e9f0422f0014a36d072fcf8bbef6e Mon Sep 17 00:00:00 2001 From: Javier Manrique Pellejero Date: Wed, 25 Sep 2024 17:29:58 +0200 Subject: [PATCH] ANDROID-15242 fix detekt (#390) * ANDROID-15242 detekt fixed * ANDROID-15242 LongMethod issue suppressed * ANDROID-15242 possible fix * Revert "ANDROID-15242 possible fix" This reverts commit 7cf1381cdab5a7a8ee2ba8420975fc758857467d. * ANDROID-15242 fix to exclude build * ANDROID-15242 recovering suppress --- build-tools/detekt.gradle | 5 +++++ .../java/com/telefonica/mistica/button/ProgressButton.kt | 1 + 2 files changed, 6 insertions(+) diff --git a/build-tools/detekt.gradle b/build-tools/detekt.gradle index 443314fec..a5dd872d9 100644 --- a/build-tools/detekt.gradle +++ b/build-tools/detekt.gradle @@ -3,4 +3,9 @@ detekt { buildUponDefaultConfig = true config.from(files("$projectDir/build-tools/detekt/detekt.yml")) basePath = files("$projectDir") + source.from(fileTree(rootProject.projectDir) { + exclude("**/.gradle/") + exclude("**/build/") + exclude("**/tmp/**") + }) } diff --git a/library/src/main/java/com/telefonica/mistica/button/ProgressButton.kt b/library/src/main/java/com/telefonica/mistica/button/ProgressButton.kt index e334ac6ce..e4405f708 100644 --- a/library/src/main/java/com/telefonica/mistica/button/ProgressButton.kt +++ b/library/src/main/java/com/telefonica/mistica/button/ProgressButton.kt @@ -66,6 +66,7 @@ class ProgressButton : FrameLayout { } @SuppressLint("ClickableViewAccessibility") + @Suppress("LongMethod") private fun init(attrs: AttributeSet? = null, defStyleAttr: Int = 0) { if (attrs != null) { val theme = context.theme