From 6aeb7469452a6a3a1992207d5f6f3853e2d10d45 Mon Sep 17 00:00:00 2001 From: druppelt <44848632+druppelt@users.noreply.github.com> Date: Wed, 11 Sep 2024 23:36:12 +0200 Subject: [PATCH] add nolint wsl to questionable finding --- internal/calc/deployment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/calc/deployment.go b/internal/calc/deployment.go index f0390fc..5c0a1cf 100644 --- a/internal/calc/deployment.go +++ b/internal/calc/deployment.go @@ -88,7 +88,7 @@ func deployment(deployment appsv1.Deployment) (*ResourceUsage, error) { if podOverheadInt > math.MaxInt32 || podOverheadInt < math.MinInt32 { return nil, fmt.Errorf("deployment: %s maxSurge - maxUnavailable (%d-%d) was out of bounds for int32", deployment.Name, maxSurge, maxUnavailable) } - podOverhead = int32(podOverheadInt) //nolint:gosec + podOverhead = int32(podOverheadInt) //nolint:gosec,wsl resourceOverhead = (float64(podOverhead) / float64(*replicas)) + 1 default: