cloudfoundry/cf-k8s-controllers

View on GitHub
controllers/controllers/shared/index.go

Summary

Maintainability
A
55 mins
Test Coverage
C
79%

Function SetupIndexWithManager has 13 return statements (exceeds 8 allowed).
Open

func SetupIndexWithManager(mgr manager.Manager) error {
    err := mgr.GetFieldIndexer().IndexField(context.Background(), new(korifiv1alpha1.CFRoute), IndexRouteDestinationAppName, routeDestinationAppNameIndexFn)
    if err != nil {
        return err
    }
Severity: Major
Found in controllers/controllers/shared/index.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status