vorteil/direktiv

View on GitHub
pkg/refactor/api/events.go

Summary

Maintainability
A
1 hr
Test Coverage

Function sseHandlefunc has 7 return statements (exceeds 4 allowed).
Open

func sseHandlefunc(ctx context.Context, r *http.Request, c *eventsController, cursorTime time.Time, params []string) ([]CoursoredEvent, error) {
    ns := chi.URLParam(r, "namespace")
    if ns == "" {
        return nil, fmt.Errorf("namespace can not be empty")
    }
Severity: Major
Found in pkg/refactor/api/events.go - About 45 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/refactor/api/events.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status