Preparing report...

Report for github.com/lab259/hermes

A+    Excellent!    Found 22 issues across 45 files

Tweet

gofmt97%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint57%

Golint is a linter for Go source code.

    • hermes/interfaces.go
    • Line 107: warning: exported type Handler should have comment or be unexported (golint)
    • Line 112: warning: exported type Router should have comment or be unexported (golint)
    • hermes/request.go
    • Line 21: warning: exported type BaseRequest should have comment or be unexported (golint)
    • Line 28: warning: exported function AcquireRequest should have comment or be unexported (golint)
    • Line 35: warning: exported function ReleaseRequest should have comment or be unexported (golint)
    • Line 47: warning: exported method BaseRequest.Raw should have comment or be unexported (golint)
    • Line 51: warning: exported method BaseRequest.Path should have comment or be unexported (golint)
    • Line 55: warning: exported method BaseRequest.Method should have comment or be unexported (golint)
    • Line 59: warning: exported method BaseRequest.URI should have comment or be unexported (golint)
    • Line 63: warning: exported method BaseRequest.Header should have comment or be unexported (golint)
    • Line 67: warning: exported method BaseRequest.Host should have comment or be unexported (golint)
    • Line 71: warning: exported method BaseRequest.Param should have comment or be unexported (golint)
    • Line 83: warning: exported method BaseRequest.Query should have comment or be unexported (golint)
    • Line 87: warning: exported method BaseRequest.QueryMulti should have comment or be unexported (golint)
    • Line 91: warning: exported method BaseRequest.Data should have comment or be unexported (golint)
    • Line 95: warning: exported method BaseRequest.Post should have comment or be unexported (golint)
    • Line 99: warning: exported method BaseRequest.PostMulti should have comment or be unexported (golint)
    • Line 103: warning: exported method BaseRequest.Cookie should have comment or be unexported (golint)
    • Line 107: warning: exported method BaseRequest.Context should have comment or be unexported (golint)
    • Line 111: warning: exported method BaseRequest.WithContext should have comment or be unexported (golint)
    • Line 116: warning: exported method BaseRequest.IsJSON should have comment or be unexported (golint)
    • Line 123: warning: exported method BaseRequest.WantsJSON should have comment or be unexported (golint)
    • hermes/application.go
    • Line 12: warning: exported type ApplicationConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type Application should have comment or be unexported (golint)
    • Line 26: warning: exported function NewApplication should have comment or be unexported (golint)
    • Line 42: warning: exported method Application.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method Application.Restart should have comment or be unexported (golint)
    • Line 56: warning: exported method Application.Start should have comment or be unexported (golint)
    • Line 78: warning: exported method Application.Stop should have comment or be unexported (golint)
    • hermes/router.go
    • Line 11: warning: exported type RouterConfig should have comment or be unexported (golint)
    • Line 24: warning: exported function DefaultRouter should have comment or be unexported (golint)
    • Line 28: warning: exported function NewRouter should have comment or be unexported (golint)
    • Line 196: warning: receiver name r should be consistent with previous receiver name router for router (golint)
    • hermes/examples/errors/main.go
    • Line 12: warning: exported var ErrModule should have comment or be unexported (golint)
    • Line 13: warning: exported var ErrNotImplemented should have comment or be unexported (golint)
    • Line 46: warning: exported type Model should have comment or be unexported (golint)
    • hermes/response.go
    • Line 18: warning: exported type BaseResponse should have comment or be unexported (golint)
    • Line 26: warning: exported function AcquireResponse should have comment or be unexported (golint)
    • Line 32: warning: exported function ReleaseResponse should have comment or be unexported (golint)
    • Line 37: warning: exported method BaseResponse.Cookie should have comment or be unexported (golint)
    • Line 42: warning: exported method BaseResponse.Status should have comment or be unexported (golint)
    • Line 47: warning: exported method BaseResponse.Header should have comment or be unexported (golint)
    • Line 52: warning: exported method BaseResponse.Data should have comment or be unexported (golint)
    • Line 60: warning: exported method BaseResponse.Redirect should have comment or be unexported (golint)
    • Line 64: warning: exported method BaseResponse.File should have comment or be unexported (golint)
    • Line 68: warning: exported method BaseResponse.FileDownload should have comment or be unexported (golint)
    • Line 72: warning: exported method BaseResponse.End should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • hermes/query_string_test.go
    • Line 14: warning: undeclared name: ParseQuery (ineffassign)
    • Line 24: warning: undeclared name: ParseQuery (ineffassign)
    • Line 34: warning: undeclared name: ParseQuery (ineffassign)
    • Line 44: warning: undeclared name: ParseQuery (ineffassign)
    • Line 54: warning: undeclared name: ParseQuery (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!