Preparing report...

Report for github.com/weplanx/support

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


golint52%

Golint is a linter for Go source code.

    • support/api/api.go
    • Line 11: warning: exported type API should have comment or be unexported (golint)
    • Line 15: warning: exported function InitializeAPI should have comment or be unexported (golint)
    • Line 64: warning: exported type CommonUri should have comment or be unexported (golint)
    • Line 144: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 196: warning: exported type CreateBody should have comment or be unexported (golint)
    • support/route/route.go
    • Line 10: warning: exported type Option should have comment or be unexported (golint)
    • Line 15: warning: exported type OptionFunc should have comment or be unexported (golint)
    • Line 17: warning: exported function SetPath should have comment or be unexported (golint)
    • Line 23: warning: exported type MiddlewareOption should have comment or be unexported (golint)
    • Line 28: warning: exported function SetMiddleware should have comment or be unexported (golint)
    • Line 37: warning: exported function Auto should have comment or be unexported (golint)
    • support/basic/page.go
    • Line 9: warning: exported type Page should have comment or be unexported (golint)
    • Line 20: warning: exported type RouterOption should have comment or be unexported (golint)
    • Line 27: warning: exported method RouterOption.Scan should have comment or be unexported (golint)
    • Line 31: warning: exported method RouterOption.Value should have comment or be unexported (golint)
    • Line 35: warning: exported type ViewColumn should have comment or be unexported (golint)
    • Line 39: warning: exported function GeneratePage should have comment or be unexported (golint)
    • support/basic/schema.go
    • Line 9: warning: exported type Schema should have comment or be unexported (golint)
    • Line 17: warning: exported type Columns should have comment or be unexported (golint)
    • Line 19: warning: exported method Columns.Scan should have comment or be unexported (golint)
    • Line 23: warning: exported method Columns.Value should have comment or be unexported (golint)
    • Line 27: warning: exported type Column should have comment or be unexported (golint)
    • Line 38: warning: exported type Reference should have comment or be unexported (golint)
    • Line 44: warning: exported function GenerateSchema should have comment or be unexported (golint)
    • support/helper/cipher.go
    • Line 11: warning: exported type CipherHelper should have comment or be unexported (golint)
    • Line 16: warning: exported function NewCipherHelper should have comment or be unexported (golint)
    • support/helper/cookie.go
    • Line 8: warning: exported type CookieOption should have comment or be unexported (golint)
    • Line 26: warning: exported type CookieHelper should have comment or be unexported (golint)
    • Line 42: warning: exported function NewCookieHelper should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!