Preparing report...

Report for github.com/fullstorydev/grpchan

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


golint78%

Golint is a linter for Go source code.

    • grpchan/httpgrpc/protocol_versions.go
    • Line 37: warning: don't use underscores in Go names; const UnaryRpcContentType_V1 should be UnaryRPCContentTypeV1 (golint)
    • Line 38: warning: don't use underscores in Go names; const StreamRpcContentType_V1 should be StreamRPCContentTypeV1 (golint)
    • Line 42: warning: comment on exported const ApplicationJson should be of the form "ApplicationJson ..." (golint)
    • grpchan/inprocgrpc/cloner.go
    • Line 37: warning: exported method ProtoCloner.Copy should have comment or be unexported (golint)
    • Line 49: warning: exported method ProtoCloner.Clone should have comment or be unexported (golint)
    • grpchan/inprocgrpc/no_values_context_test.go
    • Line 11: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 12: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 13: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 17: warning: should not use basic type string as key in context.WithValue (golint)

gocyclo82%

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.

    • grpchan/httpgrpc/codes.go
    • Line 59: warning: cyclomatic complexity 27 of function codeFromHttpStatus() is high (> 15) (gocyclo)
    • Line 15: warning: cyclomatic complexity 19 of function httpStatusFromCode() is high (> 15) (gocyclo)

ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words