Preparing report...

Report for github.com/porthos-rpc/porthos-go

A+    Excellent!    Found 11 issues across 32 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!


golint68%

Golint is a linter for Go source code.

    • porthos-go/mock/request.go
    • Line 12: warning: exported type Request should have comment or be unexported (golint)
    • Line 20: warning: exported method Request.GetServiceName should have comment or be unexported (golint)
    • Line 24: warning: exported method Request.GetMethodName should have comment or be unexported (golint)
    • Line 28: warning: exported method Request.GetBody should have comment or be unexported (golint)
    • Line 32: warning: exported method Request.Form should have comment or be unexported (golint)
    • Line 36: warning: exported method Request.Bind should have comment or be unexported (golint)
    • Line 46: warning: exported method Request.WithContext should have comment or be unexported (golint)
    • Line 58: warning: exported method Request.Context should have comment or be unexported (golint)
    • Line 66: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 75: warning: exported function NewRequestFromMap should have comment or be unexported (golint)
    • Line 79: warning: exported function NewRequestFromStruct should have comment or be unexported (golint)
    • porthos-go/broker.go
    • Line 14: warning: exported var ErrBrokerNotConnected should have comment or be unexported (golint)
    • Line 101: warning: exported method Broker.IsConnected should have comment or be unexported (golint)
    • porthos-go/status.go
    • Line 7: warning: exported const StatusOK should have comment (or a comment on this block) or be unexported (golint)
    • porthos-go/mock/response.go
    • Line 9: warning: exported type Response should have comment or be unexported (golint)
    • Line 16: warning: exported method Response.JSON should have comment or be unexported (golint)
    • Line 28: warning: exported method Response.Raw should have comment or be unexported (golint)
    • Line 34: warning: exported method Response.Empty should have comment or be unexported (golint)
    • Line 38: warning: exported method Response.GetHeaders should have comment or be unexported (golint)
    • Line 42: warning: exported method Response.GetStatusCode should have comment or be unexported (golint)
    • Line 46: warning: exported method Response.GetBody should have comment or be unexported (golint)
    • Line 50: warning: exported method Response.GetContentType should have comment or be unexported (golint)
    • Line 54: warning: exported function NewResponse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!