Skip to content

Commit

Permalink
increase cognit complexity threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed Oct 25, 2023
1 parent 561e6ad commit 8d84019
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ linters-settings:
check-shadowing: true
gocyclo:
min-complexity: 15
gocognit:
min-complexity: 35
maligned:
suggest-new: true
dupl:
Expand Down
2 changes: 1 addition & 1 deletion internal/address/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d84019

Please sign in to comment.