From 5a03206595c1622ad7174e10845a1188bb7e2c2d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 30 Oct 2025 14:31:00 +0100 Subject: [PATCH] Remove exclusion, ktlint is now able to handle Kotlin context parameter. --- libraries/troubleshoot/test/build.gradle.kts | 10 ---------- .../android/libraries/troubleshoot/test/Utils.kt | 2 -- 2 files changed, 12 deletions(-) diff --git a/libraries/troubleshoot/test/build.gradle.kts b/libraries/troubleshoot/test/build.gradle.kts index 830eb5d6b0..8321ea5b4f 100644 --- a/libraries/troubleshoot/test/build.gradle.kts +++ b/libraries/troubleshoot/test/build.gradle.kts @@ -19,13 +19,3 @@ dependencies { implementation(libs.test.core) implementation(libs.test.turbine) } - -ktlint { - filter { - exclude { element -> - val path = element.file.path - // Exclude this file, that ktlint cannot parse. - path.contains("libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt") - } - } -} diff --git a/libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt b/libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt index 77034da584..2a8ce30f47 100644 --- a/libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt +++ b/libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt @@ -5,8 +5,6 @@ * Please see LICENSE files in the repository root for full details. */ -@file:Suppress("UnusedImports") - package io.element.android.libraries.troubleshoot.test import app.cash.turbine.TurbineTestContext