Preparing report...

Report for github.com/oxequa/fresh

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


golint46%

Golint is a linter for Go source code.

    • fresh/rest.go
    • Line 8: warning: exported type Rest should have comment or be unexported (golint)
    • fresh/router.go
    • Line 46: warning: exported type Resource should have comment or be unexported (golint)
    • Line 220: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • fresh/utils.go
    • Line 15: warning: exported const B should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: comment on exported function PrintRouter should be of the form "PrintRouter ..." (golint)
    • fresh/config.go
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported type Logs should have comment or be unexported (golint)
    • Line 52: warning: exported type Router should have comment or be unexported (golint)
    • Line 56: warning: exported type Limit should have comment or be unexported (golint)
    • Line 61: warning: exported type Gzip should have comment or be unexported (golint)
    • Line 70: warning: exported type TSL should have comment or be unexported (golint)
    • Line 76: warning: exported type CORS should have comment or be unexported (golint)
    • Line 86: warning: exported type Security should have comment or be unexported (golint)
    • Line 96: warning: exported type Filter should have comment or be unexported (golint)
    • fresh/fresh.go
    • Line 16: warning: comment on exported type Context should be of the form "Context ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported type Fresh should be of the form "Fresh ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported type HandlerFunc should be of the form "HandlerFunc ..." (with optional leading article) (golint)

gocyclo92%

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.

    • fresh/config.go
    • Line 112: warning: cyclomatic complexity 24 of function (*Config).init() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!