LLKennedy/httpgrpc

View on GitHub
proxy/methods.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func validateMethod(apiMethod reflect.Method, serverType reflect.Type) (methodType string, procedureName string, pattern apiMethodPattern, err error) {
    name := apiMethod.Name
    httpType, trueName, valid := MatchAndStripMethodName(name)
    if !valid {
        err = fmt.Errorf("%s does not begin with a valid HTTP method", name)
Severity: Major
Found in proxy/methods.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status