resources/kms-key.go
Method KMSKeyLister.List
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
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
Avoid deeply nested control flow statements. Open
Open
if awsError.Code() == "AccessDeniedException" {
inaccessibleKeys = true
logrus.WithError(err).Debug("unable to list tags")
continue
} else {