Preparing report...

Report for github.com/chyroc/go-ptr

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


golint25%

Golint is a linter for Go source code.

    • go-ptr/doc.go
    • Line 1: warning: package comment should be of the form "Package ptr ..." (golint)
    • go-ptr/p2p.go
    • Line 5: warning: exported function PointerInt64ToTime should have comment or be unexported (golint)
    • go-ptr/pointer.go
    • Line 5: warning: exported function String should have comment or be unexported (golint)
    • Line 9: warning: exported function Bool should have comment or be unexported (golint)
    • Line 13: warning: exported function Byte should have comment or be unexported (golint)
    • Line 17: warning: exported function Rune should have comment or be unexported (golint)
    • Line 21: warning: exported function Int should have comment or be unexported (golint)
    • Line 25: warning: exported function Int8 should have comment or be unexported (golint)
    • Line 29: warning: exported function Int16 should have comment or be unexported (golint)
    • Line 33: warning: exported function Int32 should have comment or be unexported (golint)
    • Line 37: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 41: warning: exported function UInt should have comment or be unexported (golint)
    • Line 45: warning: exported function UInt8 should have comment or be unexported (golint)
    • Line 49: warning: exported function UInt16 should have comment or be unexported (golint)
    • Line 53: warning: exported function UInt32 should have comment or be unexported (golint)
    • Line 57: warning: exported function UInt64 should have comment or be unexported (golint)
    • Line 61: warning: exported function UIntptr should have comment or be unexported (golint)
    • Line 65: warning: exported function Float32 should have comment or be unexported (golint)
    • Line 69: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 73: warning: exported function Complex64 should have comment or be unexported (golint)
    • Line 77: warning: exported function Complex128 should have comment or be unexported (golint)
    • Line 81: warning: exported function Error should have comment or be unexported (golint)
    • Line 88: warning: exported function Time should have comment or be unexported (golint)
    • Line 92: warning: exported function Duration should have comment or be unexported (golint)
    • go-ptr/pointer_no_none.go
    • Line 5: warning: exported function StringNoNonePtr should have comment or be unexported (golint)
    • Line 12: warning: exported function BoolNoNonePtr should have comment or be unexported (golint)
    • Line 19: warning: exported function ByteNoNonePtr should have comment or be unexported (golint)
    • Line 26: warning: exported function RuneNoNonePtr should have comment or be unexported (golint)
    • Line 33: warning: exported function IntNoNonePtr should have comment or be unexported (golint)
    • Line 40: warning: exported function Int8NoNonePtr should have comment or be unexported (golint)
    • Line 47: warning: exported function Int16NoNonePtr should have comment or be unexported (golint)
    • Line 54: warning: exported function Int32NoNonePtr should have comment or be unexported (golint)
    • Line 61: warning: exported function Int64NoNonePtr should have comment or be unexported (golint)
    • Line 68: warning: exported function UIntNoNonePtr should have comment or be unexported (golint)
    • Line 75: warning: exported function UInt8NoNonePtr should have comment or be unexported (golint)
    • Line 82: warning: exported function UInt16NoNonePtr should have comment or be unexported (golint)
    • Line 89: warning: exported function UInt32NoNonePtr should have comment or be unexported (golint)
    • Line 96: warning: exported function UInt64NoNonePtr should have comment or be unexported (golint)
    • Line 103: warning: exported function UIntptrNoNonePtr should have comment or be unexported (golint)
    • Line 110: warning: exported function Float32NoNonePtr should have comment or be unexported (golint)
    • Line 117: warning: exported function Float64NoNonePtr should have comment or be unexported (golint)
    • Line 124: warning: exported function Complex64NoNonePtr should have comment or be unexported (golint)
    • Line 131: warning: exported function Complex128NoNonePtr should have comment or be unexported (golint)
    • Line 138: warning: exported function ErrorNoNonePtr should have comment or be unexported (golint)
    • Line 145: warning: exported function TimeNoNonePtr should have comment or be unexported (golint)
    • Line 152: warning: exported function DurationNoNonePtr should have comment or be unexported (golint)
    • go-ptr/value.go
    • Line 7: warning: exported function ValueString should have comment or be unexported (golint)
    • Line 14: warning: exported function ValueTime should have comment or be unexported (golint)
    • Line 21: warning: exported function ValueBool should have comment or be unexported (golint)
    • Line 28: warning: exported function ValueByte should have comment or be unexported (golint)
    • Line 35: warning: exported function ValueRune should have comment or be unexported (golint)
    • Line 42: warning: exported function ValueInt should have comment or be unexported (golint)
    • Line 49: warning: exported function ValueInt8 should have comment or be unexported (golint)
    • Line 56: warning: exported function ValueInt16 should have comment or be unexported (golint)
    • Line 63: warning: exported function ValueInt32 should have comment or be unexported (golint)
    • Line 70: warning: exported function ValueInt64 should have comment or be unexported (golint)
    • Line 77: warning: exported function ValueUInt should have comment or be unexported (golint)
    • Line 84: warning: exported function ValueUInt8 should have comment or be unexported (golint)
    • Line 91: warning: exported function ValueUInt16 should have comment or be unexported (golint)
    • Line 98: warning: exported function ValueUInt32 should have comment or be unexported (golint)
    • Line 105: warning: exported function ValueUInt64 should have comment or be unexported (golint)
    • Line 112: warning: exported function ValueUIntptr should have comment or be unexported (golint)
    • Line 119: warning: exported function ValueFloat32 should have comment or be unexported (golint)
    • Line 126: warning: exported function ValueFloat64 should have comment or be unexported (golint)
    • Line 133: warning: exported function ValueComplex64 should have comment or be unexported (golint)
    • Line 140: warning: exported function ValueDuration should have comment or be unexported (golint)
    • Line 147: warning: exported function ValueComplex128 should have comment or be unexported (golint)
    • Line 154: warning: exported function ValueError should have comment or be unexported (golint)
    • go-ptr/value_default.go
    • Line 7: warning: exported function ValueStringWithDefault should have comment or be unexported (golint)
    • Line 14: warning: exported function ValueTimeWithDefault should have comment or be unexported (golint)
    • Line 21: warning: exported function ValueBoolWithDefault should have comment or be unexported (golint)
    • Line 28: warning: exported function ValueByteWithDefault should have comment or be unexported (golint)
    • Line 35: warning: exported function ValueRuneWithDefault should have comment or be unexported (golint)
    • Line 42: warning: exported function ValueIntWithDefault should have comment or be unexported (golint)
    • Line 49: warning: exported function ValueInt8WithDefault should have comment or be unexported (golint)
    • Line 56: warning: exported function ValueInt16WithDefault should have comment or be unexported (golint)
    • Line 63: warning: exported function ValueInt32WithDefault should have comment or be unexported (golint)
    • Line 70: warning: exported function ValueInt64WithDefault should have comment or be unexported (golint)
    • Line 77: warning: exported function ValueUIntWithDefault should have comment or be unexported (golint)
    • Line 84: warning: exported function ValueUInt8WithDefault should have comment or be unexported (golint)
    • Line 91: warning: exported function ValueUInt16WithDefault should have comment or be unexported (golint)
    • Line 98: warning: exported function ValueUInt32WithDefault should have comment or be unexported (golint)
    • Line 105: warning: exported function ValueUInt64WithDefault should have comment or be unexported (golint)
    • Line 112: warning: exported function ValueUIntptrWithDefault should have comment or be unexported (golint)
    • Line 119: warning: exported function ValueFloat32WithDefault should have comment or be unexported (golint)
    • Line 126: warning: exported function ValueFloat64WithDefault should have comment or be unexported (golint)
    • Line 133: warning: exported function ValueComplex64WithDefault should have comment or be unexported (golint)
    • Line 140: warning: exported function ValueDurationWithDefault should have comment or be unexported (golint)
    • Line 147: warning: exported function ValueComplex128WithDefault should have comment or be unexported (golint)
    • Line 154: warning: exported function ValueErrorWithDefault 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!