Preparing report...

Report for github.com/erajayatech/gin-swagger

A    Great!    Found 6 issues across 6 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!


golint33%

Golint is a linter for Go source code.

    • gin-swagger/example/basic/api/api.go
    • Line 9: warning: comment on exported function GetStringByInt should be of the form "GetStringByInt ..." (golint)
    • Line 24: warning: comment on exported function GetStructArrayByString should be of the form "GetStructArrayByString ..." (golint)
    • Line 38: warning: exported type Pet3 should have comment or be unexported (golint)
    • gin-swagger/example/basic/web/handler.go
    • Line 3: warning: comment on exported type Pet should be of the form "Pet ..." (with optional leading article) (golint)
    • Line 20: warning: exported type Pet2 should have comment or be unexported (golint)
    • Line 24: warning: exported type APIError should have comment or be unexported (golint)
    • gin-swagger/swagger.go
    • Line 1: warning: don't use MixedCaps in package name; ginSwagger should be ginswagger (golint)
    • Line 134: warning: don't use underscores in Go names; const swagger_index_templ should be swaggerIndexTempl (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • gin-swagger/swagger_test.go
    • Line 13: warning: no required module provides package github.com/erajayatech/gin-swagger/example/basic/docs; to add it: (ineffassign)
    • Line 9: warning: no required module provides package github.com/erajayatech/gin-swagger/swaggerFiles; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/erajayatech/gin-swagger/swaggerFiles (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/erajayatech/gin-swagger/example/basic/docs (invalid package name: "") (ineffassign)
    • gin-swagger/example/basic/main.go
    • Line 10: warning: no required module provides package github.com/erajayatech/gin-swagger/example/basic/docs; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/erajayatech/gin-swagger/example/basic/docs (invalid package name: "") (ineffassign)
    • gin-swagger/example/gzipped/main.go
    • Line 9: warning: no required module provides package github.com/erajayatech/gin-swagger/example/basic/docs; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/erajayatech/gin-swagger/example/basic/docs (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!