grokify/mogo

View on GitHub
net/http/httputilmore/endpoint.go

Summary

Maintainability
A
40 mins
Test Coverage

Function ParseEndpoint has 6 return statements (exceeds 4 allowed).
Open

func ParseEndpoint(s string) (*Endpoint, error) {
    parts := strings.Fields(s)
    if len(parts) == 0 {
        return nil, errors.New("empty string cannot be parsed as RUL")
    } else if len(parts) == 1 {
Severity: Major
Found in net/http/httputilmore/endpoint.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status