From 15647a000e89a87acd06cff28867fee9c5d5d84f Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Tue, 11 Jul 2023 19:55:36 +0100 Subject: [PATCH] runtime: Ignore cyclomatic complexity Ignore cyclomatic complexity failure. I have fixed this in my PR waiting to forward port remote-hypervisor support into main Signed-off-by: stevenhorsman --- src/runtime/virtcontainers/sandbox.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/virtcontainers/sandbox.go b/src/runtime/virtcontainers/sandbox.go index 9ef0feb903..a0c0780128 100644 --- a/src/runtime/virtcontainers/sandbox.go +++ b/src/runtime/virtcontainers/sandbox.go @@ -524,6 +524,7 @@ func createSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Fac return s, nil } +//nolint:gocyclo func newSandbox(ctx context.Context, sandboxConfig SandboxConfig, factory Factory) (sb *Sandbox, retErr error) { span, ctx := katatrace.Trace(ctx, nil, "newSandbox", sandboxTracingTags, map[string]string{"sandbox_id": sandboxConfig.ID}) defer span.End()