Preparing report...

Report for github.com/dynastymasra/cookbook

A+    Excellent!    Found 16 issues across 29 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo96%

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.


golint48%

Golint is a linter for Go source code.

    • cookbook/message/code.go
    • Line 4: warning: comment on exported const ErrValueCannotEmptyOrNil should be of the form "ErrValueCannotEmptyOrNil ..." (golint)
    • Line 10: warning: comment on exported const ErrDatabaseUnavailable should be of the form "ErrDatabaseUnavailable ..." (golint)
    • Line 20: warning: comment on exported const ErrInvalidValue should be of the form "ErrInvalidValue ..." (golint)
    • Line 24: warning: exported const ErrPaymentRequired should have comment (or a comment on this block) or be unexported (golint)
    • cookbook/message/message.go
    • Line 4: warning: comment on exported const ErrValueCannotEmptyOrNilM should be of the form "ErrValueCannotEmptyOrNilM ..." (golint)
    • Line 10: warning: comment on exported const ErrEndpointNotFoundM should be of the form "ErrEndpointNotFoundM ..." (golint)
    • Line 13: warning: comment on exported const ErrMethodNotAllowedM should be of the form "ErrMethodNotAllowedM ..." (golint)
    • Line 24: warning: comment on exported const ErrDatabaseUnavailableM should be of the form "ErrDatabaseUnavailableM ..." (golint)
    • cookbook/const.go
    • Line 4: warning: comment on exported const Bearer should be of the form "Bearer ..." (golint)
    • Line 9: warning: exported const HContentType should have comment (or a comment on this block) or be unexported (golint)
    • cookbook/provider/console.go
    • Line 10: warning: exported function RunMigration should have comment or be unexported (golint)
    • Line 18: warning: exported function RollbackMigration should have comment or be unexported (golint)
    • Line 26: warning: exported function CreateFile should have comment or be unexported (golint)
    • cookbook/grpc/interceptor.go
    • Line 22: warning: comment on exported function AuthInterceptor should be of the form "AuthInterceptor ..." (golint)
    • Line 42: warning: comment on exported function LogrusUnaryInterceptor should be of the form "LogrusUnaryInterceptor ..." (golint)
    • Line 63: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 80: warning: exported type ServerStreamWrapper should have comment or be unexported (golint)
    • Line 85: warning: exported method ServerStreamWrapper.Context should have comment or be unexported (golint)
    • Line 87: warning: comment on exported function LogrusStreamInterceptor should be of the form "LogrusStreamInterceptor ..." (golint)
    • Line 110: warning: should not use basic type string as key in context.WithValue (golint)
    • cookbook/negroni/middleware/logger.go
    • Line 18: warning: exported function RequestID should have comment or be unexported (golint)
    • Line 27: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 41: warning: should not use basic type string as key in context.WithValue (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!