axamon/hermes

View on GitHub
webapp/server/handlers.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function upload has 64 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func upload(w http.ResponseWriter, r *http.Request) {
    ctx, cancel := context.WithCancel(r.Context())
    defer cancel()

    // In caso di panico recupera senza killare il server.
Severity: Minor
Found in webapp/server/handlers.go - About 1 hr to fix

    Function upload has 5 return statements (exceeds 4 allowed).
    Open

    func upload(w http.ResponseWriter, r *http.Request) {
        ctx, cancel := context.WithCancel(r.Context())
        defer cancel()
    
        // In caso di panico recupera senza killare il server.
    Severity: Major
    Found in webapp/server/handlers.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status