Preparing report...

Report for github.com/johanbrandhorst/protobuf

A+    Excellent!    Found 14 issues across 49 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!


gocyclo85%

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.


golint77%

Golint is a linter for Go source code.

    • protobuf/test/server/wrappers/wrappers.go
    • Line 13: warning: exported type ClientWrapper should have comment or be unexported (golint)
    • Line 17: warning: exported method ClientWrapper.Ping should have comment or be unexported (golint)
    • Line 29: warning: exported method ClientWrapper.PingError should have comment or be unexported (golint)
    • Line 35: warning: exported method ClientWrapper.PingList should have comment or be unexported (golint)
    • Line 43: warning: exported method ClientWrapper.PingClientStream should have comment or be unexported (golint)
    • Line 51: warning: exported method ClientWrapper.PingClientStreamError should have comment or be unexported (golint)
    • Line 59: warning: exported method ClientWrapper.PingBidiStream should have comment or be unexported (golint)
    • Line 67: warning: exported method ClientWrapper.PingBidiStreamError should have comment or be unexported (golint)
    • protobuf/test/shared/ping_client.go
    • Line 12: warning: exported type TestPingClientStreamClient should have comment or be unexported (golint)
    • Line 110: warning: exported type TestPingClientStreamErrorClient should have comment or be unexported (golint)
    • Line 163: warning: exported function TestPingClientStream should have comment or be unexported (golint)
    • protobuf/protoc-gen-gopherjs/generator/generator.go
    • Line 32: warning: package comment should be of the form "Package generator ..." (golint)
    • Line 32: warning: package comment should not have leading space (golint)
    • Line 202: warning: exported method ImportedDescriptor.TypeName should have comment or be unexported (golint)
    • Line 424: warning: comment on exported function RegisterUniquePackageName should be of the form "RegisterUniquePackageName ..." (golint)
    • Line 774: warning: comment on exported method Generator.ObjectNamed should be of the form "ObjectNamed ..." (golint)
    • Line 1307: warning: exported method Generator.RecordTypeUse should have comment or be unexported (golint)
    • protobuf/test/client/wrappers/wrappers.go
    • Line 13: warning: exported type ClientWrapper should have comment or be unexported (golint)
    • Line 17: warning: exported method ClientWrapper.Ping should have comment or be unexported (golint)
    • Line 26: warning: exported method ClientWrapper.PingError should have comment or be unexported (golint)
    • Line 32: warning: exported method ClientWrapper.PingList should have comment or be unexported (golint)
    • Line 40: warning: exported method ClientWrapper.PingClientStream should have comment or be unexported (golint)
    • Line 48: warning: exported method ClientWrapper.PingClientStreamError should have comment or be unexported (golint)
    • Line 56: warning: exported method ClientWrapper.PingBidiStream should have comment or be unexported (golint)
    • Line 64: warning: exported method ClientWrapper.PingBidiStreamError should have comment or be unexported (golint)
    • protobuf/test/shared/ping_bidi.go
    • Line 13: warning: exported type TestPingBidiStreamClient should have comment or be unexported (golint)
    • Line 122: warning: exported type TestPingBidiStreamErrorClient should have comment or be unexported (golint)
    • Line 194: warning: exported function TestPingBidiStream should have comment or be unexported (golint)
    • protobuf/test/shared/shared.go
    • Line 26: warning: exported type TestClient should have comment or be unexported (golint)
    • Line 36: warning: exported type FailureType should have comment or be unexported (golint)
    • Line 39: warning: exported const NONE should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported type Request should have comment or be unexported (golint)
    • Line 55: warning: exported type Response should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!