Preparing report...

Report for github.com/shenwei356/util

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


gocyclo91%

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.


golint82%

Golint is a linter for Go source code.

    • util/cliutil/others.go
    • Line 70: warning: exported function GetFileList should have comment or be unexported (golint)
    • Line 91: warning: exported function GetFileListFromFile should have comment or be unexported (golint)
    • util/math/float.go
    • Line 11: warning: exported const MaxUint should have comment or be unexported (golint)
    • Line 12: warning: exported const MinUint should have comment or be unexported (golint)
    • Line 13: warning: exported const MaxInt should have comment or be unexported (golint)
    • Line 14: warning: exported const MinInt should have comment or be unexported (golint)
    • Line 16: warning: exported function MinInts should have comment or be unexported (golint)
    • Line 26: warning: exported function MaxInts should have comment or be unexported (golint)
    • util/cliutil/cobra.go
    • Line 16: warning: exported function CheckError should have comment or be unexported (golint)
    • Line 23: warning: exported function GetFlagInt should have comment or be unexported (golint)
    • Line 29: warning: exported function GetFlagUint8 should have comment or be unexported (golint)
    • Line 35: warning: exported function GetFlagUint32 should have comment or be unexported (golint)
    • Line 41: warning: exported function GetFlagUint64 should have comment or be unexported (golint)
    • Line 47: warning: exported function GetFlagPositiveInt should have comment or be unexported (golint)
    • Line 56: warning: exported function GetFlagPositiveFloat64 should have comment or be unexported (golint)
    • Line 65: warning: exported function GetFlagNonNegativeInt should have comment or be unexported (golint)
    • Line 74: warning: exported function GetFlagNonNegativeFloat64 should have comment or be unexported (golint)
    • Line 83: warning: exported function GetFlagBool should have comment or be unexported (golint)
    • Line 89: warning: exported function GetFlagString should have comment or be unexported (golint)
    • Line 95: warning: exported function GetFlagNonEmptyString should have comment or be unexported (golint)
    • Line 105: warning: exported function GetFlagCommaSeparatedStrings should have comment or be unexported (golint)
    • Line 111: warning: exported function GetFlagSemicolonSeparatedStrings should have comment or be unexported (golint)
    • Line 117: warning: exported function GetFlagCommaSeparatedInts should have comment or be unexported (golint)
    • Line 130: warning: exported function GetFlagRune should have comment or be unexported (golint)
    • Line 144: warning: exported function GetFlagFloat64 should have comment or be unexported (golint)
    • Line 150: warning: exported function GetFlagInt64 should have comment or be unexported (golint)
    • Line 156: warning: exported function GetFlagStringSlice should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!