Preparing report...

Report for github.com/micro-community/micro

A+    Excellent!    Found 258 issues across 581 files

Tweet

gofmt97%

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!


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.

    • micro/cmd/cli/commands.go
    • Line 52: warning: cyclomatic complexity 21 of function QueryStats() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 19 of function GetService() is high (> 15) (gocyclo)
    • micro/service/runtime/kubernetes/kubernetes.go
    • Line 157: warning: cyclomatic complexity 25 of function (*kubernetes).create() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 22 of function (*kubernetes).Update() is high (> 15) (gocyclo)
    • Line 401: warning: cyclomatic complexity 20 of function (*kubernetes).Delete() is high (> 15) (gocyclo)
    • micro/test/config_test.go
    • Line 19: warning: cyclomatic complexity 49 of function testConfig() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 22 of function testConfigReadFromService() is high (> 15) (gocyclo)
    • micro/service/runtime/manager/manager.go
    • Line 671: warning: cyclomatic complexity 22 of function (*manager).Update() is high (> 15) (gocyclo)
    • Line 486: warning: cyclomatic complexity 22 of function (*manager).Create() is high (> 15) (gocyclo)
    • Line 800: warning: cyclomatic complexity 21 of function (*manager).Delete() is high (> 15) (gocyclo)
    • micro/cmd/protoc-gen-micro/generator/generator.go
    • Line 1393: warning: cyclomatic complexity 39 of function (*Generator).goTag() is high (> 15) (gocyclo)
    • Line 2123: warning: cyclomatic complexity 33 of function (*Generator).generateMessage() is high (> 15) (gocyclo)
    • Line 1529: warning: cyclomatic complexity 26 of function (*Generator).GoType() is high (> 15) (gocyclo)
    • Line 1904: warning: cyclomatic complexity 22 of function (*Generator).generateDefaultConstants() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 18 of function (*Generator).CommandLineParameters() is high (> 15) (gocyclo)
    • micro/test/runtime_test.go
    • Line 192: warning: cyclomatic complexity 32 of function testRunGithubSource() is high (> 15) (gocyclo)
    • Line 1150: warning: cyclomatic complexity 21 of function testGitSourceUpdateByShortName() is high (> 15) (gocyclo)
    • Line 1336: warning: cyclomatic complexity 20 of function testRunPrivateGenericRemote() is high (> 15) (gocyclo)
    • Line 483: warning: cyclomatic complexity 18 of function testRunLocalUpdateAndCall() is high (> 15) (gocyclo)
    • Line 108: warning: cyclomatic complexity 16 of function testRunAndKill() is high (> 15) (gocyclo)
    • micro/service/network/tunnel/mucp/mucp.go
    • Line 612: warning: cyclomatic complexity 55 of function (*tun).listen() is high (> 15) (gocyclo)
    • Line 1184: warning: cyclomatic complexity 27 of function (*tun).Dial() is high (> 15) (gocyclo)
    • Line 401: warning: cyclomatic complexity 17 of function (*tun).process() is high (> 15) (gocyclo)
    • micro/service/model/store.go
    • Line 514: warning: cyclomatic complexity 25 of function (*model).indexToKey() is high (> 15) (gocyclo)
    • Line 249: warning: cyclomatic complexity 23 of function (*model).Create() is high (> 15) (gocyclo)
    • micro/service/server/mucp/rpc_server.go
    • Line 827: warning: cyclomatic complexity 37 of function (*rpcServer).Start() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 34 of function (*rpcServer).ServeConn() is high (> 15) (gocyclo)
    • Line 530: warning: cyclomatic complexity 31 of function (*rpcServer).Register() is high (> 15) (gocyclo)
    • micro/test/auth_test.go
    • Line 382: warning: cyclomatic complexity 19 of function testUsernameLogin() is high (> 15) (gocyclo)
    • Line 240: warning: cyclomatic complexity 19 of function lockdownSuite() is high (> 15) (gocyclo)
    • micro/service/api/api_test.go
    • Line 29: warning: cyclomatic complexity 25 of function TestEncoding() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 18 of function TestRequestPayloadFromRequest() is high (> 15) (gocyclo)
    • micro/service/network/mucp/mucp.go
    • Line 732: warning: cyclomatic complexity 63 of function (*mucpNetwork).processNetChan() is high (> 15) (gocyclo)
    • Line 1135: warning: cyclomatic complexity 42 of function (*mucpNetwork).manage() is high (> 15) (gocyclo)
    • Line 630: warning: cyclomatic complexity 21 of function (*mucpNetwork).processCtrlChan() is high (> 15) (gocyclo)
    • Line 1402: warning: cyclomatic complexity 16 of function (*mucpNetwork).sendTo() is high (> 15) (gocyclo)
    • micro/service/runtime/client/client.go
    • Line 34: warning: cyclomatic complexity 19 of function (*svc).Create() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 18 of function (*svc).Update() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 18 of function (*svc).Delete() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 17 of function (*svc).Logs() is high (> 15) (gocyclo)
    • micro/service/runtime/handler/handler.go
    • Line 266: warning: cyclomatic complexity 21 of function (*Runtime).Delete() is high (> 15) (gocyclo)
    • Line 137: warning: cyclomatic complexity 21 of function (*Runtime).Create() is high (> 15) (gocyclo)
    • Line 385: warning: cyclomatic complexity 19 of function (*Runtime).Update() is high (> 15) (gocyclo)
    • micro/cmd/cli/run/service.go
    • Line 213: warning: cyclomatic complexity 29 of function runService() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 20 of function getService() is high (> 15) (gocyclo)
    • Line 430: warning: cyclomatic complexity 16 of function updateService() is high (> 15) (gocyclo)
    • micro/plugin/etcd/etcd.go
    • Line 226: warning: cyclomatic complexity 33 of function (*etcdRegistry).registerNode() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 19 of function newClient() is high (> 15) (gocyclo)
    • Line 464: warning: cyclomatic complexity 16 of function (*etcdRegistry).GetService() is high (> 15) (gocyclo)
    • micro/util/router/runtime.go
    • Line 56: warning: cyclomatic complexity 32 of function NewPattern() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 17 of function (Pattern).Match() is high (> 15) (gocyclo)
    • micro/service/server/grpc/grpc.go
    • Line 903: warning: cyclomatic complexity 38 of function (*grpcServer).Start() is high (> 15) (gocyclo)
    • Line 637: warning: cyclomatic complexity 27 of function (*grpcServer).Register() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 23 of function (*grpcServer).handler() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 16 of function (*grpcServer).processRequest() is high (> 15) (gocyclo)
    • micro/service/proxy/mucp/mucp.go
    • Line 510: warning: cyclomatic complexity 21 of function (*Proxy).serveRequest() is high (> 15) (gocyclo)
    • Line 369: warning: cyclomatic complexity 20 of function (*Proxy).ServeRequest() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 17 of function (*Proxy).filterRoutes() is high (> 15) (gocyclo)

golint67%

Golint is a linter for Go source code.

    • micro/service/network/tunnel/tunnel.go
    • Line 26: warning: comment on exported const Unicast should be of the form "Unicast ..." (golint)
    • Line 28: warning: comment on exported const Multicast should be of the form "Multicast ..." (golint)
    • Line 30: warning: comment on exported const Broadcast should be of the form "Broadcast ..." (golint)
    • Line 45: warning: comment on exported var ErrLinkLoopback should be of the form "ErrLinkLoopback ..." (golint)
    • Line 99: warning: comment on exported type Listener should be of the form "Listener ..." (with optional leading article) (golint)
    • micro/service/server/server.go
    • Line 151: warning: exported type Option should have comment or be unexported (golint)
    • Line 154: warning: exported var DefaultAddress should have comment or be unexported (golint)
    • Line 163: warning: comment on exported function Handle should be of the form "Handle ..." (golint)
    • Line 168: warning: comment on exported function NewHandler should be of the form "NewHandler ..." (golint)
    • Line 173: warning: comment on exported function NewSubscriber should be of the form "NewSubscriber ..." (golint)
    • Line 178: warning: comment on exported function Subscribe should be of the form "Subscribe ..." (golint)
    • micro/service/server/mock/subscriber.go
    • Line 24: warning: exported type MockSubscriber should have comment or be unexported (golint)
    • Line 30: warning: exported method MockSubscriber.Topic should have comment or be unexported (golint)
    • Line 34: warning: exported method MockSubscriber.Subscriber should have comment or be unexported (golint)
    • Line 38: warning: exported method MockSubscriber.Endpoints should have comment or be unexported (golint)
    • Line 42: warning: exported method MockSubscriber.Options should have comment or be unexported (golint)
    • micro/util/codec/text/text.go
    • Line 26: warning: exported type Codec should have comment or be unexported (golint)
    • Line 35: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 39: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 82: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 90: warning: exported function NewCodec should have comment or be unexported (golint)
    • micro/service/logger/helper.go
    • Line 27: warning: exported function NewHelper should have comment or be unexported (golint)
    • Line 31: warning: exported method Helper.Info should have comment or be unexported (golint)
    • Line 38: warning: exported method Helper.Infof should have comment or be unexported (golint)
    • Line 45: warning: exported method Helper.Trace should have comment or be unexported (golint)
    • Line 52: warning: exported method Helper.Tracef should have comment or be unexported (golint)
    • Line 59: warning: exported method Helper.Debug should have comment or be unexported (golint)
    • Line 66: warning: exported method Helper.Debugf should have comment or be unexported (golint)
    • Line 73: warning: exported method Helper.Warn should have comment or be unexported (golint)
    • Line 80: warning: exported method Helper.Warnf should have comment or be unexported (golint)
    • Line 94: warning: exported method Helper.Errorf should have comment or be unexported (golint)
    • Line 101: warning: exported method Helper.Fatal should have comment or be unexported (golint)
    • Line 109: warning: exported method Helper.Fatalf should have comment or be unexported (golint)
    • Line 117: warning: exported method Helper.WithError should have comment or be unexported (golint)
    • micro/util/muxer/muxer.go
    • Line 25: warning: exported type Handler should have comment or be unexported (golint)
    • Line 35: warning: exported method Server.ProcessMessage should have comment or be unexported (golint)
    • Line 42: warning: exported method Server.ServeRequest should have comment or be unexported (golint)
    • Line 49: warning: exported function New should have comment or be unexported (golint)
    • micro/service/debug/handler/handler.go
    • Line 25: warning: exported type Debug should have comment or be unexported (golint)
    • Line 36: warning: exported method Debug.Health should have comment or be unexported (golint)
    • Line 41: warning: exported method Debug.Stats should have comment or be unexported (golint)
    • Line 64: warning: exported method Debug.Trace should have comment or be unexported (golint)
    • micro/service/logger/level.go
    • Line 22: warning: exported type Level should have comment or be unexported (golint)
    • Line 83: warning: exported function Info should have comment or be unexported (golint)
    • Line 87: warning: exported function Infof should have comment or be unexported (golint)
    • Line 91: warning: exported function Trace should have comment or be unexported (golint)
    • Line 95: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 99: warning: exported function Debug should have comment or be unexported (golint)
    • Line 103: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 107: warning: exported function Warn should have comment or be unexported (golint)
    • Line 111: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 115: warning: exported function Error should have comment or be unexported (golint)
    • Line 119: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 123: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 128: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 133: warning: comment on exported function V should be of the form "V ..." (golint)
    • micro/util/codec/json/json.go
    • Line 27: warning: exported type Codec should have comment or be unexported (golint)
    • Line 33: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 37: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 54: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 62: warning: exported function NewCodec should have comment or be unexported (golint)
    • micro/service/service.go
    • Line 88: warning: comment on exported method Service.Handle should be of the form "Handle ..." (golint)
    • Line 98: warning: exported method Service.Init should have comment or be unexported (golint)
    • Line 104: warning: exported method Service.Options should have comment or be unexported (golint)
    • Line 108: warning: exported method Service.Client should have comment or be unexported (golint)
    • Line 112: warning: exported method Service.Model should have comment or be unexported (golint)
    • Line 116: warning: exported method Service.Server should have comment or be unexported (golint)
    • Line 124: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 144: warning: exported method Service.Stop should have comment or be unexported (golint)
    • micro/service/events/events.go
    • Line 50: warning: exported type AckFunc should have comment or be unexported (golint)
    • Line 51: warning: exported type NackFunc should have comment or be unexported (golint)
    • Line 80: warning: exported method Event.SetAckFunc should have comment or be unexported (golint)
    • Line 89: warning: exported method Event.SetNackFunc should have comment or be unexported (golint)
    • micro/service/api/resolver/subdomain/subdomain.go
    • Line 31: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 36: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 41: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 49: warning: exported method Resolver.Domain should have comment or be unexported (golint)
    • micro/service/registry/options.go
    • Line 23: warning: exported type Option should have comment or be unexported (golint)
    • Line 25: warning: exported type RegisterOption should have comment or be unexported (golint)
    • Line 27: warning: exported type WatchOption should have comment or be unexported (golint)
    • Line 29: warning: exported type DeregisterOption should have comment or be unexported (golint)
    • Line 31: warning: exported type GetOption should have comment or be unexported (golint)
    • Line 33: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 45: warning: exported type RegisterOptions should have comment or be unexported (golint)
    • Line 54: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 65: warning: exported type DeregisterOptions should have comment or be unexported (golint)
    • Line 71: warning: exported type GetOptions should have comment or be unexported (golint)
    • Line 77: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 90: warning: exported function Timeout should have comment or be unexported (golint)
    • Line 103: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • Line 110: warning: exported function RegisterTTL should have comment or be unexported (golint)
    • Line 116: warning: exported function RegisterContext should have comment or be unexported (golint)
    • Line 122: warning: exported function RegisterDomain should have comment or be unexported (golint)
    • Line 128: warning: comment on exported function WatchService should be of the form "WatchService ..." (golint)
    • Line 135: warning: exported function WatchContext should have comment or be unexported (golint)
    • Line 141: warning: exported function WatchDomain should have comment or be unexported (golint)
    • Line 147: warning: exported function DeregisterContext should have comment or be unexported (golint)
    • Line 153: warning: exported function DeregisterDomain should have comment or be unexported (golint)
    • Line 159: warning: exported function GetContext should have comment or be unexported (golint)
    • Line 165: warning: exported function GetDomain should have comment or be unexported (golint)
    • Line 171: warning: exported function ListContext should have comment or be unexported (golint)
    • Line 177: warning: exported function ListDomain should have comment or be unexported (golint)
    • micro/service/runtime/source/options.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function Path should be of the form "Path ..." (golint)
    • micro/util/codec/grpc/grpc.go
    • Line 29: warning: exported type Codec should have comment or be unexported (golint)
    • Line 34: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 62: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 150: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 158: warning: exported function NewCodec should have comment or be unexported (golint)
    • micro/service/server/grpc/grpc.go
    • Line 381: warning: context.Context should be the first parameter of a function (golint)
    • Line 493: warning: context.Context should be the first parameter of a function (golint)
    • Line 1125: warning: exported function NewServer should have comment or be unexported (golint)
    • micro/service/api/api.go
    • Line 53: warning: exported type API should have comment or be unexported (golint)
    • Line 75: warning: exported type Options should have comment or be unexported (golint)
    • Line 86: warning: exported type Option should have comment or be unexported (golint)
    • Line 88: warning: exported type Wrapper should have comment or be unexported (golint)
    • Line 90: warning: exported function WrapHandler should have comment or be unexported (golint)
    • Line 96: warning: exported function EnableCORS should have comment or be unexported (golint)
    • Line 102: warning: exported function EnableACME should have comment or be unexported (golint)
    • Line 108: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 114: warning: exported function ACMEProvider should have comment or be unexported (golint)
    • Line 120: warning: exported function EnableTLS should have comment or be unexported (golint)
    • Line 126: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 132: warning: exported function Resolver should have comment or be unexported (golint)
    • micro/service/debug/log/log.go
    • Line 25: warning: comment on exported var DefaultSize should be of the form "DefaultSize ..." (golint)
    • Line 27: warning: comment on exported var DefaultFormat should be of the form "DefaultFormat ..." (golint)
    • Line 57: warning: comment on exported type FormatFunc should be of the form "FormatFunc ..." (with optional leading article) (golint)
    • micro/service/api/resolver/grpc/grpc.go
    • Line 28: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 32: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 58: warning: exported function NewResolver should have comment or be unexported (golint)
    • micro/util/codec/proto/proto.go
    • Line 26: warning: exported type Codec should have comment or be unexported (golint)
    • Line 30: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 34: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 66: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 74: warning: exported function NewCodec should have comment or be unexported (golint)
    • micro/test/test_framework.go
    • Line 31: warning: error var ignoreThisError should have name of the form errFoo (golint)
    • Line 143: warning: comment on exported function Try should be of the form "Try ..." (golint)
    • Line 235: warning: exported type Options should have comment or be unexported (golint)
    • Line 244: warning: exported type Option should have comment or be unexported (golint)
    • Line 246: warning: exported function WithLogin should have comment or be unexported (golint)
    • Line 252: warning: exported function WithDisableAdmin should have comment or be unexported (golint)
    • Line 258: warning: exported function WithNamespace should have comment or be unexported (golint)
    • Line 264: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 269: warning: exported type NewServerFunc should have comment or be unexported (golint)
    • Line 273: warning: exported type ServerDefault should have comment or be unexported (golint)
    • Line 321: warning: comment on exported method ServerBase.Run should be of the form "Run ..." (golint)
    • Line 360: warning: exported method ServerDefault.Run should have comment or be unexported (golint)
    • Line 387: warning: exported method ServerBase.Close should have comment or be unexported (golint)
    • Line 399: warning: exported method ServerDefault.Close should have comment or be unexported (golint)
    • Line 407: warning: exported method ServerBase.Command should have comment or be unexported (golint)
    • Line 415: warning: exported method ServerBase.Env should have comment or be unexported (golint)
    • Line 419: warning: exported method ServerBase.ProxyPort should have comment or be unexported (golint)
    • Line 423: warning: exported method ServerBase.APIPort should have comment or be unexported (golint)
    • Line 427: warning: exported type T should have comment or be unexported (golint)
    • Line 443: warning: comment on exported method T.T should be of the form "T ..." (golint)
    • Line 457: warning: exported method T.Log should have comment or be unexported (golint)
    • Line 462: warning: exported method T.Logf should have comment or be unexported (golint)
    • Line 486: warning: exported method T.Parallel should have comment or be unexported (golint)
    • micro/service/network/tunnel/options.go
    • Line 28: warning: comment on exported var DefaultToken should be of the form "DefaultToken ..." (golint)
    • Line 32: warning: exported type Option should have comment or be unexported (golint)
    • Line 48: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 50: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 61: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 63: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 70: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 77: warning: comment on exported function Address should be of the form "Address ..." (golint)
    • Line 105: warning: comment on exported function ListenMode should be of the form "ListenMode ..." (golint)
    • Line 112: warning: comment on exported function ListenTimeout should be of the form "ListenTimeout ..." (golint)
    • Line 121: warning: comment on exported function DialMode should be of the form "DialMode ..." (golint)
    • micro/service/registry/memory/memory.go
    • Line 47: warning: exported type Registry should have comment or be unexported (golint)
    • Line 135: warning: exported method Registry.Init should have comment or be unexported (golint)
    • Line 171: warning: exported method Registry.Options should have comment or be unexported (golint)
    • Line 175: warning: exported method Registry.Register should have comment or be unexported (golint)
    • Line 268: warning: exported method Registry.Deregister should have comment or be unexported (golint)
    • Line 345: warning: exported method Registry.GetService should have comment or be unexported (golint)
    • Line 407: warning: exported method Registry.ListServices should have comment or be unexported (golint)
    • Line 457: warning: exported method Registry.Watch should have comment or be unexported (golint)
    • micro/service/logger/options.go
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: exported type Options should have comment or be unexported (golint)
    • Line 65: warning: exported function SetOption should have comment or be unexported (golint)
    • micro/service/debug/trace/memory/memory.go
    • Line 26: warning: exported type Tracer should have comment or be unexported (golint)
    • Line 55: warning: exported method Tracer.Start should have comment or be unexported (golint)
    • Line 84: warning: exported method Tracer.Finish should have comment or be unexported (golint)
    • Line 93: warning: exported function NewTracer should have comment or be unexported (golint)
    • micro/service/store/store.go
    • Line 25: warning: comment on exported type Order should be of the form "Order ..." (with optional leading article) (golint)
    • Line 29: warning: exported const OrderAsc should have comment (or a comment on this block) or be unexported (golint)
    • micro/service/server/handler.go
    • Line 21: warning: exported type HandlerOption should have comment or be unexported (golint)
    • Line 23: warning: exported type HandlerOptions should have comment or be unexported (golint)
    • Line 28: warning: exported type SubscriberOption should have comment or be unexported (golint)
    • Line 30: warning: exported type SubscriberOptions should have comment or be unexported (golint)
    • Line 47: warning: comment on exported function InternalHandler should be of the form "InternalHandler ..." (golint)
    • Line 56: warning: comment on exported function InternalSubscriber should be of the form "InternalSubscriber ..." (golint)
    • Line 63: warning: exported function NewSubscriberOptions should have comment or be unexported (golint)
    • Line 84: warning: comment on exported function SubscriberQueue should be of the form "SubscriberQueue ..." (golint)
    • micro/util/codec/codec.go
    • Line 24: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported var ErrInvalidMessage should have comment or be unexported (golint)
    • Line 34: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type NewCodec should be of the form "NewCodec ..." (with optional leading article) (golint)
    • Line 51: warning: exported type Reader should have comment or be unexported (golint)
    • Line 56: warning: exported type Writer should have comment or be unexported (golint)
    • micro/util/pool/pool.go
    • Line 36: warning: exported type Conn should have comment or be unexported (golint)
    • Line 45: warning: exported function NewPool should have comment or be unexported (golint)
    • micro/cmd/cli/commands.go
    • Line 228: warning: exported function GetService should have comment or be unexported (golint)
    • Line 308: warning: exported function ListServices should have comment or be unexported (golint)
    • Line 336: warning: exported function Publish should have comment or be unexported (golint)
    • Line 363: warning: exported function CallService should have comment or be unexported (golint)
    • Line 435: warning: exported function QueryHealth should have comment or be unexported (golint)
    • micro/util/auth/token/options.go
    • Line 35: warning: exported type Option should have comment or be unexported (golint)
    • Line 58: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 70: warning: exported type GenerateOptions should have comment or be unexported (golint)
    • Line 75: warning: exported type GenerateOption should have comment or be unexported (golint)
    • micro/service/api/resolver/host/host.go
    • Line 26: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 30: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 47: warning: exported function NewResolver should have comment or be unexported (golint)
    • micro/service/client/grpc/options.go
    • Line 56: warning: comment on exported function PoolMaxStreams should be of the form "PoolMaxStreams ..." (golint)
    • Line 66: warning: comment on exported function PoolMaxIdle should be of the form "PoolMaxIdle ..." (golint)
    • Line 76: warning: comment on exported function Codec should be of the form "Codec ..." (golint)
    • micro/service/registry/registry.go
    • Line 52: warning: exported type Service should have comment or be unexported (golint)
    • Line 60: warning: exported type Node should have comment or be unexported (golint)
    • Line 66: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 73: warning: exported type Value should have comment or be unexported (golint)
    • micro/util/cache/cache.go
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 77: warning: exported function SetOptions should have comment or be unexported (golint)
    • Line 84: warning: exported function GetOptions should have comment or be unexported (golint)
    • Line 92: warning: exported function CallOption should have comment or be unexported (golint)
    • Line 101: warning: exported function CallExpiry should have comment or be unexported (golint)
    • micro/util/sync/sync.go
    • Line 24: warning: exported var ErrLockTimeout should have comment or be unexported (golint)
    • Line 51: warning: exported type Options should have comment or be unexported (golint)
    • Line 56: warning: exported type Option should have comment or be unexported (golint)
    • Line 58: warning: exported type LeaderOptions should have comment or be unexported (golint)
    • Line 60: warning: exported type LeaderOption should have comment or be unexported (golint)
    • Line 62: warning: exported type LockOptions should have comment or be unexported (golint)
    • Line 67: warning: exported type LockOption should have comment or be unexported (golint)
    • micro/service/client/options.go
    • Line 35: warning: exported type Options should have comment or be unexported (golint)
    • Line 101: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 109: warning: exported type MessageOptions should have comment or be unexported (golint)
    • Line 113: warning: exported type RequestOptions should have comment or be unexported (golint)
    • Line 122: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 164: warning: comment on exported function ContentType should be of the form "ContentType ..." (golint)
    • Line 220: warning: comment on exported function Wrap should be of the form "Wrap ..." (golint)
    • Line 227: warning: comment on exported function WrapCall should be of the form "WrapCall ..." (golint)
    • Line 249: warning: comment on exported function Retries should be of the form "Retries ..." (golint)
    • Line 264: warning: comment on exported function RequestTimeout should be of the form "RequestTimeout ..." (golint)
    • Line 279: warning: comment on exported function DialTimeout should be of the form "DialTimeout ..." (golint)
    • Line 399: warning: exported function WithMessageContentType should have comment or be unexported (golint)
    • Line 407: warning: exported function WithContentType should have comment or be unexported (golint)
    • Line 413: warning: exported function StreamingRequest should have comment or be unexported (golint)
    • micro/service/runtime/source/git/git.go
    • Line 38: warning: exported type Gitter should have comment or be unexported (golint)
    • Line 291: warning: exported function NewGitter should have comment or be unexported (golint)
    • Line 379: warning: comment on exported method Source.RuntimeName should be of the form "RuntimeName ..." (golint)
    • Line 389: warning: comment on exported method Source.RuntimeSource should be of the form "RuntimeSource ..." (golint)
    • micro/util/helper/helper.go
    • Line 17: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 27: warning: exported function RequestToContext should have comment or be unexported (golint)
    • Line 36: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 81: warning: exported function UnexpectedCommand should have comment or be unexported (golint)
    • Line 86: warning: exported function MissingCommand should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function Subcommand should be of the form "Subcommand ..." (golint)
    • micro/service/api/resolver/vpath/vpath.go
    • Line 29: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 33: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 41: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • micro/service/network/transport/transport.go
    • Line 33: warning: exported type Message should have comment or be unexported (golint)
    • Line 38: warning: exported type Socket should have comment or be unexported (golint)
    • Line 46: warning: exported type Client should have comment or be unexported (golint)
    • Line 50: warning: exported type Listener should have comment or be unexported (golint)
    • Line 56: warning: exported type Option should have comment or be unexported (golint)
    • Line 58: warning: exported type DialOption should have comment or be unexported (golint)
    • Line 60: warning: exported type ListenOption should have comment or be unexported (golint)
    • Line 63: warning: exported var DefaultDialTimeout should have comment or be unexported (golint)
    • micro/service/server/mock/handler.go
    • Line 24: warning: exported type MockHandler should have comment or be unexported (golint)
    • Line 30: warning: exported method MockHandler.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method MockHandler.Handler should have comment or be unexported (golint)
    • Line 38: warning: exported method MockHandler.Endpoints should have comment or be unexported (golint)
    • Line 42: warning: exported method MockHandler.Options should have comment or be unexported (golint)
    • micro/cmd/usage/client/main.go
    • Line 13: warning: exported type Result should have comment or be unexported (golint)
    • Line 139: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • micro/cmd/protoc-gen-micro/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 253: warning: exported method ImportedDescriptor.TypeName should have comment or be unexported (golint)
    • Line 553: warning: comment on exported function RegisterUniquePackageName should be of the form "RegisterUniquePackageName ..." (golint)
    • Line 963: warning: comment on exported method Generator.ObjectNamed should be of the form "ObjectNamed ..." (golint)
    • Line 1586: warning: exported method Generator.RecordTypeUse should have comment or be unexported (golint)
    • micro/service/registry/memory/watcher.go
    • Line 23: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 30: warning: exported method Watcher.Next should have comment or be unexported (golint)
    • Line 60: warning: exported method Watcher.Stop should have comment or be unexported (golint)
    • micro/service/api/handler/api/api.go
    • Line 38: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 124: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 131: warning: exported function WithService should have comment or be unexported (golint)
    • micro/util/socket/pool.go
    • Line 23: warning: exported type Pool should have comment or be unexported (golint)
    • Line 28: warning: exported method Pool.Get should have comment or be unexported (golint)
    • Line 54: warning: exported method Pool.Release should have comment or be unexported (golint)
    • micro/service/config/config.go
    • Line 46: warning: exported type Options should have comment or be unexported (golint)
    • Line 50: warning: exported type Option should have comment or be unexported (golint)
    • Line 52: warning: exported function Secret should have comment or be unexported (golint)
    • Line 58: warning: exported type Secrets should have comment or be unexported (golint)
    • micro/service/context/metadata/metadata.go
    • Line 30: warning: exported method Metadata.Get should have comment or be unexported (golint)
    • Line 42: warning: exported method Metadata.Set should have comment or be unexported (golint)
    • Line 46: warning: exported method Metadata.Delete should have comment or be unexported (golint)
    • micro/plugin/nats/broker/json.go
    • Line 31: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 33: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 45: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • micro/service/logger/logger.go
    • Line 15: warning: package comment should be of the form "Package logger ..." (golint)
    • Line 19: warning: comment on exported var DefaultLogger should be of the form "DefaultLogger ..." (golint)
    • Line 39: warning: exported function Init should have comment or be unexported (golint)
    • Line 43: warning: exported function Fields should have comment or be unexported (golint)
    • Line 47: warning: exported function Log should have comment or be unexported (golint)
    • Line 51: warning: exported function Logf should have comment or be unexported (golint)
    • Line 55: warning: exported function String should have comment or be unexported (golint)
    • micro/util/socket/socket.go
    • Line 41: warning: exported method Socket.SetLocal should have comment or be unexported (golint)
    • Line 45: warning: exported method Socket.SetRemote should have comment or be unexported (golint)
    • Line 77: warning: exported method Socket.Remote should have comment or be unexported (golint)
    • Line 81: warning: exported method Socket.Local should have comment or be unexported (golint)
    • Line 85: warning: exported method Socket.Send should have comment or be unexported (golint)
    • Line 96: warning: exported method Socket.Recv should have comment or be unexported (golint)
    • micro/cmd/cmd.go
    • Line 18: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • micro/service/debug/profile/profile.go
    • Line 18: warning: exported type Profile should have comment or be unexported (golint)
    • Line 28: warning: exported var DefaultProfile should have comment or be unexported (golint)
    • Line 45: warning: exported type Options should have comment or be unexported (golint)
    • Line 50: warning: exported type Option should have comment or be unexported (golint)
    • micro/service/api/resolver/path/path.go
    • Line 27: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 31: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • Line 54: warning: exported function NewResolver should have comment or be unexported (golint)
    • micro/plugin/redis/broker/json.go
    • Line 31: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 33: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 45: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • micro/util/codec/proto/marshaler.go
    • Line 28: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 30: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 50: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • micro/service/api/handler/web/web.go
    • Line 37: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 184: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 190: warning: exported function WithService should have comment or be unexported (golint)
    • micro/service/broker/handler/handler.go
    • Line 15: warning: exported type Broker should have comment or be unexported (golint)
    • Line 17: warning: exported method Broker.Publish should have comment or be unexported (golint)
    • Line 55: warning: exported method Broker.Subscribe should have comment or be unexported (golint)
    • micro/service/server/mock/mock.go
    • Line 27: warning: exported type MockServer should have comment or be unexported (golint)
    • Line 53: warning: exported method MockServer.Options should have comment or be unexported (golint)
    • Line 60: warning: exported method MockServer.Init should have comment or be unexported (golint)
    • Line 70: warning: exported method MockServer.Handle should have comment or be unexported (golint)
    • Line 81: warning: exported method MockServer.NewHandler should have comment or be unexported (golint)
    • Line 94: warning: exported method MockServer.NewSubscriber should have comment or be unexported (golint)
    • Line 107: warning: exported method MockServer.Subscribe should have comment or be unexported (golint)
    • Line 117: warning: exported method MockServer.Register should have comment or be unexported (golint)
    • Line 121: warning: exported method MockServer.Deregister should have comment or be unexported (golint)
    • Line 125: warning: exported method MockServer.Start should have comment or be unexported (golint)
    • Line 137: warning: exported method MockServer.Stop should have comment or be unexported (golint)
    • Line 153: warning: exported function NewServer should have comment or be unexported (golint)
    • micro/plugin/redis/stream/options.go
    • Line 16: warning: exported function Address should have comment or be unexported (golint)
    • Line 22: warning: exported function User should have comment or be unexported (golint)
    • Line 28: warning: exported function Password should have comment or be unexported (golint)
    • Line 34: warning: exported function TLSConfig should have comment or be unexported (golint)
    • micro/util/codec/proto/message.go
    • Line 17: warning: exported type Message should have comment or be unexported (golint)
    • Line 21: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • Line 30: warning: exported method Message.ProtoMessage should have comment or be unexported (golint)
    • Line 32: warning: exported method Message.Reset should have comment or be unexported (golint)
    • Line 40: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 44: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 49: warning: exported function NewMessage should have comment or be unexported (golint)
    • micro/util/pool/options.go
    • Line 25: warning: exported type Options should have comment or be unexported (golint)
    • Line 31: warning: exported type Option should have comment or be unexported (golint)
    • Line 33: warning: exported function Size should have comment or be unexported (golint)
    • Line 39: warning: exported function Transport should have comment or be unexported (golint)
    • Line 45: warning: exported function TTL should have comment or be unexported (golint)
    • micro/service/config/handler/handler.go
    • Line 31: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 52: warning: exported method Config.Get should have comment or be unexported (golint)
    • Line 236: warning: exported method Config.Set should have comment or be unexported (golint)
    • Line 332: warning: exported method Config.Delete should have comment or be unexported (golint)
    • micro/service/api/router/options.go
    • Line 26: 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 34: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 53: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 59: warning: exported function WithRegistry should have comment or be unexported (golint)
    • Line 65: warning: exported function WithResolver should have comment or be unexported (golint)
    • micro/service/runtime/options.go
    • Line 24: warning: exported type Option should have comment or be unexported (golint)
    • Line 68: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 70: warning: exported type ReadOption should have comment or be unexported (golint)
    • Line 279: warning: exported type UpdateOption should have comment or be unexported (golint)
    • Line 281: warning: exported type UpdateOptions should have comment or be unexported (golint)
    • Line 294: warning: comment on exported function UpdateSecret should be of the form "UpdateSecret ..." (golint)
    • Line 333: warning: exported type DeleteOption should have comment or be unexported (golint)
    • Line 335: warning: exported type DeleteOptions should have comment or be unexported (golint)
    • Line 371: warning: comment on exported function LogsCount should be of the form "LogsCount ..." (golint)
    • micro/service/runtime/kubernetes/client/types.go
    • Line 17: warning: comment on exported type ContainerPort should be of the form "ContainerPort ..." (with optional leading article) (golint)
    • Line 44: warning: exported type Condition should have comment or be unexported (golint)
    • Line 95: warning: comment on exported type DeploymentList should be of the form "DeploymentList ..." (with optional leading article) (golint)
    • Line 106: warning: exported type LoadBalancerIngress should have comment or be unexported (golint)
    • Line 111: warning: exported type LoadBalancerStatus should have comment or be unexported (golint)
    • Line 132: warning: comment on exported type PodList should be of the form "PodList ..." (with optional leading article) (golint)
    • Line 144: warning: comment on exported type PodStatus should be of the form "PodStatus ..." (with optional leading article) (golint)
    • Line 160: warning: exported type ContainerStatus should have comment or be unexported (golint)
    • Line 164: warning: exported type ContainerState should have comment or be unexported (golint)
    • Line 192: warning: comment on exported type ServiceStatus should be of the form "ServiceStatus ..." (with optional leading article) (golint)
    • Line 204: warning: comment on exported type ServiceList should be of the form "ServiceList ..." (with optional leading article) (golint)
    • Line 220: warning: comment on exported type NamespaceList should be of the form "NamespaceList ..." (with optional leading article) (golint)
    • Line 225: warning: comment on exported type ImagePullSecret should be of the form "ImagePullSecret ..." (with optional leading article) (golint)
    • Line 230: warning: comment on exported type Secret should be of the form "Secret ..." (with optional leading article) (golint)
    • Line 237: warning: comment on exported type ServiceAccount should be of the form "ServiceAccount ..." (with optional leading article) (golint)
    • Line 312: warning: comment on exported type Selector should be of the form "Selector ..." (with optional leading article) (golint)
    • Line 323: warning: comment on exported type ResourceQuotaSpec should be of the form "ResourceQuotaSpec ..." (with optional leading article) (golint)
    • micro/util/codec/json/marshaler.go
    • Line 31: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 33: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 45: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • micro/plugin/plugin.go
    • Line 33: warning: exported type PluginOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type PluginOption should have comment or be unexported (golint)
    • micro/service/api/handler/rpc/rpc.go
    • Line 38: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 199: warning: receiver name rh should be consistent with previous receiver name h for rpcHandler (golint)
    • Line 274: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 281: warning: exported function WithService should have comment or be unexported (golint)
    • micro/service/broker/options.go
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 40: warning: exported type PublishOptions should have comment or be unexported (golint)
    • Line 46: warning: exported type SubscribeOptions should have comment or be unexported (golint)
    • Line 60: warning: exported type Option should have comment or be unexported (golint)
    • Line 62: warning: exported type PublishOption should have comment or be unexported (golint)
    • Line 71: warning: exported type SubscribeOption should have comment or be unexported (golint)
    • Line 73: warning: exported function NewSubscribeOptions should have comment or be unexported (golint)
    • Line 98: warning: comment on exported function HandleError should be of the form "HandleError ..." (golint)
    • Line 113: warning: exported function Registry should have comment or be unexported (golint)
    • Line 126: warning: comment on exported function TLSConfig should be of the form "TLSConfig ..." (golint)
    • micro/util/codec/bytes/bytes.go
    • Line 26: warning: exported type Codec should have comment or be unexported (golint)
    • Line 35: warning: exported method Codec.ReadHeader should have comment or be unexported (golint)
    • Line 39: warning: exported method Codec.ReadBody should have comment or be unexported (golint)
    • Line 76: warning: exported method Codec.Close should have comment or be unexported (golint)
    • Line 84: warning: exported function NewCodec should have comment or be unexported (golint)
    • micro/service/debug/trace/options.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 22: warning: exported type Option should have comment or be unexported (golint)
    • Line 24: warning: exported type ReadOptions should have comment or be unexported (golint)
    • Line 29: warning: exported type ReadOption should have comment or be unexported (golint)
    • Line 31: warning: comment on exported function ReadTrace should be of the form "ReadTrace ..." (golint)
    • micro/service/events/handler/stream.go
    • Line 17: warning: exported type Stream should have comment or be unexported (golint)
    • Line 19: warning: exported method Stream.Publish should have comment or be unexported (golint)
    • Line 59: warning: exported method Stream.Consume should have comment or be unexported (golint)
    • micro/service/config/value.go
    • Line 27: warning: exported type JSONValues should have comment or be unexported (golint)
    • Line 32: warning: exported type JSONValue should have comment or be unexported (golint)
    • Line 36: warning: exported function NewJSONValues should have comment or be unexported (golint)
    • Line 45: warning: exported function NewJSONValue should have comment or be unexported (golint)
    • Line 54: warning: exported method JSONValues.Get should have comment or be unexported (golint)
    • Line 59: warning: exported method JSONValues.Delete should have comment or be unexported (golint)
    • Line 78: warning: exported method JSONValues.Set should have comment or be unexported (golint)
    • Line 83: warning: exported method JSONValues.Bytes should have comment or be unexported (golint)
    • Line 88: warning: exported method JSONValues.Map should have comment or be unexported (golint)
    • Line 93: warning: exported method JSONValues.Scan should have comment or be unexported (golint)
    • Line 105: warning: exported method JSONValue.Bool should have comment or be unexported (golint)
    • Line 124: warning: exported method JSONValue.Int should have comment or be unexported (golint)
    • Line 147: warning: exported method JSONValue.Float64 should have comment or be unexported (golint)
    • Line 166: warning: exported method JSONValue.Duration should have comment or be unexported (golint)
    • Line 180: warning: exported method JSONValue.StringSlice should have comment or be unexported (golint)
    • Line 191: warning: exported method JSONValue.Exists should have comment or be unexported (golint)
    • Line 195: warning: exported method JSONValue.StringMap should have comment or be unexported (golint)
    • Line 210: warning: exported method JSONValue.Scan should have comment or be unexported (golint)
    • Line 218: warning: exported method JSONValue.Bytes should have comment or be unexported (golint)
    • micro/service/runtime/source/go/golang.go
    • Line 27: warning: exported type Source should have comment or be unexported (golint)
    • Line 34: warning: exported method Source.Fetch should have comment or be unexported (golint)
    • Line 86: warning: exported function NewSource should have comment or be unexported (golint)
    • micro/service/server/options.go
    • Line 36: warning: exported type Options should have comment or be unexported (golint)
    • Line 118: warning: comment on exported function Name should be of the form "Name ..." (golint)
    • Line 132: warning: comment on exported function Id should be of the form "Id ..." (golint)
    • Line 153: warning: comment on exported function Advertise should be of the form "Advertise ..." (golint)
    • Line 225: warning: comment on exported function RegisterTTL should be of the form "RegisterTTL ..." (golint)
    • Line 232: warning: comment on exported function RegisterInterval should be of the form "RegisterInterval ..." (golint)
    • Line 278: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 282: warning: comment on exported function WrapHandler should be of the form "WrapHandler ..." (golint)
    • Line 289: warning: comment on exported function WrapSubscriber should be of the form "WrapSubscriber ..." (golint)
    • micro/util/codec/bytes/marshaler.go
    • Line 21: warning: exported type Marshaler should have comment or be unexported (golint)
    • Line 23: warning: exported type Message should have comment or be unexported (golint)
    • Line 28: warning: exported method Marshaler.Marshal should have comment or be unexported (golint)
    • Line 40: warning: exported method Marshaler.Unmarshal should have comment or be unexported (golint)
    • micro/plugin/redis/broker/options.go
    • Line 23: warning: exported function Address should have comment or be unexported (golint)
    • Line 29: warning: exported function User should have comment or be unexported (golint)
    • Line 35: warning: exported function Password should have comment or be unexported (golint)
    • Line 41: warning: exported function TLSConfig should have comment or be unexported (golint)
    • Line 47: warning: exported function RedisOptions should have comment or be unexported (golint)
    • micro/service/model/query.go
    • Line 12: warning: comment on exported function QueryEquals should be of the form "QueryEquals ..." (golint)
    • Line 32: warning: exported function QueryAll should have comment or be unexported (golint)
    • micro/service/runtime/local/process/os/os.go
    • Line 31: warning: exported method Process.Exec should have comment or be unexported (golint)
    • Line 37: warning: exported method Process.Fork should have comment or be unexported (golint)
    • Line 82: warning: exported method Process.Kill should have comment or be unexported (golint)
    • Line 96: warning: exported method Process.Wait should have comment or be unexported (golint)
    • micro/service/network/transport/options.go
    • Line 25: warning: exported type Options should have comment or be unexported (golint)
    • Line 45: warning: exported type DialOptions should have comment or be unexported (golint)
    • Line 60: warning: exported type ListenOptions should have comment or be unexported (golint)
    • Line 91: warning: comment on exported function Secure should be of the form "Secure ..." (golint)
    • Line 106: warning: comment on exported function WithStream should be of the form "WithStream ..." (golint)
    • Line 113: warning: comment on exported function WithTimeout should be of the form "WithTimeout ..." (golint)
    • micro/service/store/file/file.go
    • Line 15: warning: package comment should be of the form "Package file ..." (golint)
    • Line 121: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • Line 298: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • Line 302: warning: receiver name f should be consistent with previous receiver name m for fileStore (golint)
    • micro/service/runtime/kubernetes/client/options.go
    • Line 17: warning: exported type CreateOptions should have comment or be unexported (golint)
    • Line 21: warning: exported type GetOptions should have comment or be unexported (golint)
    • Line 25: warning: exported type UpdateOptions should have comment or be unexported (golint)
    • Line 28: warning: exported type DeleteOptions should have comment or be unexported (golint)
    • Line 31: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 35: warning: exported type LogOptions should have comment or be unexported (golint)
    • Line 40: warning: exported type WatchOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type CreateOption should have comment or be unexported (golint)
    • Line 46: warning: exported type GetOption should have comment or be unexported (golint)
    • Line 47: warning: exported type UpdateOption should have comment or be unexported (golint)
    • Line 48: warning: exported type DeleteOption should have comment or be unexported (golint)
    • Line 49: warning: exported type ListOption should have comment or be unexported (golint)
    • Line 50: warning: exported type LogOption should have comment or be unexported (golint)
    • Line 51: warning: exported type WatchOption should have comment or be unexported (golint)
    • micro/service/api/handler/options.go
    • Line 26: warning: exported var DefaultMaxRecvSize should have comment or be unexported (golint)
    • Line 29: warning: exported type Options should have comment or be unexported (golint)
    • Line 36: warning: exported type Option should have comment or be unexported (golint)
    • Line 75: warning: exported function WithClient 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.


misspell95%

Misspell Finds commonly misspelled English words

    • micro/cmd/cli/namespace/namespace.go
    • Line 11: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 27: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 53: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 106: warning: "seperator" is a misspelling of "separator" (misspell)