arttor/helmify

View on GitHub
pkg/processor/daemonset/daemonset.go

Summary

Maintainability
A
2 hrs
Test Coverage
F
57%

Method daemonset.Process has 71 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (d daemonset) Process(appMeta helmify.AppMetadata, obj *unstructured.Unstructured) (bool, helmify.Template, error) {
    if obj.GroupVersionKind() != daemonsetGVC {
        return false, nil, nil
    }
    dae := appsv1.DaemonSet{}
Severity: Minor
Found in pkg/processor/daemonset/daemonset.go - About 1 hr to fix

    Method daemonset.Process has 11 return statements (exceeds 4 allowed).
    Open

    func (d daemonset) Process(appMeta helmify.AppMetadata, obj *unstructured.Unstructured) (bool, helmify.Template, error) {
        if obj.GroupVersionKind() != daemonsetGVC {
            return false, nil, nil
        }
        dae := appsv1.DaemonSet{}
    Severity: Major
    Found in pkg/processor/daemonset/daemonset.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status