Showing 2 of 4 total issues

Method ReconciliationContext.validateSpec has 6 return statements (exceeds 4 allowed).
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")
    }
Severity: Major
Found in controllers/syncconfig_utils.go - About 40 mins to fix

    Function transcendStructure has 6 return statements (exceeds 4 allowed).
    Open

    func transcendStructure(replacement string, v interface{}) interface{} {
        if v == nil {
            return nil
        }
        switch v.(type) {
    Severity: Major
    Found in controllers/utils.go - About 40 mins to fix
      Severity
      Category
      Status
      Source
      Language