Detekt and ktlint are confused with Kotlin context...
This commit is contained in:
parent
194340b19c
commit
7c40d2b73c
2 changed files with 12 additions and 0 deletions
|
|
@ -19,3 +19,13 @@ dependencies {
|
||||||
implementation(libs.test.core)
|
implementation(libs.test.core)
|
||||||
implementation(libs.test.turbine)
|
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")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@
|
||||||
* Please see LICENSE files in the repository root for full details.
|
* Please see LICENSE files in the repository root for full details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@file:Suppress("UnusedImports")
|
||||||
|
|
||||||
package io.element.android.libraries.troubleshoot.test
|
package io.element.android.libraries.troubleshoot.test
|
||||||
|
|
||||||
import app.cash.turbine.TurbineTestContext
|
import app.cash.turbine.TurbineTestContext
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue