Preparing report...

Report for github.com/luraproject/lura

A+    Excellent!    Found 59 issues across 124 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo97%

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.


golint54%

Golint is a linter for Go source code.

    • lura/router/httptreemux/router.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 35: warning: exported function ParamsExtractor should have comment or be unexported (golint)
    • Line 43: warning: exported function NewEngine should have comment or be unexported (golint)
    • Line 47: warning: exported type Engine should have comment or be unexported (golint)
    • lura/register/register.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 10: warning: exported function New should have comment or be unexported (golint)
    • Line 14: warning: exported type Namespaced should have comment or be unexported (golint)
    • Line 18: warning: exported method Namespaced.Get should have comment or be unexported (golint)
    • Line 27: warning: exported method Namespaced.Register should have comment or be unexported (golint)
    • Line 38: warning: exported method Namespaced.AddNamespace should have comment or be unexported (golint)
    • Line 45: warning: exported type Untyped should have comment or be unexported (golint)
    • Line 51: warning: exported function NewUntyped should have comment or be unexported (golint)
    • lura/proxy/register.go
    • Line 1: warning: package comment should be of the form "Package proxy ..." (golint)
    • Line 8: warning: exported function NewRegister should have comment or be unexported (golint)
    • Line 14: warning: exported type Register should have comment or be unexported (golint)
    • lura/transport/http/client/plugin/plugin.go
    • Line 1: warning: package comment should be of the form "Package plugin ..." (golint)
    • Line 18: warning: exported function RegisterClient should have comment or be unexported (golint)
    • Line 25: warning: exported type Registerer should have comment or be unexported (golint)
    • Line 32: warning: exported type LoggerRegisterer should have comment or be unexported (golint)
    • Line 36: warning: exported type RegisterClientFunc should have comment or be unexported (golint)
    • Line 41: warning: exported function Load should have comment or be unexported (golint)
    • Line 45: warning: exported function LoadWithLogger should have comment or be unexported (golint)
    • lura/encoding/json.go
    • Line 1: warning: package comment should be of the form "Package encoding ..." (golint)
    • Line 42: warning: comment on exported function NewSafeJSONDecoder should be of the form "NewSafeJSONDecoder ..." (golint)
    • Line 47: warning: comment on exported function SafeJSONDecoder should be of the form "SafeJSONDecoder ..." (golint)
    • lura/transport/http/server/plugin/server.go
    • Line 1: warning: package comment should be of the form "Package plugin ..." (golint)
    • Line 12: warning: exported const Namespace should have comment or be unexported (golint)
    • Line 14: warning: exported type RunServer should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • lura/register/internal/untyped.go
    • Line 1: warning: package comment should be of the form "Package internal ..." (golint)
    • Line 6: warning: exported function NewUntyped should have comment or be unexported (golint)
    • Line 13: warning: exported type Untyped should have comment or be unexported (golint)
    • Line 18: warning: exported method Untyped.Register should have comment or be unexported (golint)
    • Line 24: warning: exported method Untyped.Get should have comment or be unexported (golint)
    • Line 31: warning: exported method Untyped.Clone should have comment or be unexported (golint)
    • lura/proxy/plugin/tests/main.go
    • Line 20: warning: exported var ModifierRegisterer should have comment or be unexported (golint)
    • Line 95: warning: error var unkownTypeErr should have name of the form errFoo (golint)
    • Line 97: warning: exported type RequestWrapper should have comment or be unexported (golint)
    • lura/router/helper.go
    • Line 1: warning: package comment should be of the form "Package router ..." (golint)
    • Line 11: warning: exported function IsValidSequentialEndpoint should have comment or be unexported (golint)
    • lura/transport/http/server/plugin/plugin.go
    • Line 1: warning: package comment should be of the form "Package plugin ..." (golint)
    • Line 18: warning: exported function RegisterHandler should have comment or be unexported (golint)
    • Line 25: warning: exported type Registerer should have comment or be unexported (golint)
    • Line 32: warning: exported type LoggerRegisterer should have comment or be unexported (golint)
    • Line 36: warning: exported type RegisterHandlerFunc should have comment or be unexported (golint)
    • Line 41: warning: exported function Load should have comment or be unexported (golint)
    • Line 45: warning: exported function LoadWithLogger should have comment or be unexported (golint)
    • lura/plugin/plugin.go
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 31: warning: exported function Scan should have comment or be unexported (golint)
    • lura/proxy/plugin.go
    • Line 1: warning: package comment should be of the form "Package proxy ..." (golint)
    • Line 197: warning: comment on exported type ResponseMetadataWrapper should be of the form "ResponseMetadataWrapper ..." (with optional leading article) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!