LLKennedy/httpgrpc

View on GitHub
convert/unary.go

Summary

Maintainability
A
2 hrs
Test Coverage

Function ProxyRequest has 56 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func ProxyRequest(ctx context.Context, w http.ResponseWriter, r *http.Request, procedure string, conn grpc.ClientConnInterface, txid string, loggers ...logs.Writer) {
    remote := httpapi.NewExposedServiceClient(conn)
    isWebsocket := false
    upgradeHader, ok := r.Header["Upgrade"]
    if ok {
Severity: Minor
Found in convert/unary.go - About 1 hr to fix

    Function ProxyRequest has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func ProxyRequest(ctx context.Context, w http.ResponseWriter, r *http.Request, procedure string, conn grpc.ClientConnInterface, txid string, loggers ...logs.Writer) {
    Severity: Major
    Found in convert/unary.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status