AlexsJones/gravitywell

View on GitHub
platform/v1beta1-daemonset.go

Summary

Maintainability
B
6 hrs
Test Coverage

Function execV1DaemonSetResource has 108 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func execV1DaemonSetResource(k kubernetes.Interface, objdep *v1beta1.DaemonSet, namespace string,
    opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
    name := "DaemonSet"

    client := k.ExtensionsV1beta1().DaemonSets(namespace)
Severity: Major
Found in platform/v1beta1-daemonset.go - About 3 hrs to fix

    Function execV1DaemonSetResource has 23 return statements (exceeds 4 allowed).
    Open

    func execV1DaemonSetResource(k kubernetes.Interface, objdep *v1beta1.DaemonSet, namespace string,
        opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
        name := "DaemonSet"
    
        client := k.ExtensionsV1beta1().DaemonSets(namespace)
    Severity: Major
    Found in platform/v1beta1-daemonset.go - About 2 hrs to fix

      Function execV1DaemonSetResource has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func execV1DaemonSetResource(k kubernetes.Interface, objdep *v1beta1.DaemonSet, namespace string,
          opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
      Severity: Minor
      Found in platform/v1beta1-daemonset.go - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status