Skip to content

Commit 2884ae0

Browse files
committed
Detekt and ktlint are confused with Kotlin context...
1 parent 8d50789 commit 2884ae0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libraries/troubleshoot/test/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ dependencies {
1919
implementation(libs.test.core)
2020
implementation(libs.test.turbine)
2121
}
22+
23+
ktlint {
24+
filter {
25+
exclude { element ->
26+
val path = element.file.path
27+
// Exclude this file, that ktlint cannot parse.
28+
path.contains("libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt")
29+
}
30+
}
31+
}

libraries/troubleshoot/test/src/main/kotlin/io/element/android/libraries/troubleshoot/test/Utils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Please see LICENSE files in the repository root for full details.
66
*/
77

8+
@file:Suppress("UnusedImports")
9+
810
package io.element.android.libraries.troubleshoot.test
911

1012
import app.cash.turbine.TurbineTestContext

0 commit comments

Comments
 (0)