efritz/derision

View on GitHub
internal/template/template.go

Summary

Maintainability
A
35 mins
Test Coverage

Method template.Respond has 5 return statements (exceeds 4 allowed).
Open

func (t *template) Respond(r *request.Request, m *expectation.Match) (response.Response, error) {
    args := map[string]interface{}{
        "Method":       r.Method,
        "Path":         r.Path,
        "Headers":      r.Headers,
Severity: Major
Found in internal/template/template.go - About 35 mins to fix

    exported var ErrIllegalStatusCode should have comment or be unexported
    Open

    var ErrIllegalStatusCode = fmt.Errorf("illegal status code")
    Severity: Minor
    Found in internal/template/template.go by golint

    exported type Template should have comment or be unexported
    Open

        Template interface {
    Severity: Minor
    Found in internal/template/template.go by golint

    There are no issues that match your filters.

    Category
    Status