AlexsJones/gravitywell

View on GitHub
platform/v1-statefulset.go

Summary

Maintainability
C
7 hrs
Test Coverage

Function execV1StatefulSetResource has 128 lines of code (exceeds 50 allowed). Consider refactoring.
Open

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

    client := k.AppsV1().StatefulSets(namespace)
Severity: Major
Found in platform/v1-statefulset.go - About 4 hrs to fix

    Function execV1StatefulSetResource has 25 return statements (exceeds 4 allowed).
    Open

    func execV1StatefulSetResource(k kubernetes.Interface, objdep *appsv1.StatefulSet, namespace string,
        opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
        name := "StatefulSet"
    
        client := k.AppsV1().StatefulSets(namespace)
    Severity: Major
    Found in platform/v1-statefulset.go - About 2 hrs to fix

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

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

        There are no issues that match your filters.

        Category
        Status