Showing 407 of 1,235 total issues
Function scheduleRetry
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func scheduleRetry(ctx context.Context, instance Instance, children []*ChildInfo, idx int, d time.Duration) error {
Method DirektivApplyer.apply
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (o *DirektivApplyer) apply(ctx context.Context, callbacks Callbacks, proc *datastore.MirrorProcess, parser *Parser, notes map[string]string) error {
Method DryrunApplyer.apply
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (o *DryrunApplyer) apply(_ context.Context, _ Callbacks, _ *datastore.MirrorProcess, _ *Parser, _ map[string]string) error {
Method engine.subflowInvoke
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (engine *engine) subflowInvoke(ctx context.Context, pi *enginerefactor.ParentInfo, instance *enginerefactor.Instance, name string, input []byte) (*instanceMemory, error) {
Function getVariableDataViaID
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getVariableDataViaID(ctx context.Context, flowToken string, flowAddr string, namespace string, id string) (variable, error) {
Function getVariableMetaFromFlow
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getVariableMetaFromFlow(ctx context.Context, flowToken string, flowAddr string, ir *functionRequest, scope, key string) (variable, int, error) {
Function postVarData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func postVarData(ctx context.Context, flowToken string, flowAddr string, namespace string, body createVarRequest) (int, error) {
Method flow.configureWorkflowStarts
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (flow *flow) configureWorkflowStarts(ctx context.Context, tx *database.SQLStore, nsID uuid.UUID, nsName string, file *filestore.File) error {
Method engine.scheduleTimeout
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (engine *engine) scheduleTimeout(_ context.Context, im *instanceMemory, oldController string, t time.Time, soft bool) {
Function getKnativeServiceURL
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getKnativeServiceURL(knativeNamespace string, namespace string, typ string, file string, name string) string {
Function generateElements
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
getLayoutedElements: (
incomingEles: (Node | Edge)[],
orientation: Orientation
) => (Node | Edge)[],
value: Workflow | null,
Function sseHandlefunc
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func sseHandlefunc(ctx context.Context, r *http.Request, c *eventsController, cursorTime time.Time, params []string) ([]CoursoredEvent, error) {
Method RootQuery.CreateFile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (q *RootQuery) CreateFile(ctx context.Context, path string, typ filestore.FileType, mimeType string, data []byte) (*filestore.File, error) {
Method sqlEventHistoryStore.GetStartingIDUntilTime
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (hs *sqlEventHistoryStore) GetStartingIDUntilTime(ctx context.Context, namespace string, lastID int, t time.Time, keyAndValues ...string) ([]*datastore.Event, error) {
Method sqlEventHistoryStore.getEventsWithWhereClause
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (hs *sqlEventHistoryStore) getEventsWithWhereClause(ctx context.Context, namespace string, t time.Time, whereClause string, keyAndValues ...string) ([]*datastore.Event, error) {
Method events.deleteWorkflowEventListeners
has 5 return statements (exceeds 4 allowed). Open
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
Method events.deleteInstanceEventListeners
has 5 return statements (exceeds 4 allowed). Open
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
Method delayLogic.Run
has 5 return statements (exceeds 4 allowed). Open
Open
func (logic *delayLogic) Run(ctx context.Context, wakedata []byte) (*Transition, error) {
first, err := scheduleTwiceConst(logic, wakedata, `""`)
if err != nil {
return nil, err
}
Method FlowVarPlugin.Execute
has 5 return statements (exceeds 4 allowed). Open
Open
func (tnv *FlowVarPlugin) Execute(w http.ResponseWriter, r *http.Request) *http.Request {
currentNS := gateway.ExtractContextEndpoint(r).Namespace
if tnv.Namespace == "" {
tnv.Namespace = currentNS
}
Method errorLogic.Run
has 5 return statements (exceeds 4 allowed). Open
Open
func (logic *errorLogic) Run(ctx context.Context, wakedata []byte) (*Transition, error) {
err := scheduleOnce(logic, wakedata)
if err != nil {
return nil, err
}