ekristen/gcp-nuke

View on GitHub
resources/firebase-realtime-database.go

Summary

Maintainability
A
1 hr
Test Coverage

Method FirebaseRealtimeDatabase.EmptyDefaultDatabase has 6 return statements (exceeds 4 allowed).
Open

func (r *FirebaseRealtimeDatabase) EmptyDefaultDatabase(ctx context.Context) error {
    if r.settings == nil {
        return nil
    }

Severity: Major
Found in resources/firebase-realtime-database.go - About 40 mins to fix

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

    func (l *FirebaseRealtimeDatabaseLister) List(ctx context.Context, o interface{}) ([]resource.Resource, error) {
        var resources []resource.Resource
    
        opts := o.(*nuke.ListerOpts)
        if err := opts.BeforeList(nuke.Regional, "firebasedatabase.googleapis.com"); err != nil {
    Severity: Major
    Found in resources/firebase-realtime-database.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status