xUnholy/go-proxy

View on GitHub
internal/config/profile.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func ValidateRequiredFields(c *Configuration) error {
    if c.Proxy.Credentials.Username == "" {
        return fmt.Errorf("username is a required field")
    }
    if len(c.Proxy.ProxyAddress) == 0 {
Severity: Major
Found in internal/config/profile.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status