horizoncd/horizon

View on GitHub

Showing 676 of 677 total issues

Method service.CreateEventIgnoreError has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (s *service) CreateEventIgnoreError(ctx context.Context, resourceType string,
resourceID uint, eventType string, extra *string) []*models.Event {
Severity: Minor
Found in pkg/event/service/service.go - About 35 mins to fix

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

    func Run(ctx context.Context, jobConfig *autofree.Config, userMgr usermanager.Manager,
    clusterCtr clusterctl.Controller, prCtr prctl.Controller) {
    Severity: Minor
    Found in pkg/jobs/autofree/autofree.go - About 35 mins to fix

      Method dao.List has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (d *dao) List(ctx context.Context, query *q.Query, userID uint,
      withRegion bool, appIDs ...uint) (int, []*models.ClusterWithRegion, error) {
      Severity: Minor
      Found in pkg/cluster/dao/dao.go - About 35 mins to fix

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

        func NewCD(informerFactories *regioninformers.RegionInformers, clusterGitRepo gitrepo.ClusterGitRepo,
        argoCDMapper argocdconf.Mapper, regionArgoCDMapper argocdconf.RegionMapper, targetRevision string) CD {
        Severity: Minor
        Found in pkg/cd/cd.go - About 35 mins to fix

          Method manager.CreateLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (m *manager) CreateLink(ctx context.Context, uid uint,
          idpID uint, claims *utils.Claims, deletable bool) (*models.UserLink, error) {
          Severity: Minor
          Found in pkg/userlink/manager/manager.go - About 35 mins to fix

            Method helper.WriteFiles has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            func (h *helper) WriteFiles(ctx context.Context, pid interface{}, branch, commitMsg string,
            startBranch *string, actions []CommitAction) (_ *gitlab.Commit, err error) {
            Severity: Minor
            Found in lib/gitlab/gitlab.go - About 35 mins to fix

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

              func isClusterActuallyHealthy(ctx context.Context, clusterState *cd.ClusterState, image string,
              restartTime time.Time, replicas int) bool {
              Severity: Minor
              Found in core/controller/cluster/controller_status.go - About 35 mins to fix

                Method manager.UpdateByName has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (m *manager) UpdateByName(ctx context.Context, resourceType string,
                resourceID uint, name string, badge *models.Badge) (*models.Badge, error) {
                Severity: Minor
                Found in pkg/badge/manager/manager.go - About 35 mins to fix

                  Method manager.Get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (m *manager) Get(ctx context.Context, resourceType models.ResourceType,
                  resourceID uint, memberType models.MemberType, memberInfo uint) (*models.Member, error) {
                  Severity: Minor
                  Found in pkg/member/manager/manager.go - About 35 mins to fix

                    Method controller.CreateCluster has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (c *controller) CreateCluster(ctx context.Context, applicationID uint, environment,
                    region string, r *CreateClusterRequest, mergePatch bool) (_ *GetClusterResponse, err error) {
                    Severity: Minor
                    Found in core/controller/cluster/controller_basic.go - About 35 mins to fix

                      Method service.getMember has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func (s *service) getMember(ctx context.Context, resourceType string, resourceID uint,
                      memberType models.MemberType, memberInfo uint) (*models.Member, error) {
                      Severity: Minor
                      Found in pkg/member/service/service.go - About 35 mins to fix

                        Method dao.Get has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        func (d *dao) Get(ctx context.Context, resourceType models.ResourceType, resourceID uint,
                        memberType models.MemberType, memberInfo uint) (*models.Member, error) {
                        Severity: Minor
                        Found in pkg/member/dao/dao.go - About 35 mins to fix

                          Method helper.GetCreatedGroup has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (h *helper) GetCreatedGroup(ctx context.Context, parentID int,
                          parentFullPath string, name string, visibility string) (*gitlab.Group, error) {
                          Severity: Minor
                          Found in lib/gitlab/gitlab.go - About 35 mins to fix

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

                            func ofClusterModel(application *appmodels.Application, cluster *models.Cluster, fullPath, namespace string,
                            pipelineJSONBlob, applicationJSONBlob map[string]interface{}, tags ...*tagmodels.Tag) *GetClusterResponse {
                            Severity: Minor
                            Found in core/controller/cluster/models_basic.go - About 35 mins to fix

                              Method controller.customizeTemplateInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func (c *controller) customizeTemplateInfo(ctx context.Context, r *CreateClusterRequest,
                              application *models.Application, environment string, mergePatch bool) error {
                              Severity: Minor
                              Found in core/controller/cluster/controller_basic.go - About 35 mins to fix

                                Method helper.AcceptMR has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func (h *helper) AcceptMR(ctx context.Context, pid interface{}, mrID int,
                                mergeCommitMsg *string, shouldRemoveSourceBranch *bool) (mr *gitlab.MergeRequest, err error) {
                                Severity: Minor
                                Found in lib/gitlab/gitlab.go - About 35 mins to fix

                                  Method controller.checkAllowDeploy has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func (c *controller) checkAllowDeploy(ctx context.Context,
                                  application *amodels.Application, cluster *cmodels.Cluster,
                                  clusterFiles *gitrepo.ClusterFiles, configCommit *gitrepo.ClusterCommit) error {
                                  Severity: Minor
                                  Found in core/controller/cluster/controller_operation.go - About 35 mins to fix

                                    Method dao.UpdateByName has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func (d *dao) UpdateByName(ctx context.Context, resourceType string,
                                    resourceID uint, name string, badge *models.Badge) (*models.Badge, error) {
                                    Severity: Minor
                                    Found in pkg/badge/dao/dao.go - About 35 mins to fix

                                      Method controller.updatePipelineRunStatus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func (c *controller) updatePipelineRunStatus(ctx context.Context,
                                      action string, prID uint, pState prmodels.PipelineStatus, revision string) error {
                                      Severity: Minor
                                      Found in core/controller/cluster/controller_operation.go - About 35 mins to fix

                                        Method controller.UpdateBadgeByName has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (c *controller) UpdateBadgeByName(ctx context.Context, resourceType string,
                                        resourceID uint, name string, badge *Update) (*Badge, error) {
                                        Severity: Minor
                                        Found in core/controller/badge/controller.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language