Preparing report...

Report for github.com/sillyhatxu/gin-utils

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


golint29%

Golint is a linter for Go source code.

    • gin-utils/entity/entity.go
    • Line 5: warning: exported type Entity should have comment or be unexported (golint)
    • Line 24: warning: exported method Entity.Err should have comment or be unexported (golint)
    • Line 28: warning: exported type Option should have comment or be unexported (golint)
    • Line 30: warning: exported function Msg should have comment or be unexported (golint)
    • Line 36: warning: exported function Data should have comment or be unexported (golint)
    • Line 42: warning: exported function Extra should have comment or be unexported (golint)
    • Line 48: warning: exported function New should have comment or be unexported (golint)
    • gin-utils/jwtutils/entity.go
    • Line 9: warning: exported type JWT should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 23: warning: exported method JWT.SecretKey should have comment or be unexported (golint)
    • Line 27: warning: exported method JWT.CreateToken should have comment or be unexported (golint)
    • Line 31: warning: exported method JWT.ParseToken should have comment or be unexported (golint)
    • gin-utils/example/dto/UserDTO.go
    • Line 3: warning: exported type UserDTO should have comment or be unexported (golint)
    • Line 10: warning: exported method UserDTO.Validate should have comment or be unexported (golint)
    • Line 14: warning: exported method UserDTO.SetUserId should have comment or be unexported (golint)
    • gin-utils/example/support-jwt/api/api.go
    • Line 19: warning: exported var JWTClient should have comment or be unexported (golint)
    • Line 21: warning: exported function InitialAPI should have comment or be unexported (golint)
    • Line 30: warning: exported function SetupRouter should have comment or be unexported (golint)
    • gin-utils/example/support-jwt/api/auth.go
    • Line 10: warning: exported type Auth should have comment or be unexported (golint)
    • Line 17: warning: exported method Auth.GetJWTClient should have comment or be unexported (golint)
    • Line 21: warning: exported method Auth.GetTokenKey should have comment or be unexported (golint)
    • Line 25: warning: exported method Auth.GetContextKey should have comment or be unexported (golint)
    • Line 29: warning: exported method Auth.IsDebug should have comment or be unexported (golint)
    • Line 33: warning: exported method Auth.GetAuth should have comment or be unexported (golint)
    • Line 39: warning: exported method Auth.GetAuthForDebug should have comment or be unexported (golint)
    • gin-utils/options.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 9: warning: exported type Option should have comment or be unexported (golint)
    • Line 11: warning: exported function OpenHealth should have comment or be unexported (golint)
    • Line 17: warning: exported function ContextPath should have comment or be unexported (golint)
    • Line 23: warning: exported function SkipPaths should have comment or be unexported (golint)
    • gin-utils/example/support-jwt-debug/api/auth.go
    • Line 10: warning: exported type Auth should have comment or be unexported (golint)
    • Line 17: warning: exported method Auth.GetJWTClient should have comment or be unexported (golint)
    • Line 21: warning: exported method Auth.GetTokenKey should have comment or be unexported (golint)
    • Line 25: warning: exported method Auth.GetContextKey should have comment or be unexported (golint)
    • Line 29: warning: exported method Auth.IsDebug should have comment or be unexported (golint)
    • Line 33: warning: exported method Auth.GetAuth should have comment or be unexported (golint)
    • Line 39: warning: exported method Auth.GetAuthForDebug should have comment or be unexported (golint)
    • gin-utils/response/response.go
    • Line 8: warning: exported function NewError should have comment or be unexported (golint)
    • Line 15: warning: exported function Success should have comment or be unexported (golint)
    • Line 19: warning: exported function Error should have comment or be unexported (golint)
    • Line 23: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 29: warning: exported function Convert should have comment or be unexported (golint)
    • Line 34: warning: exported function FromError should have comment or be unexported (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!