Skip to content

Commit 848c9d9

Browse files
committed
detekt
1 parent a750aed commit 848c9d9

File tree

11 files changed

+9
-10
lines changed

11 files changed

+9
-10
lines changed

krpc/krpc-client/src/commonMain/kotlin/kotlinx/rpc/krpc/client/KrpcClient.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import kotlinx.serialization.StringFormat
3333
import kotlinx.serialization.modules.SerializersModule
3434
import kotlin.collections.first
3535
import kotlin.concurrent.Volatile
36-
import kotlin.coroutines.CoroutineContext
3736
import kotlin.coroutines.cancellation.CancellationException
3837

3938
@Deprecated("Use KrpcClient instead", ReplaceWith("KrpcClient"), level = DeprecationLevel.ERROR)
@@ -52,7 +51,7 @@ public typealias KRPCClient = KrpcClient
5251
* class MyClient(config: RpcConfig.Client): KrpcClient(config, MyTransport())
5352
* ```
5453
*
55-
* @property config configuration provided for that specific client. Applied to all services that use this client.
54+
* @param config configuration provided for that specific client. Applied to all services that use this client.
5655
* @param transport [KrpcTransport] instance that will be used to send and receive RPC messages.
5756
* IMPORTANT: Must be exclusive to this client, otherwise unexpected behavior may occur.
5857
*/

krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc/internal/StreamSerializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlinx.serialization.descriptors.PrimitiveKind
99
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
1010
import kotlinx.serialization.descriptors.SerialDescriptor
1111

12-
@Suppress("PropertyName")
12+
@Suppress("PropertyName", "detekt.VariableNaming")
1313
@InternalRpcApi
1414
public abstract class StreamSerializer {
1515
protected val STREAM_ID_SERIAL_NAME: String = "streamId"

krpc/krpc-ktor/krpc-ktor-server/src/commonMain/kotlin/kotlinx/rpc/krpc/ktor/server/KrpcRoute.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package kotlinx.rpc.krpc.ktor.server
66

77
import io.ktor.server.websocket.*
8-
import kotlinx.coroutines.CoroutineScope
98
import kotlinx.rpc.RpcServer
109
import kotlinx.rpc.annotations.Rpc
1110
import kotlinx.rpc.krpc.KrpcConfigBuilder

krpc/krpc-server/src/commonMain/kotlin/kotlinx/rpc/krpc/server/KrpcServer.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import kotlinx.rpc.krpc.internal.logging.RpcInternalCommonLogger
1818
import kotlinx.rpc.krpc.server.internal.KrpcServerConnector
1919
import kotlinx.rpc.krpc.server.internal.KrpcServerService
2020
import kotlin.concurrent.Volatile
21-
import kotlin.coroutines.CoroutineContext
2221
import kotlin.reflect.KClass
2322

2423
@Deprecated("Use KrpcServer instead", ReplaceWith("KrpcServer"), level = DeprecationLevel.ERROR)

krpc/krpc-test/src/commonMain/kotlin/kotlinx/rpc/krpc/test/KrpcTestServiceBackend.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import kotlin.test.assertContentEquals
1313
import kotlin.test.assertEquals
1414

1515
@OptIn(ExperimentalCoroutinesApi::class)
16-
class KrpcTestServiceBackend() : KrpcTestService {
16+
class KrpcTestServiceBackend : KrpcTestService {
1717
override fun nonSuspendFlow(): Flow<Int> {
1818
return flow {
1919
repeat(10) {

krpc/krpc-test/src/commonMain/kotlin/kotlinx/rpc/krpc/test/Payloads.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("detekt.MatchingDeclarationName")
2+
13
/*
24
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
35
*/

krpc/krpc-test/src/jsMain/kotlin/kotlinx/rpc/krpc/test/KrpcTestServiceBackend.js.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ actual inline fun runThreadIfPossible(runner: () -> Unit) {
1010
runner()
1111
}
1212

13+
@Suppress("detekt.EmptyFunctionBlock")
1314
internal actual fun TestScope.debugCoroutines() {
1415
}

krpc/krpc-test/src/jvmMain/kotlin/kotlinx/rpc/krpc/test/KrpcTestServiceBackend.jvm.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
package kotlinx.rpc.krpc.test
66

7-
import kotlinx.coroutines.CoroutineScope
8-
import kotlinx.coroutines.Dispatchers
97
import kotlinx.coroutines.ExperimentalCoroutinesApi
108
import kotlinx.coroutines.debug.DebugProbes
119
import kotlinx.coroutines.test.TestScope

krpc/krpc-test/src/nativeMain/kotlin/kotlinx/rpc/krpc/test/KrpcTestServiceBackend.native.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ actual fun runThreadIfPossible(runner: () -> Unit) {
1313
Worker.start(errorReporting = true).executeAfter(0L, runner)
1414
}
1515

16+
@Suppress("detekt.EmptyFunctionBlock")
1617
internal actual fun TestScope.debugCoroutines() {
1718
}

utils/src/commonMain/kotlin/kotlinx/rpc/internal/utils/thread/ThreadLocal.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("detekt.MatchingDeclarationName")
2+
13
/*
24
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
35
*/

utils/src/nativeTest/kotlin/kotlinx/rpc/internal/utils/thread/ThreadLocalNativeTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ import kotlin.test.Test
88
import kotlin.test.assertEquals
99
import kotlin.native.concurrent.ObsoleteWorkersApi
1010
import kotlin.native.concurrent.Worker
11-
import kotlin.native.concurrent.Future
1211
import kotlin.native.concurrent.TransferMode
1312
import kotlin.experimental.ExperimentalNativeApi
14-
import kotlin.native.concurrent.withWorker
1513

1614
class ThreadLocalNativeTest {
1715
@OptIn(ObsoleteWorkersApi::class, ExperimentalNativeApi::class)

0 commit comments

Comments
 (0)