ekristen/aws-nuke

View on GitHub
resources/kms-key.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method KMSKeyLister.List has 70 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (l *KMSKeyLister) List(_ context.Context, o interface{}) ([]resource.Resource, error) {
    opts := o.(*nuke.ListerOpts)
    resources := make([]resource.Resource, 0)

    var svc kmsiface.KMSAPI
Severity: Minor
Found in resources/kms-key.go - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                            if awsError.Code() == "AccessDeniedException" {
                                inaccessibleKeys = true
                                logrus.WithError(err).Debug("unable to list tags")
                                continue
                            } else {
    Severity: Major
    Found in resources/kms-key.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status