Preparing report...

Report for github.com/mr-tron/g

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


golint45%

Golint is a linter for Go source code.

    • g/max.go
    • Line 5: warning: exported function MaxIntInSlice should have comment or be unexported (golint)
    • Line 18: warning: exported function MaxIntWithDefault should have comment or be unexported (golint)
    • Line 31: warning: exported function MaxInt8InSlice should have comment or be unexported (golint)
    • Line 44: warning: exported function MaxInt8WithDefault should have comment or be unexported (golint)
    • Line 57: warning: exported function MaxInt16InSlice should have comment or be unexported (golint)
    • Line 70: warning: exported function MaxInt16WithDefault should have comment or be unexported (golint)
    • Line 83: warning: exported function MaxInt32InSlice should have comment or be unexported (golint)
    • Line 96: warning: exported function MaxInt32WithDefault should have comment or be unexported (golint)
    • Line 109: warning: exported function MaxInt64InSlice should have comment or be unexported (golint)
    • Line 122: warning: exported function MaxInt64WithDefault should have comment or be unexported (golint)
    • Line 135: warning: exported function MaxUintInSlice should have comment or be unexported (golint)
    • Line 148: warning: exported function MaxUintWithDefault should have comment or be unexported (golint)
    • Line 161: warning: exported function MaxUint8InSlice should have comment or be unexported (golint)
    • Line 174: warning: exported function MaxUint8WithDefault should have comment or be unexported (golint)
    • Line 187: warning: exported function MaxUint16InSlice should have comment or be unexported (golint)
    • Line 200: warning: exported function MaxUint16WithDefault should have comment or be unexported (golint)
    • Line 213: warning: exported function MaxUint32InSlice should have comment or be unexported (golint)
    • Line 226: warning: exported function MaxUint32WithDefault should have comment or be unexported (golint)
    • Line 239: warning: exported function MaxUint64InSlice should have comment or be unexported (golint)
    • Line 252: warning: exported function MaxUint64WithDefault should have comment or be unexported (golint)
    • Line 265: warning: exported function MaxFloat32InSlice should have comment or be unexported (golint)
    • Line 278: warning: exported function MaxFloat32WithDefault should have comment or be unexported (golint)
    • Line 291: warning: exported function MaxFloat64InSlice should have comment or be unexported (golint)
    • Line 304: warning: exported function MaxFloat64WithDefault should have comment or be unexported (golint)
    • Line 317: warning: exported function MaxTimeWithDefault should have comment or be unexported (golint)
    • Line 330: warning: exported function MaxTimeInSlice should have comment or be unexported (golint)
    • Line 343: warning: exported function MaxInt should have comment or be unexported (golint)
    • Line 349: warning: exported function MaxInt8 should have comment or be unexported (golint)
    • Line 355: warning: exported function MaxInt16 should have comment or be unexported (golint)
    • Line 361: warning: exported function MaxInt32 should have comment or be unexported (golint)
    • Line 367: warning: exported function MaxInt64 should have comment or be unexported (golint)
    • Line 373: warning: exported function MaxUint should have comment or be unexported (golint)
    • Line 379: warning: exported function MaxUint8 should have comment or be unexported (golint)
    • Line 385: warning: exported function MaxUint16 should have comment or be unexported (golint)
    • Line 391: warning: exported function MaxUint32 should have comment or be unexported (golint)
    • Line 397: warning: exported function MaxUint64 should have comment or be unexported (golint)
    • Line 403: warning: exported function MaxFloat32 should have comment or be unexported (golint)
    • Line 409: warning: exported function MaxFloat64 should have comment or be unexported (golint)
    • Line 415: warning: exported function MaxTime should have comment or be unexported (golint)
    • g/min.go
    • Line 5: warning: exported function MinIntInSlice should have comment or be unexported (golint)
    • Line 18: warning: exported function MinIntWithDefault should have comment or be unexported (golint)
    • Line 31: warning: exported function MinInt8InSlice should have comment or be unexported (golint)
    • Line 44: warning: exported function MinInt8WithDefault should have comment or be unexported (golint)
    • Line 57: warning: exported function MinInt16InSlice should have comment or be unexported (golint)
    • Line 70: warning: exported function MinInt16WithDefault should have comment or be unexported (golint)
    • Line 83: warning: exported function MinInt32InSlice should have comment or be unexported (golint)
    • Line 96: warning: exported function MinInt32WithDefault should have comment or be unexported (golint)
    • Line 109: warning: exported function MinInt64InSlice should have comment or be unexported (golint)
    • Line 122: warning: exported function MinInt64WithDefault should have comment or be unexported (golint)
    • Line 135: warning: exported function MinUintInSlice should have comment or be unexported (golint)
    • Line 148: warning: exported function MinUintWithDefault should have comment or be unexported (golint)
    • Line 161: warning: exported function MinUint8InSlice should have comment or be unexported (golint)
    • Line 174: warning: exported function MinUint8WithDefault should have comment or be unexported (golint)
    • Line 187: warning: exported function MinUint16InSlice should have comment or be unexported (golint)
    • Line 200: warning: exported function MinUint16WithDefault should have comment or be unexported (golint)
    • Line 213: warning: exported function MinUint32InSlice should have comment or be unexported (golint)
    • Line 226: warning: exported function MinUint32WithDefault should have comment or be unexported (golint)
    • Line 239: warning: exported function MinUint64InSlice should have comment or be unexported (golint)
    • Line 252: warning: exported function MinUint64WithDefault should have comment or be unexported (golint)
    • Line 265: warning: exported function MinFloat32InSlice should have comment or be unexported (golint)
    • Line 278: warning: exported function MinFloat32WithDefault should have comment or be unexported (golint)
    • Line 291: warning: exported function MinFloat64InSlice should have comment or be unexported (golint)
    • Line 304: warning: exported function MinFloat64WithDefault should have comment or be unexported (golint)
    • Line 317: warning: exported function MinTimeInSlice should have comment or be unexported (golint)
    • Line 330: warning: exported function MinTimeWithDefault should have comment or be unexported (golint)
    • Line 343: warning: exported function MinInt should have comment or be unexported (golint)
    • Line 349: warning: exported function MinInt8 should have comment or be unexported (golint)
    • Line 355: warning: exported function MinInt16 should have comment or be unexported (golint)
    • Line 361: warning: exported function MinInt32 should have comment or be unexported (golint)
    • Line 367: warning: exported function MinInt64 should have comment or be unexported (golint)
    • Line 373: warning: exported function MinUint should have comment or be unexported (golint)
    • Line 379: warning: exported function MinUint8 should have comment or be unexported (golint)
    • Line 385: warning: exported function MinUint16 should have comment or be unexported (golint)
    • Line 391: warning: exported function MinUint32 should have comment or be unexported (golint)
    • Line 397: warning: exported function MinUint64 should have comment or be unexported (golint)
    • Line 403: warning: exported function MinFloat32 should have comment or be unexported (golint)
    • Line 409: warning: exported function MinFloat64 should have comment or be unexported (golint)
    • Line 415: warning: exported function MinTime should have comment or be unexported (golint)
    • g/pointers.go
    • Line 5: warning: exported function Pstring should have comment or be unexported (golint)
    • Line 9: warning: exported function Pbool should have comment or be unexported (golint)
    • Line 13: warning: exported function Pint8 should have comment or be unexported (golint)
    • Line 17: warning: exported function Pint16 should have comment or be unexported (golint)
    • Line 21: warning: exported function Pint32 should have comment or be unexported (golint)
    • Line 25: warning: exported function Pint64 should have comment or be unexported (golint)
    • Line 29: warning: exported function Pint should have comment or be unexported (golint)
    • Line 33: warning: exported function Puint8 should have comment or be unexported (golint)
    • Line 37: warning: exported function Puint16 should have comment or be unexported (golint)
    • Line 41: warning: exported function Puint32 should have comment or be unexported (golint)
    • Line 45: warning: exported function Puint64 should have comment or be unexported (golint)
    • Line 49: warning: exported function Puint should have comment or be unexported (golint)
    • Line 53: warning: exported function Pfloat32 should have comment or be unexported (golint)
    • Line 57: warning: exported function Pfloat64 should have comment or be unexported (golint)
    • Line 61: warning: exported function Pcomplex64 should have comment or be unexported (golint)
    • Line 65: warning: exported function Pcomplex128 should have comment or be unexported (golint)
    • Line 69: warning: exported function Ptime should have comment or be unexported (golint)
    • g/unique.go
    • Line 5: warning: exported function UniqBool should have comment or be unexported (golint)
    • Line 24: warning: exported function UniqString should have comment or be unexported (golint)
    • Line 34: warning: exported function UniqInt should have comment or be unexported (golint)
    • Line 43: warning: exported function UniqInt8 should have comment or be unexported (golint)
    • Line 53: warning: exported function UniqInt16 should have comment or be unexported (golint)
    • Line 63: warning: exported function UniqInt32 should have comment or be unexported (golint)
    • Line 73: warning: exported function UniqInt64 should have comment or be unexported (golint)
    • Line 83: warning: exported function UniqUint should have comment or be unexported (golint)
    • Line 93: warning: exported function UniqUint8 should have comment or be unexported (golint)
    • Line 103: warning: exported function UniqUint16 should have comment or be unexported (golint)
    • Line 113: warning: exported function UniqUint32 should have comment or be unexported (golint)
    • Line 123: warning: exported function UniqUint64 should have comment or be unexported (golint)
    • Line 133: warning: exported function UniqFloat32 should have comment or be unexported (golint)
    • Line 143: warning: exported function UniqFloat64 should have comment or be unexported (golint)
    • Line 153: warning: exported function UniqTime should have comment or be unexported (golint)
    • g/errors.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 9: warning: exported const EmptySlice should have comment or be unexported (golint)
    • g/inslice.go
    • Line 5: warning: exported function IntInSlice should have comment or be unexported (golint)
    • Line 14: warning: exported function Int8InSlice should have comment or be unexported (golint)
    • Line 23: warning: exported function Int16InSlice should have comment or be unexported (golint)
    • Line 32: warning: exported function Int32InSlice should have comment or be unexported (golint)
    • Line 41: warning: exported function Int64InSlice should have comment or be unexported (golint)
    • Line 50: warning: exported function RuneInSlice should have comment or be unexported (golint)
    • Line 59: warning: exported function UintInSlice should have comment or be unexported (golint)
    • Line 68: warning: exported function Uint8InSlice should have comment or be unexported (golint)
    • Line 77: warning: exported function Uint16InSlice should have comment or be unexported (golint)
    • Line 86: warning: exported function Uint32InSlice should have comment or be unexported (golint)
    • Line 95: warning: exported function Uint64InSlice should have comment or be unexported (golint)
    • Line 104: warning: exported function ByteInSlice should have comment or be unexported (golint)
    • Line 113: warning: exported function Float32InSlice should have comment or be unexported (golint)
    • Line 122: warning: exported function Float64InSlice should have comment or be unexported (golint)
    • Line 131: warning: exported function Complex64InSlice should have comment or be unexported (golint)
    • Line 140: warning: exported function Complex128InSlice should have comment or be unexported (golint)
    • Line 149: warning: exported function BoolInSlice should have comment or be unexported (golint)
    • Line 158: warning: exported function StringInSlice should have comment or be unexported (golint)
    • Line 167: warning: exported function TimeInSlice 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!