Preparing report...

Report for github.com/thesyncim/exposed

A+    Excellent!    Found 13 issues across 26 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!


golint50%

Golint is a linter for Go source code.

    • exposed/encoding/codec/proto/protobuf.go
    • Line 8: warning: exported const CodecName should have comment or be unexported (golint)
    • Line 14: warning: exported type ProtoCodec should have comment or be unexported (golint)
    • Line 16: warning: exported method ProtoCodec.Marshal should have comment or be unexported (golint)
    • Line 20: warning: exported method ProtoCodec.Unmarshal should have comment or be unexported (golint)
    • Line 30: warning: exported method ProtoCodec.Name should have comment or be unexported (golint)
    • exposed/examples/echo/echoservice/client.go
    • Line 5: warning: exported type EchoserviceClient should have comment or be unexported (golint)
    • Line 9: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 12: warning: exported method EchoserviceClient.Echo should have comment or be unexported (golint)
    • exposed/client.go
    • Line 175: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 260: warning: exported method Client.Call should have comment or be unexported (golint)
    • Line 293: warning: comment on exported method Client.DoContext should be of the form "DoContext ..." (golint)
    • Line 781: warning: comment on exported function ClientTLSConfig should be of the form "ClientTLSConfig ..." (golint)
    • exposed/exposed.go
    • Line 23: warning: exported type Handler should have comment or be unexported (golint)
    • Line 31: warning: exported method HandlerFunc.ServeExposed should have comment or be unexported (golint)
    • exposed/register.go
    • Line 21: warning: exported type OperationTypes should have comment or be unexported (golint)
    • Line 47: warning: exported type OperationInfo should have comment or be unexported (golint)
    • exposed/server.go
    • Line 341: warning: exported method Server.RegisterService should have comment or be unexported (golint)
    • Line 345: warning: exported method Server.HandleFunc should have comment or be unexported (golint)
    • Line 465: warning: comment on exported function ServerMaxBatchDelay should be of the form "ServerMaxBatchDelay ..." (golint)
    • Line 492: warning: comment on exported function ServerTlsConfig should be of the form "ServerTlsConfig ..." (golint)
    • Line 499: warning: comment on exported function ServerMaxConcurrency should be of the form "ServerMaxConcurrency ..." (golint)
    • exposed/examples/echo/echo.go
    • Line 6: warning: exported type Echoer should have comment or be unexported (golint)
    • Line 10: warning: exported type Echo should have comment or be unexported (golint)
    • Line 13: warning: exported method Echo.Echo should have comment or be unexported (golint)
    • exposed/examples/echo/echoservice/protobuf_types.go
    • Line 3: warning: comment on exported type EchoRequest should be of the form "EchoRequest ..." (with optional leading article) (golint)
    • Line 8: warning: comment on exported type EchoReply should be of the form "EchoReply ..." (with optional leading article) (golint)
    • exposed/examples/echo/echoservice/server.go
    • Line 8: warning: exported type EchoserviceServer should have comment or be unexported (golint)
    • Line 12: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 15: warning: exported method EchoserviceServer.ExposedOperations should have comment or be unexported (golint)
    • Line 31: warning: exported method EchoserviceServer.Echo should have comment or be unexported (golint)
    • exposed/encoding/codec/json/json.go
    • Line 9: warning: exported const CodecName should have comment or be unexported (golint)
    • Line 15: warning: exported type JsonCodec should have comment or be unexported (golint)
    • Line 17: warning: exported method JsonCodec.Marshal should have comment or be unexported (golint)
    • Line 21: warning: exported method JsonCodec.Unmarshal should have comment or be unexported (golint)
    • Line 25: warning: exported method JsonCodec.Name should have comment or be unexported (golint)
    • exposed/context.go
    • Line 3: warning: comment on exported type Context should be of the form "Context ..." (with optional leading article) (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!