Skip to content

Commit

Permalink
add nolint:gocyclo to Parameters func
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazkh committed Aug 7, 2023
1 parent d6c8abd commit 1e1cca0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure/services/managedclusters/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ func buildAutoScalerProfile(autoScalerProfile *AutoScalerProfile) *containerserv
}

// Parameters returns the parameters for the managed clusters.

Check failure on line 263 in azure/services/managedclusters/spec.go

View workflow job for this annotation

GitHub Actions / coverage

whyNoLint: include an explanation for nolint directive (gocritic)
// TODO: refactor this function to reduce cyclomatic complexity
//
//nolint:gocyclo
func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error) {
ctx, log, done := tele.StartSpanWithLogger(ctx, "managedclusters.Service.Parameters")
defer done()
Expand Down

0 comments on commit 1e1cca0

Please sign in to comment.