boynux/squid-exporter

View on GitHub
helpers.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func createProxyHeader(cfg *config.Config) string {
    la := strings.Split(cfg.ListenAddress, ":")
    if len(la) < 2 {
        log.Printf("Cannot parse listen address (%s). Failed to create proxy header\n", cfg.ListenAddress)
        return ""
Severity: Major
Found in helpers.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status