vorteil/direktiv

View on GitHub

Showing 407 of 1,235 total issues

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

func scheduleRetry(ctx context.Context, instance Instance, children []*ChildInfo, idx int, d time.Duration) error {
Severity: Minor
Found in pkg/flow/states/action-helpers.go - About 35 mins to fix

    Method DirektivApplyer.apply has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (o *DirektivApplyer) apply(ctx context.Context, callbacks Callbacks, proc *datastore.MirrorProcess, parser *Parser, notes map[string]string) error {
    Severity: Minor
    Found in pkg/mirror/apply.go - About 35 mins to fix

      Method DryrunApplyer.apply has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (o *DryrunApplyer) apply(_ context.Context, _ Callbacks, _ *datastore.MirrorProcess, _ *Parser, _ map[string]string) error {
      Severity: Minor
      Found in pkg/mirror/apply.go - About 35 mins to fix

        Method engine.subflowInvoke has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (engine *engine) subflowInvoke(ctx context.Context, pi *enginerefactor.ParentInfo, instance *enginerefactor.Instance, name string, input []byte) (*instanceMemory, error) {
        Severity: Minor
        Found in pkg/flow/engine.go - About 35 mins to fix

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

          func getVariableDataViaID(ctx context.Context, flowToken string, flowAddr string, namespace string, id string) (variable, error) {
          Severity: Minor
          Found in cmd/sidecar/api_v2_clients.go - About 35 mins to fix

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

            func getVariableMetaFromFlow(ctx context.Context, flowToken string, flowAddr string, ir *functionRequest, scope, key string) (variable, int, error) {
            Severity: Minor
            Found in cmd/sidecar/api_v2_clients.go - About 35 mins to fix

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

              func postVarData(ctx context.Context, flowToken string, flowAddr string, namespace string, body createVarRequest) (int, error) {
              Severity: Minor
              Found in cmd/sidecar/api_v2_clients.go - About 35 mins to fix

                Method flow.configureWorkflowStarts has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (flow *flow) configureWorkflowStarts(ctx context.Context, tx *database.SQLStore, nsID uuid.UUID, nsName string, file *filestore.File) error {
                Severity: Minor
                Found in pkg/flow/routing.go - About 35 mins to fix

                  Method engine.scheduleTimeout has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (engine *engine) scheduleTimeout(_ context.Context, im *instanceMemory, oldController string, t time.Time, soft bool) {
                  Severity: Minor
                  Found in pkg/flow/timeouts.go - About 35 mins to fix

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

                    func getKnativeServiceURL(knativeNamespace string, namespace string, typ string, file string, name string) string {
                    Severity: Minor
                    Found in pkg/service/service.go - About 35 mins to fix

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

                        getLayoutedElements: (
                          incomingEles: (Node | Edge)[],
                          orientation: Orientation
                        ) => (Node | Edge)[],
                        value: Workflow | null,
                      Severity: Minor
                      Found in ui/src/design/WorkflowDiagram/utils.ts - About 35 mins to fix

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

                        func sseHandlefunc(ctx context.Context, r *http.Request, c *eventsController, cursorTime time.Time, params []string) ([]CoursoredEvent, error) {
                        Severity: Minor
                        Found in pkg/api/events.go - About 35 mins to fix

                          Method RootQuery.CreateFile has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (q *RootQuery) CreateFile(ctx context.Context, path string, typ filestore.FileType, mimeType string, data []byte) (*filestore.File, error) {
                          Severity: Minor
                          Found in pkg/filestore/filestoresql/root_query.go - About 35 mins to fix

                            Method sqlEventHistoryStore.GetStartingIDUntilTime has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (hs *sqlEventHistoryStore) GetStartingIDUntilTime(ctx context.Context, namespace string, lastID int, t time.Time, keyAndValues ...string) ([]*datastore.Event, error) {
                            Severity: Minor
                            Found in pkg/datastore/datastoresql/eventstore_history.go - About 35 mins to fix

                              Method sqlEventHistoryStore.getEventsWithWhereClause has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func (hs *sqlEventHistoryStore) getEventsWithWhereClause(ctx context.Context, namespace string, t time.Time, whereClause string, keyAndValues ...string) ([]*datastore.Event, error) {
                              Severity: Minor
                              Found in pkg/datastore/datastoresql/eventstore_history.go - About 35 mins to fix

                                Method events.deleteWorkflowEventListeners has 5 return statements (exceeds 4 allowed).
                                Open

                                func (events *events) deleteWorkflowEventListeners(ctx context.Context, nsID uuid.UUID, fileID uuid.UUID) error {
                                    err := events.runSQLTx(ctx, func(tx *database.SQLStore) error {
                                        ids, err := tx.DataStore().EventListener().DeleteAllForWorkflow(ctx, fileID)
                                        if err != nil {
                                            return err
                                Severity: Major
                                Found in pkg/flow/db-events.go - About 35 mins to fix

                                  Method events.deleteInstanceEventListeners has 5 return statements (exceeds 4 allowed).
                                  Open

                                  func (events *events) deleteInstanceEventListeners(ctx context.Context, im *instanceMemory) error {
                                      err := events.runSQLTx(ctx, func(tx *database.SQLStore) error {
                                          ids, err := tx.DataStore().EventListener().DeleteAllForWorkflow(ctx, im.instance.Instance.ID)
                                          if err != nil {
                                              return err
                                  Severity: Major
                                  Found in pkg/flow/db-events.go - About 35 mins to fix

                                    Method delayLogic.Run has 5 return statements (exceeds 4 allowed).
                                    Open

                                    func (logic *delayLogic) Run(ctx context.Context, wakedata []byte) (*Transition, error) {
                                        first, err := scheduleTwiceConst(logic, wakedata, `""`)
                                        if err != nil {
                                            return nil, err
                                        }
                                    Severity: Major
                                    Found in pkg/flow/states/delay.go - About 35 mins to fix

                                      Method FlowVarPlugin.Execute has 5 return statements (exceeds 4 allowed).
                                      Open

                                      func (tnv *FlowVarPlugin) Execute(w http.ResponseWriter, r *http.Request) *http.Request {
                                          currentNS := gateway.ExtractContextEndpoint(r).Namespace
                                          if tnv.Namespace == "" {
                                              tnv.Namespace = currentNS
                                          }
                                      Severity: Major
                                      Found in pkg/gateway/plugins/target/target-workflow-var.go - About 35 mins to fix

                                        Method errorLogic.Run has 5 return statements (exceeds 4 allowed).
                                        Open

                                        func (logic *errorLogic) Run(ctx context.Context, wakedata []byte) (*Transition, error) {
                                            err := scheduleOnce(logic, wakedata)
                                            if err != nil {
                                                return nil, err
                                            }
                                        Severity: Major
                                        Found in pkg/flow/states/error.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language