ekristen/gcp-nuke

View on GitHub
resources/iam-service-account-key.go

Summary

Maintainability
A
35 mins
Test Coverage

Method IAMServiceAccountKeyLister.List has 5 return statements (exceeds 4 allowed).
Open

func (l *IAMServiceAccountKeyLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) {
    var resources []resource.Resource

    opts := o.(*nuke.ListerOpts)
    if err := opts.BeforeList(nuke.Global, "iam.googleapis.com"); err != nil {
Severity: Major
Found in resources/iam-service-account-key.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status