AlexsJones/gravitywell

View on GitHub

Showing 92 of 92 total issues

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

func DeployFromObject(k kubernetes.Interface, obj runtime.Object,
    namespace string, opts configuration.Options,
    commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
Severity: Minor
Found in platform/kubernetes.go - About 45 mins 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

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

      func executeActionList(actionList kinds.ActionList, deployment kinds.Application, opt configuration.Options,
          clusterName string, commandFlag configuration.CommandFlag, remoteVCSRepoName string) {
      Severity: Minor
      Found in scheduler/actions/application.go - About 45 mins to fix

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

        func selectAndExecute(execute kinds.Execute, deployment kinds.Application, opt configuration.Options,
            clusterName string, commandFlag configuration.CommandFlag, repoName string) {
        Severity: Minor
        Found in scheduler/actions/application.go - About 45 mins to fix

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

          func GenerateDeploymentPlan(k kubernetes.Interface,
              files []string, namespace string, opts configuration.Options,
              commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) error {
          Severity: Minor
          Found in platform/kubernetes.go - About 45 mins to fix

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

            func execV1BetaDeploymentResource(k kubernetes.Interface, objdep *v1betav1.Deployment, namespace string,
                opts configuration.Options, commandFlag configuration.CommandFlag, shouldAwaitDeployment bool) (state.State, error) {
            Severity: Minor
            Found in platform/v1betav1-deployment.go - About 45 mins 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

                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

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

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

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

                    func ExecuteKubernetesAction(action kinds.Execute, clusterName string,
                        deployment kinds.Application,
                        commandFlag configuration.CommandFlag, opt configuration.Options, repoName string) {
                    Severity: Minor
                    Found in scheduler/actions/kubernetes.go - About 45 mins to fix

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

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

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

                        func LoadConfigurationFromFile(path string, c *Configuration) error {
                            logger.Info(fmt.Sprintf("Loading %s", path))
                            bytes, err := ioutil.ReadFile(path)
                            if err != nil {
                                return err
                        Severity: Major
                        Found in configuration/configuration.go - About 40 mins to fix

                          Function execV1Beta1PodDisruptionBudgetResouce has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func execV1Beta1PodDisruptionBudgetResouce(k kubernetes.Interface, objdep *v1polbeta.PodDisruptionBudget, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                          Severity: Minor
                          Found in platform/v1beta1-poddisruptionbudget.go - About 35 mins to fix

                            Function execV1Beta1StorageResouce has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func execV1Beta1StorageResouce(k kubernetes.Interface, objdep *storagev1b1.StorageClass, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                            Severity: Minor
                            Found in platform/v1beta1-storageclass.go - About 35 mins to fix

                              Function execV1SecretResource has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func execV1SecretResource(k kubernetes.Interface, objdep *v1.Secret, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                              Severity: Minor
                              Found in platform/v1-secret.go - About 35 mins to fix

                                Function execV1RbacClusterRoleBindingResouce has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func execV1RbacClusterRoleBindingResouce(k kubernetes.Interface, objdep *v1rbac.ClusterRoleBinding, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                Severity: Minor
                                Found in platform/v1rbac-clusterrolebinding.go - About 35 mins to fix

                                  Function execV1Beta1CronJob has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func execV1Beta1CronJob(k kubernetes.Interface, objdep *v1beta1.CronJob, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                  Severity: Minor
                                  Found in platform/v1beta1-cronjob.go - About 35 mins to fix

                                    Function execV1ServiceResouce has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func execV1ServiceResouce(k kubernetes.Interface, objdep *v1.Service, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                    Severity: Minor
                                    Found in platform/v1-service.go - About 35 mins to fix

                                      Function execV1Job has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func execV1Job(k kubernetes.Interface, objdep *batchv1.Job, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                      Severity: Minor
                                      Found in platform/v1-job.go - About 35 mins to fix

                                        Function execV1HorizontalPodAutoscaler has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func execV1HorizontalPodAutoscaler(k kubernetes.Interface, objdep *autoscalingv1.HorizontalPodAutoscaler, namespace string, opts configuration.Options, commandFlag configuration.CommandFlag) (state.State, error) {
                                        Severity: Minor
                                        Found in platform/v1autoscaling-horizontalpodautoscaler.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language