Preparing report...

Report for github.com/webbgeorge/lambdah

A+    Excellent!    Found 21 issues across 63 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!


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!


golint66%

Golint is a linter for Go source code.

    • lambdah/sns/middleware.go
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 35: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/api_gateway_proxy/middleware.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function ErrorHandlerMiddleware should be of the form "ErrorHandlerMiddleware ..." (golint)
    • Line 52: warning: exported type Error should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 91: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/cloudwatch_events/middleware.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 35: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/dynamodb/handler.go
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.BindKeys should have comment or be unexported (golint)
    • Line 22: warning: exported method Context.BindNewImage should have comment or be unexported (golint)
    • Line 26: warning: exported method Context.BindOldImage should have comment or be unexported (golint)
    • Line 30: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 32: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 47: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • lambdah/generic/handler.go
    • Line 12: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 31: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 33: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 48: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • lambdah/s3/handler.go
    • Line 10: warning: exported type Context should have comment or be unexported (golint)
    • Line 15: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 17: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 32: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • lambdah/sns/handler.go
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 31: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 33: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 48: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • lambdah/dynamodb/middleware.go
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 28: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/generic/middleware.go
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 27: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/sqs/middleware.go
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 40: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/api_gateway_proxy/handler.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported type Context should have comment or be unexported (golint)
    • Line 22: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 41: warning: exported method Context.JSON should have comment or be unexported (golint)
    • Line 58: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 60: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 75: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • Line 111: warning: comment on exported method HandlerFunc.ToHttpHandler should be of the form "ToHttpHandler ..." (golint)
    • lambdah/cloudwatch_events/handler.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 31: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 33: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 48: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (golint)
    • lambdah/s3/middleware.go
    • Line 9: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function CorrelationIDMiddleware should be of the form "CorrelationIDMiddleware ..." (golint)
    • Line 29: warning: comment on exported function LoggerMiddleware should be of the form "LoggerMiddleware ..." (golint)
    • lambdah/log/correlation_id.go
    • Line 11: warning: exported function WithCorrelationID should have comment or be unexported (golint)
    • Line 15: warning: exported function CorrelationIDFromContext should have comment or be unexported (golint)
    • Line 26: warning: exported function NewCorrelationID should have comment or be unexported (golint)
    • lambdah/log/logger.go
    • Line 12: warning: exported function WithLogger should have comment or be unexported (golint)
    • Line 16: warning: exported function LoggerFromContext should have comment or be unexported (golint)
    • Line 27: warning: exported function NewLogger should have comment or be unexported (golint)
    • lambdah/sqs/handler.go
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • Line 18: warning: exported method Context.Bind should have comment or be unexported (golint)
    • Line 31: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 33: warning: exported method HandlerFunc.Start should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method HandlerFunc.Middleware should be of the form "Middleware ..." (golint)
    • Line 48: warning: comment on exported method HandlerFunc.ToLambdaHandler should be of the form "ToLambdaHandler ..." (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!