Skip to content

Commit deacb68

Browse files
committed
detekt
1 parent c9f6ac1 commit deacb68

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ internal class RpcStubGenerator(
285285
* - `<return-type>` - the return type of the method
286286
* - `<method-class>` or `<method-object>` - generated class or object for this method
287287
*/
288-
@Suppress("detekt.NestedBlockDepth")
289288
private fun IrClass.generateRpcMethod(method: ServiceDeclaration.Method) {
290289
addFunction {
291290
name = method.function.name
@@ -352,7 +351,6 @@ internal class RpcStubGenerator(
352351
* ))
353352
* ```
354353
*/
355-
@Suppress("detekt.NestedBlockDepth")
356354
private fun IrBlockBodyBuilder.irRpcMethodClientCall(
357355
method: ServiceDeclaration.Method,
358356
functionThisReceiver: IrValueParameter,
@@ -612,7 +610,6 @@ internal class RpcStubGenerator(
612610
* - `<method-name>` - the name of the method
613611
* - <argument-type-k> - type of the kth argument
614612
*/
615-
@Suppress("detekt.NestedBlockDepth")
616613
private fun IrClass.generateInvokator(callable: ServiceDeclaration.Callable) {
617614
check(callable is ServiceDeclaration.Method) {
618615
"Only methods are allowed here"

detekt/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ complexity:
146146
threshold: 3
147147
ignoreArgumentsMatchingNames: false
148148
NestedBlockDepth:
149-
active: true
149+
active: false
150150
threshold: 4
151151
NestedScopeFunctions:
152152
active: false

gradle-plugin/src/main/kotlin/kotlinx/rpc/buf/tasks/GenerateBufGenYaml.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public abstract class GenerateBufGenYaml @Inject internal constructor(
6969
public abstract val bufGenFile: Property<File>
7070

7171
@TaskAction
72-
@Suppress("detekt.NestedBlockDepth")
7372
internal fun generate() {
7473
val file = bufGenFile.get()
7574
// Parent dir may be missing when the configuration cache hits and `ensureRegularFileExists`

grpc/grpc-client/src/nativeMain/kotlin/kotlinx/rpc/grpc/client/internal/NativeClientCall.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ internal class NativeClientCall<Request, Response>(
163163
)
164164
}
165165

166-
else -> null
166+
else -> {
167+
null
168+
}
167169
}
168170
cancelCloseInfo?.let { (status, trailers) -> markClosePending(status, trailers) }
169171
releaseCallCredentialsIfNeeded()

grpc/grpc-core/src/jvmTest/kotlin/kotlinx/rpc/grpc/test/utils.jvm.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ actual suspend fun captureStdErr(block: suspend () -> Unit): String {
2626
}
2727
}
2828

29-
@Suppress("detekt.NestedBlockDepth")
3029
actual suspend fun captureGrpcLogs(
3130
jvmLogLevel: String,
3231
jvmLoggers: List<String>,

0 commit comments

Comments
 (0)