AlexsJones/gravitywell

View on GitHub
platform/v1beta2-deployment.go

Summary

Maintainability
C
7 hrs
Test Coverage

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

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

    client := k.AppsV1beta2().Deployments(namespace)
Severity: Major
Found in platform/v1beta2-deployment.go - About 4 hrs to fix

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

    func execV2BetaDeploymentResource(k kubernetes.Interface, objdep *v1beta2.Deployment, namespace string,
        opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
        name := "Deployment"
    
        client := k.AppsV1beta2().Deployments(namespace)
    Severity: Major
    Found in platform/v1beta2-deployment.go - About 2 hrs to fix

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

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

        There are no issues that match your filters.

        Category
        Status