Showing 2 of 4 total issues
Method ReconciliationContext.validateSpec
has 6 return statements (exceeds 4 allowed). Open
Open
func (rc *ReconciliationContext) validateSpec() error {
spec := rc.cfg.Spec
if hasNoNamespaceSelector(rc.cfg.Spec) {
return fmt.Errorf("either .spec.namespaceSelector.matchNames or .spec.namespaceSelector.labelSelector is required")
}
Function transcendStructure
has 6 return statements (exceeds 4 allowed). Open
Open
func transcendStructure(replacement string, v interface{}) interface{} {
if v == nil {
return nil
}
switch v.(type) {