diff --git a/src/backend/ci/core/common/common-es/src/main/kotlin/com/tencent/devops/common/es/ESConfigUtils.kt b/src/backend/ci/core/common/common-es/src/main/kotlin/com/tencent/devops/common/es/ESConfigUtils.kt index 2f441cd7393..0b073536cf9 100644 --- a/src/backend/ci/core/common/common-es/src/main/kotlin/com/tencent/devops/common/es/ESConfigUtils.kt +++ b/src/backend/ci/core/common/common-es/src/main/kotlin/com/tencent/devops/common/es/ESConfigUtils.kt @@ -40,7 +40,7 @@ import org.elasticsearch.client.RestClient import org.elasticsearch.client.RestClientBuilder import org.slf4j.LoggerFactory -@Suppress("LongParameterList", "MagicNumber") +@Suppress("LongParameterList", "MagicNumber", "ComplexMethod") object ESConfigUtils { fun getClientBuilder( diff --git a/src/backend/ci/core/openapi/biz-openapi/src/main/kotlin/com/tencent/devops/openapi/es/impl/ESServiceImpl.kt b/src/backend/ci/core/openapi/biz-openapi/src/main/kotlin/com/tencent/devops/openapi/es/impl/ESServiceImpl.kt index 5f587cac6b2..74719d65fde 100644 --- a/src/backend/ci/core/openapi/biz-openapi/src/main/kotlin/com/tencent/devops/openapi/es/impl/ESServiceImpl.kt +++ b/src/backend/ci/core/openapi/biz-openapi/src/main/kotlin/com/tencent/devops/openapi/es/impl/ESServiceImpl.kt @@ -67,7 +67,7 @@ import org.elasticsearch.search.aggregations.pipeline.SimpleValue import org.elasticsearch.search.builder.SearchSourceBuilder import org.slf4j.LoggerFactory -@Suppress("NestedBlockDepth") +@Suppress("NestedBlockDepth", "ComplexMethod") class ESServiceImpl constructor( private val logClient: LogClient, private val redisOperation: RedisOperation,