Preparing report...

Report for gomodules.xyz/grpc-go-addons

A    Great!    Found 17 issues across 19 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!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint21%

Golint is a linter for Go source code.

    • /gomodules.xyz/grpc-go-addons/endpoints/grpc.go
    • Line 15: warning: exported type GRPCRegistry should have comment or be unexported (golint)
    • Line 17: warning: exported method GRPCRegistry.Register should have comment or be unexported (golint)
    • Line 27: warning: exported method GRPCRegistry.ApplyTo should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/server/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 33: warning: exported method Config.UseTLS should have comment or be unexported (golint)
    • Line 37: warning: exported method Config.SetGRPCRegistry should have comment or be unexported (golint)
    • Line 41: warning: exported method Config.SetProxyRegistry should have comment or be unexported (golint)
    • Line 45: warning: exported method Config.SetCORSRegistry should have comment or be unexported (golint)
    • Line 49: warning: exported method Config.GRPCServerOption should have comment or be unexported (golint)
    • Line 53: warning: exported method Config.GatewayMuxOption should have comment or be unexported (golint)
    • Line 57: warning: exported method Config.New should have comment or be unexported (golint)
    • Line 57: warning: receiver name c should be consistent with previous receiver name s for Config (golint)
    • /gomodules.xyz/grpc-go-addons/server/server.go
    • Line 20: warning: exported type Server should have comment or be unexported (golint)
    • Line 24: warning: exported method Server.Run should have comment or be unexported (golint)
    • Line 80: warning: exported method Server.NewGatewayMux should have comment or be unexported (golint)
    • Line 101: warning: exported method Server.ServeHTTPS should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/cors/gateway.go
    • Line 13: warning: comment on exported type Handler should be of the form "Handler ..." (with optional leading article) (golint)
    • Line 21: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 25: warning: exported method Handler.RegisterHandler should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/endpoints/gateway.go
    • Line 14: warning: exported type RegisterProxyHandlerFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type ProxyRegistry should have comment or be unexported (golint)
    • Line 22: warning: exported method ProxyRegistry.Register should have comment or be unexported (golint)
    • Line 31: warning: exported method ProxyRegistry.ApplyTo should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/testing/interceptor_suite.go
    • Line 4: warning: don't use an underscore in package name (golint)
    • Line 45: warning: exported method InterceptorTestSuite.SetupSuite should have comment or be unexported (golint)
    • Line 71: warning: exported method InterceptorTestSuite.NewClient should have comment or be unexported (golint)
    • Line 86: warning: exported method InterceptorTestSuite.ServerAddr should have comment or be unexported (golint)
    • Line 90: warning: exported method InterceptorTestSuite.SimpleCtx should have comment or be unexported (golint)
    • Line 95: warning: exported method InterceptorTestSuite.DeadlineCtx should have comment or be unexported (golint)
    • Line 100: warning: exported method InterceptorTestSuite.TearDownSuite should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/testing/pingservice.go
    • Line 8: warning: don't use an underscore in package name (golint)
    • Line 22: warning: comment on exported const DefaultResponseValue should be of the form "DefaultResponseValue ..." (golint)
    • Line 28: warning: exported type TestPingService should have comment or be unexported (golint)
    • Line 32: warning: exported method TestPingService.PingEmpty should have comment or be unexported (golint)
    • Line 36: warning: exported method TestPingService.Ping should have comment or be unexported (golint)
    • Line 41: warning: exported method TestPingService.PingError should have comment or be unexported (golint)
    • Line 46: warning: exported method TestPingService.PingList should have comment or be unexported (golint)
    • Line 57: warning: exported method TestPingService.PingStream should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/server/options/cors.go
    • Line 10: warning: exported type CorsOptions should have comment or be unexported (golint)
    • Line 16: warning: exported function NewCORSOptions should have comment or be unexported (golint)
    • Line 23: warning: exported method CorsOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 29: warning: exported method CorsOptions.AddFlags should have comment or be unexported (golint)
    • Line 35: warning: exported method CorsOptions.ApplyTo should have comment or be unexported (golint)
    • Line 43: warning: exported method CorsOptions.Validate should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/cors/registry.go
    • Line 5: warning: comment on exported type PatternRegistry should be of the form "PatternRegistry ..." (with optional leading article) (golint)
    • Line 10: warning: exported method PatternRegistry.Register should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/server/options/recommended.go
    • Line 10: warning: exported type RecommendedOptions should have comment or be unexported (golint)
    • Line 15: warning: exported function NewRecommendedOptions should have comment or be unexported (golint)
    • Line 22: warning: exported method RecommendedOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 27: warning: exported method RecommendedOptions.AddFlags should have comment or be unexported (golint)
    • Line 32: warning: exported method RecommendedOptions.ApplyTo should have comment or be unexported (golint)
    • Line 42: warning: exported method RecommendedOptions.Validate should have comment or be unexported (golint)
    • /gomodules.xyz/grpc-go-addons/server/options/serving.go
    • Line 10: warning: exported type SecureServingOptions should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSecureServingOptions should have comment or be unexported (golint)
    • Line 26: warning: exported method SecureServingOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 36: warning: exported method SecureServingOptions.AddFlags should have comment or be unexported (golint)
    • Line 42: warning: exported method SecureServingOptions.ApplyTo should have comment or be unexported (golint)
    • Line 53: warning: exported method SecureServingOptions.Validate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell84%

Misspell Finds commonly misspelled English words