ekristen/gcp-nuke

View on GitHub
resources/iam-workload-identity-pool-provider.go

Summary

Maintainability
A
1 hr
Test Coverage

Method IAMWorkloadIdentityPoolProviderLister.List has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (l *IAMWorkloadIdentityPoolProviderLister) 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: Minor
Found in resources/iam-workload-identity-pool-provider.go - About 1 hr to fix

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

    func (l *IAMWorkloadIdentityPoolProviderLister) 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-workload-identity-pool-provider.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status