GoMetric/statsd-http-proxy

View on GitHub

Showing 2 of 2 total issues

Function NewServer has 14 arguments (exceeds 4 allowed). Consider refactoring.
Open

    httpHost string,
    httpPort int,
    httpReadTimeout int,
    httpWriteTimeout int,
    httpIdleTimeout int,
Severity: Major
Found in proxy/server.go - About 1 hr to fix

    Function main has 59 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func main() {
        // declare command line options
        var httpHost = flag.String("http-host", defaultHTTPHost, "HTTP Host")
        var httpPort = flag.Int("http-port", defaultHTTPPort, "HTTP Port")
        var httpReadTimeout = flag.Int("http-timeout-read", defaultHTTPReadTimeout, "The maximum duration in seconds for reading the entire request, including the body")
    Severity: Minor
    Found in main.go - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language