Preparing report...

Report for arhat.dev/libext

A+    Excellent!    Found 22 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!


gocyclo87%

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.


golint63%

Golint is a linter for Go source code.

    • /arhat.dev/libext/codec/gogoprotobuf/codec.go
    • Line 40: warning: exported var ErrNotProtobufMessage should have comment or be unexported (golint)
    • Line 55: warning: exported type Codec should have comment or be unexported (golint)
    • Line 57: warning: exported method Codec.Type should have comment or be unexported (golint)
    • Line 61: warning: exported method Codec.NewEncoder should have comment or be unexported (golint)
    • Line 65: warning: exported method Codec.NewDecoder should have comment or be unexported (golint)
    • Line 69: warning: exported method Codec.Unmarshal should have comment or be unexported (golint)
    • Line 82: warning: exported method Codec.Marshal should have comment or be unexported (golint)
    • Line 91: warning: exported type Encoder should have comment or be unexported (golint)
    • Line 95: warning: exported method Encoder.Encode should have comment or be unexported (golint)
    • Line 129: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 133: warning: exported method Decoder.Decode should have comment or be unexported (golint)
    • /arhat.dev/libext/extruntime/handler.go
    • Line 34: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 72: warning: exported type Handler should have comment or be unexported (golint)
    • Line 86: warning: exported method Handler.HandleCmd should have comment or be unexported (golint)
    • /arhat.dev/libext/server/extension.go
    • Line 34: warning: exported function NewExtensionContext should have comment or be unexported (golint)
    • Line 67: warning: comment on exported type CmdSendFunc should be of the form "CmdSendFunc ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported type OutOfBandMsgHandleFunc should be of the form "OutOfBandMsgHandleFunc ..." (with optional leading article) (golint)
    • Line 78: warning: comment on exported type ExtensionHandleFunc should be of the form "ExtensionHandleFunc ..." (with optional leading article) (golint)
    • Line 81: warning: comment on exported type ExtensionHandleFuncFactory should be of the form "ExtensionHandleFuncFactory ..." (with optional leading article) (golint)
    • Line 85: warning: exported function NewExtensionManager should have comment or be unexported (golint)
    • Line 106: warning: exported type ExtensionManager should have comment or be unexported (golint)
    • Line 117: warning: comment on exported method ExtensionManager.HandleStream should be of the form "HandleStream ..." (golint)
    • /arhat.dev/libext/codec/stdjson/codec.go
    • Line 34: warning: exported type Codec should have comment or be unexported (golint)
    • Line 36: warning: exported method Codec.Type should have comment or be unexported (golint)
    • Line 40: warning: exported method Codec.NewEncoder should have comment or be unexported (golint)
    • Line 44: warning: exported method Codec.NewDecoder should have comment or be unexported (golint)
    • Line 48: warning: exported method Codec.Marshal should have comment or be unexported (golint)
    • Line 52: warning: exported method Codec.Unmarshal should have comment or be unexported (golint)
    • /arhat.dev/libext/extutil/streaming.go
    • Line 32: warning: exported function NewStreamManager should have comment or be unexported (golint)
    • Line 38: warning: exported type StreamManager should have comment or be unexported (golint)
    • Line 54: warning: exported method StreamManager.Has should have comment or be unexported (golint)
    • Line 62: warning: exported method StreamManager.Add should have comment or be unexported (golint)
    • Line 88: warning: exported method StreamManager.Del should have comment or be unexported (golint)
    • Line 114: warning: exported method StreamManager.Resize should have comment or be unexported (golint)
    • /arhat.dev/libext/extutil/handler.go
    • Line 28: warning: exported var ErrMsgSendFuncNotSet should have comment or be unexported (golint)
    • Line 30: warning: exported function NewBaseHandler should have comment or be unexported (golint)
    • Line 36: warning: exported type BaseHandler should have comment or be unexported (golint)
    • Line 40: warning: exported method BaseHandler.SetMsgSendFunc should have comment or be unexported (golint)
    • Line 44: warning: exported method BaseHandler.SendMsg should have comment or be unexported (golint)
    • /arhat.dev/libext/extperipheral/handler.go
    • Line 35: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 56: warning: exported type Handler should have comment or be unexported (golint)
    • Line 68: warning: exported method Handler.HandleCmd should have comment or be unexported (golint)
    • /arhat.dev/libext/server/server.go
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 43: warning: exported type EndpointConfig should have comment or be unexported (golint)
    • Line 50: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 126: warning: exported type Server should have comment or be unexported (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!