Preparing report...

Report for github.com/txn2/micro

A    Great!    Found 2 issues across 2 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!


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!


golint0%

Golint is a linter for Go source code.

    • micro/client.go
    • Line 1: warning: package comment should be of the form "Package micro ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 24: warning: comment on exported type ClientCfg should be of the form "ClientCfg ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported function NewHttpClient should be of the form "NewHttpClient ..." (golint)
    • micro/server.go
    • Line 36: warning: exported const HealthzDefaultUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: comment on exported type ServerCfg should be of the form "ServerCfg ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported type Server should be of the form "Server ..." (with optional leading article) (golint)
    • Line 85: warning: comment on exported function NewServerCfg should be of the form "NewServerCfg ..." (golint)
    • Line 177: warning: comment on exported function NewServer should be of the form "NewServer ..." (golint)
    • Line 300: warning: comment on exported function HealthzHandler should be of the form "HealthzHandler ..." (golint)
    • Line 316: warning: comment on exported function NoRouteHandler should be of the form "NoRouteHandler ..." (golint)
    • Line 340: warning: comment on exported type MappedMetricFamily should be of the form "MappedMetricFamily ..." (with optional leading article) (golint)
    • Line 343: warning: comment on exported type PxyCfg should be of the form "PxyCfg ..." (with optional leading article) (golint)
    • Line 350: warning: comment on exported method Server.ReverseProxy should be of the form "ReverseProxy ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!