Preparing report...

Report for github.com/yiranzai/utils

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


gocyclo96%

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.


golint64%

Golint is a linter for Go source code.

    • utils/page/paginator.go
    • Line 51: warning: comment on exported method Paginator.Pagination should be of the form "Pagination ..." (golint)
    • Line 58: warning: comment on exported method Paginator.ApplySQL should be of the form "ApplySQL ..." (golint)
    • Line 64: warning: comment on exported method Paginator.SetPageSize should be of the form "SetPageSize ..." (golint)
    • utils/helper/http.go
    • Line 7: warning: comment on exported function IsAjax should be of the form "IsAjax ..." (golint)
    • Line 12: warning: comment on exported function FullUrl should be of the form "FullUrl ..." (golint)
    • utils/sliceutil/sliceutil.go
    • Line 8: warning: comment on exported function Filter should be of the form "Filter ..." (golint)
    • Line 14: warning: comment on exported function FilterInPlace should be of the form "FilterInPlace ..." (golint)
    • Line 59: warning: comment on exported function TransformInPlace should be of the form "TransformInPlace ..." (golint)
    • Line 86: warning: comment on exported type GroupItems should be of the form "GroupItems ..." (with optional leading article) (golint)
    • Line 146: warning: comment on exported function Min should be of the form "Min ..." (golint)
    • utils/structutil/structutil.go
    • Line 5: warning: comment on exported type Field should be of the form "Field ..." (with optional leading article) (golint)
    • Line 10: warning: comment on exported function GetFields should be of the form "GetFields ..." (golint)
    • utils/e/code.go
    • Line 4: warning: comment on exported var Success should be of the form "Success ..." (golint)
    • Line 6: warning: exported var ServerError should have comment or be unexported (golint)
    • utils/e/err.go
    • Line 7: warning: comment on exported type MyError should be of the form "MyError ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported function NewErr should be of the form "NewErr ..." (golint)
    • Line 39: warning: comment on exported function DecodeErr should be of the form "DecodeErr ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!