Preparing report...

Report for github.com/vaporz/turbo

A    Great!    Found 30 issues across 37 files

Tweet

gofmt72%

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!


gocyclo97%

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.


golint35%

Golint is a linter for Go source code.

    • turbo/thriftserver.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 15: warning: exported type ThriftServer should have comment or be unexported (golint)
    • Line 21: warning: exported function NewThriftServer should have comment or be unexported (golint)
    • Line 91: warning: comment on exported method ThriftServer.Service should be of the form "Service ..." (golint)
    • Line 100: warning: exported method ThriftServer.ServerField should have comment or be unexported (golint)
    • Line 102: warning: exported method ThriftServer.Stop should have comment or be unexported (golint)
    • turbo/grpcserver.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 16: warning: exported type GrpcServer should have comment or be unexported (golint)
    • Line 22: warning: exported function NewGrpcServer should have comment or be unexported (golint)
    • Line 88: warning: comment on exported method GrpcServer.Service should be of the form "Service ..." (golint)
    • Line 96: warning: exported method GrpcServer.ServerField should have comment or be unexported (golint)
    • Line 98: warning: exported method GrpcServer.Stop should have comment or be unexported (golint)
    • turbo/runtime.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 163: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 174: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 368: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 494: warning: exported function BuildRequest should have comment or be unexported (golint)
    • Line 506: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 516: warning: exported function BuildThriftRequest should have comment or be unexported (golint)
    • Line 527: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • turbo/thriftclient.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/turbo/cmd/root.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/log.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/util.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/config.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 50: warning: exported function GetWD should have comment or be unexported (golint)
    • Line 82: warning: exported method Config.ErrorHandler should have comment or be unexported (golint)
    • Line 179: warning: exported method Config.Env should have comment or be unexported (golint)
    • Line 191: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 210: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 215: warning: exported method Config.GrpcServiceNames should have comment or be unexported (golint)
    • Line 220: warning: exported method Config.GrpcServiceHost should have comment or be unexported (golint)
    • Line 224: warning: exported method Config.GrpcServicePort should have comment or be unexported (golint)
    • Line 228: warning: exported method Config.ThriftServiceNames should have comment or be unexported (golint)
    • Line 233: warning: exported method Config.ThriftServiceHost should have comment or be unexported (golint)
    • Line 237: warning: exported method Config.ThriftServicePort should have comment or be unexported (golint)
    • Line 241: warning: exported method Config.HTTPPort should have comment or be unexported (golint)
    • Line 251: warning: exported method Config.FilterProtoJson should have comment or be unexported (golint)
    • Line 259: warning: exported method Config.FilterProtoJsonEmitZeroValues should have comment or be unexported (golint)
    • Line 271: warning: exported method Config.FilterProtoJsonInt64AsNumber should have comment or be unexported (golint)
    • turbo/creator.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/generator.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/grpcclient.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • turbo/component.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 61: warning: exported type Interceptors should have comment or be unexported (golint)
    • Line 88: warning: comment on exported type Preprocessor should be of the form "Preprocessor ..." (with optional leading article) (golint)
    • Line 105: warning: comment on exported type Postprocessor should be of the form "Postprocessor ..." (with optional leading article) (golint)
    • Line 122: warning: comment on exported type Hijacker should be of the form "Hijacker ..." (with optional leading article) (golint)
    • Line 163: warning: comment on exported type Convertor should be of the form "Convertor ..." (with optional leading article) (golint)
    • Line 180: warning: comment on exported type ErrorHandlerFunc should be of the form "ErrorHandlerFunc ..." (with optional leading article) (golint)
    • turbo/test/integration_test.go
    • Line 601: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 602: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 603: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 604: warning: should not use basic type string as key in context.WithValue (golint)
    • turbo/server.go
    • Line 1: warning: package comment should be of the form "Package turbo ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 30: warning: exported type Servable should have comment or be unexported (golint)
    • Line 50: warning: exported method Server.Service should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.ServerField should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!