From 8d8401981b3619bb40f4f18a880f2bc4079a13a9 Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Wed, 25 Oct 2023 17:18:02 +0300 Subject: [PATCH] increase cognit complexity threshold --- .golangci.yaml | 2 ++ internal/address/aws.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 7602ea2..9147607 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -19,6 +19,8 @@ linters-settings: check-shadowing: true gocyclo: min-complexity: 15 + gocognit: + min-complexity: 35 maligned: suggest-new: true dupl: diff --git a/internal/address/aws.go b/internal/address/aws.go index 68639b7..f7e891b 100644 --- a/internal/address/aws.go +++ b/internal/address/aws.go @@ -165,7 +165,7 @@ func (a *awsAssigner) forceCheckAddressAssigned(ctx context.Context, allocationI return false, nil } -//nolint:gocognit,funlen,gocyclo +//nolint:funlen,gocyclo func (a *awsAssigner) Assign(ctx context.Context, instanceID, _ string, filter []string, orderBy string) error { // get elastic IP attached to the instance filters := make(map[string][]string)