fabiocicerchia/go-proxy-cache

View on GitHub
telemetry/telemetry.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method TelemetryContext.RegisterWholeResponse has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (tc TelemetryContext) RegisterWholeResponse(reqID string, req http.Request, statusCode int, contentLength int, requestStartTime time.Time, scheme string, cached bool, stale bool) {
Severity: Major
Found in telemetry/telemetry.go - About 1 hr to fix

    Method TelemetryContext.RegisterLegitRequest has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (tc TelemetryContext) RegisterLegitRequest(hostMatch bool, legitPort bool, hostname string, listeningPort string, confHostname string, confPort string) {
    Severity: Minor
    Found in telemetry/telemetry.go - About 45 mins to fix

      Method TelemetryContext.RegisterRequestCall has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (tc TelemetryContext) RegisterRequestCall(reqID string, req http.Request, reqURL url.URL, scheme string, webSocket bool) {
      Severity: Minor
      Found in telemetry/telemetry.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status