bnkamalesh/webgo

View on GitHub
route.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Route.matchWithWildcard has 5 return statements (exceeds 4 allowed).
Open

func (r *Route) matchWithWildcard(requestURI string) (bool, map[string]string) {
    // if r.fragments is empty, it means there are no variables in the URI pattern
    // hence no point checking
    if len(r.fragments) == 0 {
        return false, nil
Severity: Major
Found in route.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status