Preparing report...

Report for github.com/arun-spire/go-micro

A    Great!    Found 225 issues across 425 files

Tweet

gofmt84%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint57%

Golint is a linter for Go source code.

    • go-micro/registry/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 19: warning: exported type RegisterOptions should have comment or be unexported (golint)
    • Line 26: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 42: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • Line 62: warning: exported function RegisterTTL should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function WatchService should be of the form "WatchService ..." (golint)
    • go-micro/api/resolver/grpc/grpc.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 14: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 36: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/server/mock/mock_handler.go
    • Line 8: warning: exported type MockHandler should have comment or be unexported (golint)
    • Line 14: warning: exported method MockHandler.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method MockHandler.Handler should have comment or be unexported (golint)
    • Line 22: warning: exported method MockHandler.Endpoints should have comment or be unexported (golint)
    • Line 26: warning: exported method MockHandler.Options should have comment or be unexported (golint)
    • go-micro/util/log/log.go
    • Line 12: warning: comment on exported type Level should be of the form "Level ..." (with optional leading article) (golint)
    • Line 16: warning: exported const LevelFatal should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: comment on exported function WithLevelf should be of the form "WithLevelf ..." (golint)
    • Line 167: warning: comment on exported function SetPrefix should be of the form "SetPrefix ..." (golint)
    • Line 172: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • go-micro/runtime/source/go/golang.go
    • Line 13: warning: exported type Source should have comment or be unexported (golint)
    • Line 20: warning: exported method Source.Fetch should have comment or be unexported (golint)
    • Line 72: warning: exported function NewSource should have comment or be unexported (golint)
    • go-micro/broker/service/handler/handler.go
    • Line 12: warning: exported type Broker should have comment or be unexported (golint)
    • Line 16: warning: exported method Broker.Publish should have comment or be unexported (golint)
    • Line 29: warning: exported method Broker.Subscribe should have comment or be unexported (golint)
    • go-micro/config/reader/options.go
    • Line 12: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 18: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 35: warning: exported function WithEncoder should have comment or be unexported (golint)
    • go-micro/runtime/options.go
    • Line 7: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function WithNotifier should be of the form "WithNotifier ..." (golint)
    • Line 22: warning: exported type CreateOption should have comment or be unexported (golint)
    • go-micro/api/resolver/host/host.go
    • Line 10: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 12: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 25: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/service/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 51: warning: exported function Broker should have comment or be unexported (golint)
    • Line 60: warning: exported function Client should have comment or be unexported (golint)
    • Line 75: warning: exported function Server should have comment or be unexported (golint)
    • Line 198: warning: exported function BeforeStart should have comment or be unexported (golint)
    • Line 204: warning: exported function BeforeStop should have comment or be unexported (golint)
    • Line 210: warning: exported function AfterStart should have comment or be unexported (golint)
    • Line 216: warning: exported function AfterStop should have comment or be unexported (golint)
    • go-micro/sync/leader/leader.go
    • Line 12: warning: exported type Elected should have comment or be unexported (golint)
    • Line 23: warning: exported type Option should have comment or be unexported (golint)
    • Line 25: warning: exported type ElectOption should have comment or be unexported (golint)
    • go-micro/client/selector/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported type SelectOptions should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function WithStrategy should be of the form "WithStrategy ..." (golint)
    • go-micro/sync/time/local/local.go
    • Line 10: warning: exported type Time should have comment or be unexported (golint)
    • Line 12: warning: exported method Time.Now should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTime should have comment or be unexported (golint)
    • go-micro/util/http/options.go
    • Line 7: warning: exported type Options should have comment or be unexported (golint)
    • Line 11: warning: exported type Option should have comment or be unexported (golint)
    • Line 13: warning: exported function WithRegistry should have comment or be unexported (golint)
    • go-micro/client/pool/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported type Option should have comment or be unexported (golint)
    • Line 17: warning: exported function Size should have comment or be unexported (golint)
    • Line 23: warning: exported function Transport should have comment or be unexported (golint)
    • Line 29: warning: exported function TTL should have comment or be unexported (golint)
    • go-micro/registry/service/handler/handler.go
    • Line 13: warning: exported type Registry should have comment or be unexported (golint)
    • Line 18: warning: exported method Registry.GetService should have comment or be unexported (golint)
    • Line 29: warning: exported method Registry.Register should have comment or be unexported (golint)
    • Line 44: warning: exported method Registry.Deregister should have comment or be unexported (golint)
    • Line 52: warning: exported method Registry.ListServices should have comment or be unexported (golint)
    • Line 63: warning: exported method Registry.Watch should have comment or be unexported (golint)
    • go-micro/registry/memory/memory.go
    • Line 18: warning: exported var DefaultTTL should have comment or be unexported (golint)
    • Line 27: warning: exported type Registry should have comment or be unexported (golint)
    • Line 36: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 137: warning: exported method Registry.Init should have comment or be unexported (golint)
    • Line 152: warning: exported method Registry.Options should have comment or be unexported (golint)
    • Line 156: warning: exported method Registry.GetService should have comment or be unexported (golint)
    • Line 167: warning: exported method Registry.ListServices should have comment or be unexported (golint)
    • Line 177: warning: exported method Registry.Register should have comment or be unexported (golint)
    • Line 200: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 257: warning: exported method Registry.Deregister should have comment or be unexported (golint)
    • Line 287: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 312: warning: exported method Registry.Watch should have comment or be unexported (golint)
    • go-micro/transport/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 77: warning: comment on exported function Secure should be of the form "Secure ..." (golint)
    • Line 92: warning: comment on exported function WithStream should be of the form "WithStream ..." (golint)
    • Line 99: warning: comment on exported function WithTimeout should be of the form "WithTimeout ..." (golint)
    • go-micro/server/grpc/grpc.go
    • Line 290: warning: context.Context should be the first parameter of a function (golint)
    • Line 383: warning: context.Context should be the first parameter of a function (golint)
    • Line 833: warning: exported function NewServer should have comment or be unexported (golint)
    • go-micro/tunnel/options.go
    • Line 14: warning: comment on exported var DefaultToken should be of the form "DefaultToken ..." (golint)
    • Line 18: warning: exported type Option should have comment or be unexported (golint)
    • Line 34: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 36: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 47: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 52: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 59: warning: comment on exported function Address should be of the form "Address ..." (golint)
    • Line 97: warning: comment on exported function ListenMode should be of the form "ListenMode ..." (golint)
    • Line 106: warning: comment on exported function DialMode should be of the form "DialMode ..." (golint)
    • go-micro/codec/text/text.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 21: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 25: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 72: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 80: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/monitor/monitor.go
    • Line 9: warning: exported const StatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type StatusCode should have comment or be unexported (golint)
    • Line 32: warning: exported type Status should have comment or be unexported (golint)
    • Line 39: warning: exported var ErrNotWatching should have comment or be unexported (golint)
    • go-micro/server/mock/mock.go
    • Line 11: warning: exported type MockServer should have comment or be unexported (golint)
    • Line 37: warning: exported method MockServer.Options should have comment or be unexported (golint)
    • Line 44: warning: exported method MockServer.Init should have comment or be unexported (golint)
    • Line 54: warning: exported method MockServer.Handle should have comment or be unexported (golint)
    • Line 65: warning: exported method MockServer.NewHandler should have comment or be unexported (golint)
    • Line 78: warning: exported method MockServer.NewSubscriber should have comment or be unexported (golint)
    • Line 91: warning: exported method MockServer.Subscribe should have comment or be unexported (golint)
    • Line 101: warning: exported method MockServer.Register should have comment or be unexported (golint)
    • Line 105: warning: exported method MockServer.Deregister should have comment or be unexported (golint)
    • Line 109: warning: exported method MockServer.Start should have comment or be unexported (golint)
    • Line 121: warning: exported method MockServer.Stop should have comment or be unexported (golint)
    • Line 137: warning: exported function NewServer should have comment or be unexported (golint)
    • go-micro/api/resolver/path/path.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 14: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 31: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/client/context.go
    • Line 9: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 14: warning: exported function NewContext should have comment or be unexported (golint)
    • go-micro/client/client.go
    • Line 115: warning: comment on exported function Call should be of the form "Call ..." (golint)
    • Line 120: warning: comment on exported function Publish should be of the form "Publish ..." (golint)
    • Line 126: warning: comment on exported function NewMessage should be of the form "NewMessage ..." (golint)
    • Line 131: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 136: warning: comment on exported function NewRequest should be of the form "NewRequest ..." (golint)
    • Line 142: warning: comment on exported function NewStream should be of the form "NewStream ..." (golint)
    • Line 148: warning: exported function String should have comment or be unexported (golint)
    • go-micro/config/options/options.go
    • Line 46: warning: comment on exported method Values.Option should be of the form "Option ..." (golint)
    • Line 63: warning: comment on exported function WithString should be of the form "WithString ..." (golint)
    • go-micro/config/source/options.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported type Option should have comment or be unexported (golint)
    • Line 20: warning: exported function NewOptions should have comment or be unexported (golint)
    • go-micro/codec/json/json.go
    • Line 13: warning: exported type Codec should have comment or be unexported (golint)
    • Line 19: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 23: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 40: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 48: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/sync/lock/lock.go
    • Line 10: warning: exported var ErrLockTimeout should have comment or be unexported (golint)
    • Line 21: warning: exported type Options should have comment or be unexported (golint)
    • Line 26: warning: exported type AcquireOptions should have comment or be unexported (golint)
    • Line 31: warning: exported type Option should have comment or be unexported (golint)
    • Line 32: warning: exported type AcquireOption should have comment or be unexported (golint)
    • go-micro/client/retry.go
    • Line 9: warning: comment on exported type RetryFunc should be of the form "RetryFunc ..." (with optional leading article) (golint)
    • go-micro/runtime/package/docker/docker.go
    • Line 16: warning: exported type Packager should have comment or be unexported (golint)
    • Line 21: warning: exported method Packager.Compile should have comment or be unexported (golint)
    • Line 74: warning: exported method Packager.Delete should have comment or be unexported (golint)
    • Line 79: warning: exported function NewPackager should have comment or be unexported (golint)
    • go-micro/sync/task/broker/broker.go
    • Line 38: warning: exported method Task.Run should have comment or be unexported (golint)
    • Line 180: warning: exported method Task.Status should have comment or be unexported (golint)
    • Line 186: warning: comment on exported function WithBroker should be of the form "WithBroker ..." (golint)
    • go-micro/codec/proto/marshaler.go
    • Line 7: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 9: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 13: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/util/socket/socket.go
    • Line 24: warning: exported method Socket.SetLocal should have comment or be unexported (golint)
    • Line 28: warning: exported method Socket.SetRemote should have comment or be unexported (golint)
    • Line 61: warning: exported method Socket.Remote should have comment or be unexported (golint)
    • Line 65: warning: exported method Socket.Local should have comment or be unexported (golint)
    • Line 69: warning: exported method Socket.Send should have comment or be unexported (golint)
    • Line 94: warning: exported method Socket.Recv should have comment or be unexported (golint)
    • go-micro/codec/bytes/bytes.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 21: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 25: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 63: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 71: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/config/config.go
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • Line 45: warning: comment on exported var DefaultConfig should be of the form "DefaultConfig ..." (golint)
    • Line 54: warning: comment on exported function Bytes should be of the form "Bytes ..." (golint)
    • Line 59: warning: comment on exported function Map should be of the form "Map ..." (golint)
    • Line 69: warning: comment on exported function Sync should be of the form "Sync ..." (golint)
    • go-micro/runtime/package/go/golang.go
    • Line 12: warning: exported type Packager should have comment or be unexported (golint)
    • Line 37: warning: exported method Packager.Compile should have comment or be unexported (golint)
    • Line 53: warning: exported method Packager.Delete should have comment or be unexported (golint)
    • Line 58: warning: exported function NewPackager should have comment or be unexported (golint)
    • go-micro/server/context.go
    • Line 21: warning: exported function FromContext should have comment or be unexported (golint)
    • Line 26: warning: exported function NewContext should have comment or be unexported (golint)
    • go-micro/codec/json/marshaler.go
    • Line 10: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 12: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 16: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/transport/transport.go
    • Line 19: warning: exported type Message should have comment or be unexported (golint)
    • Line 24: warning: exported type Socket should have comment or be unexported (golint)
    • Line 32: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported type Listener should have comment or be unexported (golint)
    • Line 42: warning: exported type Option should have comment or be unexported (golint)
    • Line 44: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 46: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 49: warning: exported var DefaultTransport should have comment or be unexported (golint)
    • Line 54: warning: exported function NewTransport should have comment or be unexported (golint)
    • go-micro/registry/memory/watcher.go
    • Line 9: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 16: warning: exported method Watcher.Next should have comment or be unexported (golint)
    • Line 30: warning: exported method Watcher.Stop should have comment or be unexported (golint)
    • go-micro/server/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 97: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 118: warning: comment on exported function Advertise should be of the form "Advertise ..." (golint)
    • Line 167: warning: comment on exported function RegisterTTL should be of the form "RegisterTTL ..." (golint)
    • Line 174: warning: comment on exported function RegisterInterval should be of the form "RegisterInterval ..." (golint)
    • Line 200: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 204: warning: comment on exported function WrapHandler should be of the form "WrapHandler ..." (golint)
    • Line 211: warning: comment on exported function WrapSubscriber should be of the form "WrapSubscriber ..." (golint)
    • go-micro/runtime/service/handler/handler.go
    • Line 11: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 35: warning: exported method Runtime.Create should have comment or be unexported (golint)
    • Line 50: warning: exported method Runtime.Update should have comment or be unexported (golint)
    • Line 65: warning: exported method Runtime.Delete should have comment or be unexported (golint)
    • Line 80: warning: exported method Runtime.List should have comment or be unexported (golint)
    • go-micro/server/mock/mock_subscriber.go
    • Line 8: warning: exported type MockSubscriber should have comment or be unexported (golint)
    • Line 14: warning: exported method MockSubscriber.Topic should have comment or be unexported (golint)
    • Line 18: warning: exported method MockSubscriber.Subscriber should have comment or be unexported (golint)
    • Line 22: warning: exported method MockSubscriber.Endpoints should have comment or be unexported (golint)
    • Line 26: warning: exported method MockSubscriber.Options should have comment or be unexported (golint)
    • go-micro/sync/sync.go
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 41: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/api/router/options.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported type Option should have comment or be unexported (golint)
    • Line 19: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 39: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 45: warning: exported function WithNamespace should have comment or be unexported (golint)
    • Line 51: warning: exported function WithRegistry should have comment or be unexported (golint)
    • Line 57: warning: exported function WithResolver should have comment or be unexported (golint)
    • go-micro/codec/codec.go
    • Line 9: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 17: warning: comment on exported type NewCodec should be of the form "NewCodec ..." (with optional leading article) (golint)
    • Line 32: warning: exported type Reader should have comment or be unexported (golint)
    • Line 37: warning: exported type Writer should have comment or be unexported (golint)
    • go-micro/codec/grpc/grpc.go
    • Line 15: warning: exported type Codec should have comment or be unexported (golint)
    • Line 20: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 48: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 132: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 140: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/server/handler.go
    • Line 5: warning: exported type HandlerOption should have comment or be unexported (golint)
    • Line 7: warning: exported type HandlerOptions should have comment or be unexported (golint)
    • Line 12: warning: exported type SubscriberOption should have comment or be unexported (golint)
    • Line 14: warning: exported type SubscriberOptions should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function InternalHandler should be of the form "InternalHandler ..." (golint)
    • Line 40: warning: comment on exported function InternalSubscriber should be of the form "InternalSubscriber ..." (golint)
    • Line 47: warning: exported function NewSubscriberOptions should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function SubscriberQueue should be of the form "SubscriberQueue ..." (golint)
    • go-micro/web/web.go
    • Line 21: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: comment on exported var DefaultName should be of the form "DefaultName ..." (golint)
    • Line 26: warning: exported var DefaultVersion should have comment or be unexported (golint)
    • Line 30: warning: comment on exported var DefaultRegisterTTL should be of the form "DefaultRegisterTTL ..." (golint)
    • Line 34: warning: comment on exported var DefaultStaticDir should be of the form "DefaultStaticDir ..." (golint)
    • go-micro/runtime/source/git/git.go
    • Line 19: warning: exported method Source.Fetch should have comment or be unexported (golint)
    • Line 63: warning: exported method Source.Commit should have comment or be unexported (golint)
    • Line 76: warning: exported function NewSource should have comment or be unexported (golint)
    • go-micro/registry/registry.go
    • Line 9: warning: exported var DefaultRegistry should have comment or be unexported (golint)
    • Line 11: warning: comment on exported var ErrNotFound should be of the form "ErrNotFound ..." (golint)
    • Line 13: warning: comment on exported var ErrWatcherStopped should be of the form "ErrWatcherStopped ..." (golint)
    • Line 17: warning: comment on exported type Registry should be of the form "Registry ..." (with optional leading article) (golint)
    • Line 31: warning: exported type Option should have comment or be unexported (golint)
    • Line 33: warning: exported type RegisterOption should have comment or be unexported (golint)
    • Line 35: warning: exported type WatchOption should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function GetService should be of the form "GetService ..." (golint)
    • Line 52: warning: comment on exported function ListServices should be of the form "ListServices ..." (golint)
    • Line 62: warning: exported function String should have comment or be unexported (golint)
    • go-micro/util/mux/mux.go
    • Line 25: warning: exported method Server.ServeRequest should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • go-micro/server/server.go
    • Line 116: warning: exported type Option should have comment or be unexported (golint)
    • Line 119: warning: exported var DefaultAddress should have comment or be unexported (golint)
    • go-micro/api/handler/broker/broker.go
    • Line 20: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 237: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 250: warning: exported function WithCors should have comment or be unexported (golint)
    • go-micro/api/resolver/vpath/vpath.go
    • Line 13: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 19: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 57: warning: exported function NewResolver should have comment or be unexported (golint)
    • go-micro/config/cmd/cmd.go
    • Line 53: warning: exported type Cmd should have comment or be unexported (golint)
    • Line 68: warning: exported type Option should have comment or be unexported (golint)
    • Line 71: warning: exported var DefaultCmd should have comment or be unexported (golint)
    • Line 522: warning: exported function DefaultOptions should have comment or be unexported (golint)
    • Line 526: warning: exported function App should have comment or be unexported (golint)
    • Line 530: warning: exported function Init should have comment or be unexported (golint)
    • Line 534: warning: exported function NewCmd should have comment or be unexported (golint)
    • go-micro/options.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 54: warning: exported function Broker should have comment or be unexported (golint)
    • Line 63: warning: exported function Cmd should have comment or be unexported (golint)
    • Line 69: warning: exported function Client should have comment or be unexported (golint)
    • Line 84: warning: exported function Server should have comment or be unexported (golint)
    • Line 153: warning: exported function Flags should have comment or be unexported (golint)
    • Line 159: warning: exported function Action should have comment or be unexported (golint)
    • Line 228: warning: exported function BeforeStart should have comment or be unexported (golint)
    • Line 234: warning: exported function BeforeStop should have comment or be unexported (golint)
    • Line 240: warning: exported function AfterStart should have comment or be unexported (golint)
    • Line 246: warning: exported function AfterStop should have comment or be unexported (golint)
    • go-micro/codec/bytes/marshaler.go
    • Line 7: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 9: warning: exported type Message should have comment or be unexported (golint)
    • Line 14: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 27: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • go-micro/debug/profile/profile.go
    • Line 4: warning: exported type Profile should have comment or be unexported (golint)
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/runtime/source/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function Path should be of the form "Path ..." (golint)
    • go-micro/api/handler/web/web.go
    • Line 20: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 164: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 170: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/config/cmd/options.go
    • Line 15: warning: exported type Options should have comment or be unexported (golint)
    • Line 43: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 50: warning: comment on exported function Description should be of the form "Description ..." (golint)
    • Line 57: warning: comment on exported function Version should be of the form "Version ..." (golint)
    • Line 64: warning: exported function Broker should have comment or be unexported (golint)
    • Line 70: warning: exported function Selector should have comment or be unexported (golint)
    • Line 76: warning: exported function Registry should have comment or be unexported (golint)
    • Line 82: warning: exported function Transport should have comment or be unexported (golint)
    • Line 88: warning: exported function Client should have comment or be unexported (golint)
    • Line 94: warning: exported function Server should have comment or be unexported (golint)
    • Line 100: warning: comment on exported function NewBroker should be of the form "NewBroker ..." (golint)
    • Line 107: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 114: warning: comment on exported function NewRegistry should be of the form "NewRegistry ..." (golint)
    • Line 121: warning: comment on exported function NewSelector should be of the form "NewSelector ..." (golint)
    • Line 128: warning: comment on exported function NewServer should be of the form "NewServer ..." (golint)
    • Line 135: warning: comment on exported function NewTransport should be of the form "NewTransport ..." (golint)
    • Line 142: warning: comment on exported function NewRuntime should be of the form "NewRuntime ..." (golint)
    • go-micro/registry/service.go
    • Line 3: warning: exported type Service should have comment or be unexported (golint)
    • Line 11: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 24: warning: exported type Value should have comment or be unexported (golint)
    • go-micro/tunnel/tunnel.go
    • Line 12: warning: comment on exported const Unicast should be of the form "Unicast ..." (golint)
    • Line 14: warning: comment on exported const Multicast should be of the form "Multicast ..." (golint)
    • Line 16: warning: comment on exported const Broadcast should be of the form "Broadcast ..." (golint)
    • Line 72: warning: comment on exported type Listener should be of the form "Listener ..." (with optional leading article) (golint)
    • go-micro/runtime/package/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: comment on exported function Path should be of the form "Path ..." (golint)
    • go-micro/sync/task/task.go
    • Line 32: warning: exported type Options should have comment or be unexported (golint)
    • Line 39: warning: exported type Option should have comment or be unexported (golint)
    • Line 41: warning: exported method Command.Execute should have comment or be unexported (golint)
    • Line 49: warning: exported method Schedule.Run should have comment or be unexported (golint)
    • go-micro/runtime/process/os/os.go
    • Line 13: warning: exported type Process should have comment or be unexported (golint)
    • Line 16: warning: exported method Process.Exec should have comment or be unexported (golint)
    • Line 21: warning: exported method Process.Fork should have comment or be unexported (golint)
    • Line 53: warning: exported method Process.Kill should have comment or be unexported (golint)
    • Line 67: warning: exported method Process.Wait should have comment or be unexported (golint)
    • Line 90: warning: exported function NewProcess should have comment or be unexported (golint)
    • go-micro/router/handler/table.go
    • Line 11: warning: exported type Table should have comment or be unexported (golint)
    • Line 15: warning: exported method Table.Create should have comment or be unexported (golint)
    • Line 32: warning: exported method Table.Update should have comment or be unexported (golint)
    • Line 49: warning: exported method Table.Delete should have comment or be unexported (golint)
    • Line 92: warning: exported method Table.Query should have comment or be unexported (golint)
    • go-micro/store/service/handler/handler.go
    • Line 13: warning: exported type Store should have comment or be unexported (golint)
    • Line 50: warning: exported method Store.Delete should have comment or be unexported (golint)
    • Line 58: warning: exported method Store.List should have comment or be unexported (golint)
    • go-micro/agent/input/telegram/telegram.go
    • Line 23: warning: exported type ChatType should have comment or be unexported (golint)
    • Line 26: warning: exported const Private should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: receiver name p should be consistent with previous receiver name ti for telegramInput (golint)
    • go-micro/micro.go
    • Line 50: warning: exported type Option should have comment or be unexported (golint)
    • Line 53: warning: exported var HeaderPrefix should have comment or be unexported (golint)
    • go-micro/api/server/options.go
    • Line 9: warning: exported type Option should have comment or be unexported (golint)
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 19: warning: exported function EnableACME should have comment or be unexported (golint)
    • Line 25: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 31: warning: exported function ACMEProvider should have comment or be unexported (golint)
    • Line 37: warning: exported function EnableTLS should have comment or be unexported (golint)
    • Line 43: warning: exported function TLSConfig should have comment or be unexported (golint)
    • go-micro/client/mock/mock.go
    • Line 18: warning: exported type MockResponse should have comment or be unexported (golint)
    • Line 24: warning: exported type MockClient should have comment or be unexported (golint)
    • Line 32: warning: exported method MockClient.Init should have comment or be unexported (golint)
    • Line 49: warning: exported method MockClient.Options should have comment or be unexported (golint)
    • Line 53: warning: exported method MockClient.NewMessage should have comment or be unexported (golint)
    • Line 57: warning: exported method MockClient.NewRequest should have comment or be unexported (golint)
    • Line 61: warning: exported method MockClient.Call should have comment or be unexported (golint)
    • Line 101: warning: exported method MockClient.Stream should have comment or be unexported (golint)
    • Line 109: warning: exported method MockClient.Publish should have comment or be unexported (golint)
    • Line 117: warning: exported function NewClient should have comment or be unexported (golint)
    • go-micro/config/loader/loader.go
    • Line 1: warning: package comment should be of the form "Package loader ..." (golint)
    • Line 45: warning: exported type Options should have comment or be unexported (golint)
    • Line 53: warning: exported type Option should have comment or be unexported (golint)
    • go-micro/api/handler/api/api.go
    • Line 22: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 111: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/api/resolver/micro/micro.go
    • Line 10: warning: comment on exported type Resolver should be of the form "Resolver ..." (with optional leading article) (golint)
    • Line 18: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-micro/codec/proto/proto.go
    • Line 12: warning: exported type Codec should have comment or be unexported (golint)
    • Line 16: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 20: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 44: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 52: warning: exported function NewCodec should have comment or be unexported (golint)
    • go-micro/debug/handler/debug.go
    • Line 11: warning: exported type Debug should have comment or be unexported (golint)
    • Line 17: warning: exported var DefaultHandler should have comment or be unexported (golint)
    • Line 26: warning: exported method Debug.Health should have comment or be unexported (golint)
    • Line 31: warning: exported method Debug.Stats should have comment or be unexported (golint)
    • go-micro/web/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 75: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 103: warning: comment on exported function Advertise should be of the form "Advertise ..." (golint)
    • Line 119: warning: exported function Registry should have comment or be unexported (golint)
    • Line 125: warning: exported function RegisterTTL should have comment or be unexported (golint)
    • Line 131: warning: exported function RegisterInterval should have comment or be unexported (golint)
    • Line 137: warning: exported function Handler should have comment or be unexported (golint)
    • Line 143: warning: exported function Server should have comment or be unexported (golint)
    • go-micro/monitor/options.go
    • Line 8: warning: exported type Options should have comment or be unexported (golint)
    • Line 13: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: exported function Client should have comment or be unexported (golint)
    • Line 21: warning: exported function Registry should have comment or be unexported (golint)
    • go-micro/broker/options.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 21: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 27: warning: exported type SubscribeOptions should have comment or be unexported (golint)
    • Line 41: warning: exported type Option should have comment or be unexported (golint)
    • Line 43: warning: exported type PublishOption should have comment or be unexported (golint)
    • Line 45: warning: exported type SubscribeOption should have comment or be unexported (golint)
    • Line 51: warning: exported function NewSubscribeOptions should have comment or be unexported (golint)
    • Line 93: warning: exported function Registry should have comment or be unexported (golint)
    • Line 95: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 106: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • go-micro/registry/cache/cache.go
    • Line 22: warning: exported type Options should have comment or be unexported (golint)
    • Line 27: warning: exported type Option should have comment or be unexported (golint)
    • Line 51: warning: exported var DefaultTTL should have comment or be unexported (golint)
    • go-micro/broker/broker.go
    • Line 21: warning: exported type Message should have comment or be unexported (golint)
    • Line 41: warning: exported var DefaultBroker should have comment or be unexported (golint)
    • Line 44: warning: exported function NewBroker should have comment or be unexported (golint)
    • Line 48: warning: exported function Init should have comment or be unexported (golint)
    • Line 52: warning: exported function Connect should have comment or be unexported (golint)
    • Line 56: warning: exported function Disconnect should have comment or be unexported (golint)
    • Line 60: warning: exported function Publish should have comment or be unexported (golint)
    • Line 64: warning: exported function Subscribe should have comment or be unexported (golint)
    • Line 68: warning: exported function String should have comment or be unexported (golint)
    • go-micro/plugin/plugin.go
    • Line 27: warning: comment on exported var DefaultPlugin should be of the form "DefaultPlugin ..." (golint)
    • Line 36: warning: exported function Build should have comment or be unexported (golint)
    • Line 40: warning: exported function Load should have comment or be unexported (golint)
    • Line 44: warning: exported function Init should have comment or be unexported (golint)
    • go-micro/agent/input/input.go
    • Line 8: warning: exported type EventType should have comment or be unexported (golint)
    • Line 11: warning: exported const TextEvent should have comment (or a comment on this block) or be unexported (golint)
    • go-micro/api/handler/rpc/rpc.go
    • Line 27: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 186: warning: receiver name rh should be consistent with previous receiver name h for rpcHandler (golint)
    • Line 296: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 303: warning: exported function WithService should have comment or be unexported (golint)
    • go-micro/client/options.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 43: warning: exported type CallOptions should have comment or be unexported (golint)
    • Line 67: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 75: warning: exported type MessageOptions should have comment or be unexported (golint)
    • Line 79: warning: exported type RequestOptions should have comment or be unexported (golint)
    • Line 145: warning: comment on exported function ContentType should be of the form "ContentType ..." (golint)
    • Line 159: warning: comment on exported function PoolTTL should be of the form "PoolTTL ..." (golint)
    • Line 180: warning: comment on exported function Selector should be of the form "Selector ..." (golint)
    • Line 187: warning: comment on exported function Wrap should be of the form "Wrap ..." (golint)
    • Line 194: warning: comment on exported function WrapCall should be of the form "WrapCall ..." (golint)
    • Line 209: warning: comment on exported function Retries should be of the form "Retries ..." (golint)
    • Line 224: warning: comment on exported function RequestTimeout should be of the form "RequestTimeout ..." (golint)
    • Line 232: warning: comment on exported function DialTimeout should be of the form "DialTimeout ..." (golint)
    • Line 255: warning: exported function WithSelectOption should have comment or be unexported (golint)
    • Line 310: warning: exported function WithContentType should have comment or be unexported (golint)
    • Line 316: warning: exported function StreamingRequest should have comment or be unexported (golint)

gocyclo93%

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.

    • go-micro/network/default.go
    • Line 340: warning: cyclomatic complexity 26 of function (*network).processNetChan() is high (> 15) (gocyclo)
    • Line 736: warning: cyclomatic complexity 19 of function (*network).processCtrlChan() is high (> 15) (gocyclo)
    • go-micro/tunnel/default.go
    • Line 427: warning: cyclomatic complexity 44 of function (*tun).listen() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 24 of function (*tun).process() is high (> 15) (gocyclo)
    • Line 1002: warning: cyclomatic complexity 18 of function (*tun).Dial() is high (> 15) (gocyclo)
    • go-micro/server/rpc_server.go
    • Line 66: warning: cyclomatic complexity 29 of function (*rpcServer).ServeConn() is high (> 15) (gocyclo)
    • Line 420: warning: cyclomatic complexity 21 of function (*rpcServer).Register() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 20 of function (*rpcServer).Start() is high (> 15) (gocyclo)
    • go-micro/server/grpc/grpc.go
    • Line 515: warning: cyclomatic complexity 18 of function (*grpcServer).Register() is high (> 15) (gocyclo)
    • Line 168: warning: cyclomatic complexity 16 of function (*grpcServer).handler() is high (> 15) (gocyclo)

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!