Preparing report...

Report for github.com/gol4ng/logger-grpc

A    Great!    Found 16 issues across 22 files

Tweet

gofmt77%

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!


golint45%

Golint is a linter for Go source code.

    • logger-grpc/server_interceptor/stream_context.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type StreamWithContext should have comment or be unexported (golint)
    • Line 14: warning: exported method StreamWithContext.Context should have comment or be unexported (golint)
    • Line 18: warning: context.Context should be the first parameter of a function (golint)
    • logger-grpc/server_interceptor/stream_wrapper.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: exported type StreamWrapper should have comment or be unexported (golint)
    • Line 27: warning: exported method StreamWrapper.SendHeader should have comment or be unexported (golint)
    • Line 39: warning: exported method StreamWrapper.Context should have comment or be unexported (golint)
    • Line 43: warning: exported method StreamWrapper.SendMsg should have comment or be unexported (golint)
    • Line 56: warning: exported method StreamWrapper.RecvMsg should have comment or be unexported (golint)
    • Line 74: warning: context.Context should be the first parameter of a function (golint)
    • Line 74: warning: exported function NewServerStreamWrapper should have comment or be unexported (golint)
    • logger-grpc/client_interceptor/stream_wrapper.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type StreamWrapper should have comment or be unexported (golint)
    • Line 24: warning: exported method StreamWrapper.SendMsg should have comment or be unexported (golint)
    • Line 37: warning: exported method StreamWrapper.RecvMsg should have comment or be unexported (golint)
    • Line 55: warning: exported function NewClientStreamWrapper should have comment or be unexported (golint)
    • logger-grpc/options.go
    • Line 6: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported function DefaultCodeToLevel should have comment or be unexported (golint)
    • Line 53: warning: exported function EvaluateServerOpt should have comment or be unexported (golint)
    • Line 61: warning: exported function EvaluateClientOpt should have comment or be unexported (golint)
    • Line 69: warning: exported type Option should have comment or be unexported (golint)
    • Line 71: warning: comment on exported function WithLoggerContext should be of the form "WithLoggerContext ..." (golint)
    • Line 92: warning: context.Context should be the first parameter of a function (golint)
    • Line 92: warning: exported function FeedContext 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!