cloudfoundry/cf-k8s-controllers

View on GitHub
controllers/webhooks/validation/duplicate_validator.go

Summary

Maintainability
A
1 hr
Test Coverage

Method DuplicateValidator.ValidateUpdate has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (v DuplicateValidator) ValidateUpdate(ctx context.Context, logger logr.Logger, namespace string, oldObj, obj webhooks.UniqueClientObject) error {
    if oldObj.UniqueName() == obj.UniqueName() {
        return nil
    }

Severity: Minor
Found in controllers/webhooks/validation/duplicate_validator.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status