Preparing report...

Report for github.com/georlav/recipeapi

A+    Excellent!    Found 11 issues across 32 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!


golint65%

Golint is a linter for Go source code.

    • recipeapi/internal/logger/logger.go
    • Line 12: warning: exported type Option should have comment or be unexported (golint)
    • Line 14: warning: comment on exported function SetHook should be of the form "SetHook ..." (golint)
    • Line 28: warning: exported type Logger should have comment or be unexported (golint)
    • recipeapi/internal/handler/handler.go
    • Line 19: warning: exported const CtxKeyToken should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 29: warning: exported function NewHandler should have comment or be unexported (golint)
    • recipeapi/internal/handler/request.go
    • Line 12: warning: comment on exported type RecipeCreateRequest should be of the form "RecipeCreateRequest ..." (with optional leading article) (golint)
    • Line 20: warning: comment on exported type SignInRequest should be of the form "SignInRequest ..." (with optional leading article) (golint)
    • recipeapi/internal/handler/response.go
    • Line 12: warning: comment on exported type RecipesResponse should be of the form "RecipesResponse ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported type Metadata should be of the form "Metadata ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported type RecipeResponseItems should be of the form "RecipeResponseItems ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type IngredientResponse should be of the form "IngredientResponse ..." (with optional leading article) (golint)
    • recipeapi/internal/handler/error.go
    • Line 3: warning: comment on exported type APIError should be of the form "APIError ..." (with optional leading article) (golint)
    • Line 9: warning: exported function NewAPIError should have comment or be unexported (golint)
    • recipeapi/internal/handler/middleware.go
    • Line 12: warning: comment on exported method Handler.ContentTypeMiddleware should be of the form "ContentTypeMiddleware ..." (golint)
    • Line 22: warning: comment on exported method Handler.CorsMiddleware should be of the form "CorsMiddleware ..." (golint)
    • Line 35: warning: comment on exported method Handler.AuthorizationMiddleware should be of the form "AuthorizationMiddleware ..." (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!