vorteil/direktiv

View on GitHub
pkg/flow/routing.go

Summary

Maintainability
A
3 hrs
Test Coverage

Method flow.cronHandler has 71 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (flow *flow) cronHandler(data []byte) {
    ctx := context.Background()

    t := time.Now().Truncate(time.Minute).UTC()

Severity: Minor
Found in pkg/flow/routing.go - About 1 hr to fix

    Method flow.cronHandler has 8 return statements (exceeds 4 allowed).
    Open

    func (flow *flow) cronHandler(data []byte) {
        ctx := context.Background()
    
        t := time.Now().Truncate(time.Minute).UTC()
    
    
    Severity: Major
    Found in pkg/flow/routing.go - About 50 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

        There are no issues that match your filters.

        Category
        Status