Preparing report...

Report for github.com/gookit/goutil

A+    Excellent!    Found 17 issues across 112 files

Tweet

gofmt96%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo95%

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.

    • goutil/mathutil/convert.go
    • Line 138: warning: cyclomatic complexity 17 of function ToInt64() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 17 of function ToFloat() is high (> 15) (gocyclo)
    • Line 30: warning: cyclomatic complexity 17 of function ToInt() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 17 of function ToUint() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • goutil/fsutil/check.go
    • Line 11: warning: comment on exported var DefaultDirPerm should be of the form "DefaultDirPerm ..." (golint)
    • Line 13: warning: exported var DefaultFilePerm should have comment or be unexported (golint)
    • goutil/fsutil/finder.go
    • Line 22: warning: comment on exported method FileFilterFunc.FilterFile should be of the form "FilterFile ..." (golint)
    • Line 35: warning: comment on exported method DirFilterFunc.FilterDir should be of the form "FilterDir ..." (golint)
    • Line 84: warning: comment on exported method FindResults.AddFilters should be of the form "AddFilters ..." (golint)
    • Line 89: warning: comment on exported method FindResults.Filter should be of the form "Filter ..." (golint)
    • Line 94: warning: comment on exported method FindResults.Each should be of the form "Each ..." (golint)
    • Line 108: warning: exported const ExDotFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 450: warning: comment on exported method FileFinder.EachContents should be of the form "EachContents ..." (golint)
    • goutil/strutil/check.go
    • Line 10: warning: exported var Equal should have comment or be unexported (golint)
    • Line 73: warning: comment on exported function Utf8len should be of the form "Utf8len ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!