Preparing report...

Report for github.com/modern-go/reflect2

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


gocyclo94%

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.


golint47%

Golint is a linter for Go source code.

    • reflect2/unsafe_struct.go
    • Line 8: warning: exported type UnsafeStructType should have comment or be unexported (golint)
    • Line 20: warning: exported method UnsafeStructType.LikePtr should have comment or be unexported (golint)
    • Line 24: warning: exported method UnsafeStructType.Indirect should have comment or be unexported (golint)
    • Line 30: warning: exported method UnsafeStructType.UnsafeIndirect should have comment or be unexported (golint)
    • Line 37: warning: exported method UnsafeStructType.FieldByName should have comment or be unexported (golint)
    • Line 45: warning: exported method UnsafeStructType.Field should have comment or be unexported (golint)
    • Line 49: warning: exported method UnsafeStructType.FieldByIndex should have comment or be unexported (golint)
    • Line 53: warning: exported method UnsafeStructType.FieldByNameFunc should have comment or be unexported (golint)
    • reflect2/reflect2.go
    • Line 10: warning: exported type Type should have comment or be unexported (golint)
    • Line 37: warning: exported type ListType should have comment or be unexported (golint)
    • Line 46: warning: exported type ArrayType should have comment or be unexported (golint)
    • Line 51: warning: exported type SliceType should have comment or be unexported (golint)
    • Line 67: warning: exported type StructType should have comment or be unexported (golint)
    • Line 76: warning: exported type StructField should have comment or be unexported (golint)
    • Line 90: warning: exported type MapType should have comment or be unexported (golint)
    • Line 105: warning: exported type MapIterator should have comment or be unexported (golint)
    • Line 111: warning: exported type PtrType should have comment or be unexported (golint)
    • Line 116: warning: exported type InterfaceType should have comment or be unexported (golint)
    • Line 120: warning: exported type Config should have comment or be unexported (golint)
    • Line 124: warning: exported type API should have comment or be unexported (golint)
    • Line 129: warning: exported var ConfigUnsafe should have comment or be unexported (golint)
    • Line 130: warning: exported var ConfigSafe should have comment or be unexported (golint)
    • Line 137: warning: exported method Config.Froze should have comment or be unexported (golint)
    • Line 211: warning: exported function TypeOf should have comment or be unexported (golint)
    • Line 215: warning: exported function TypeOfPtr should have comment or be unexported (golint)
    • Line 219: warning: exported function Type2 should have comment or be unexported (golint)
    • Line 226: warning: exported function PtrTo should have comment or be unexported (golint)
    • Line 230: warning: exported function PtrOf should have comment or be unexported (golint)
    • Line 234: warning: exported function RTypeOf should have comment or be unexported (golint)
    • Line 238: warning: exported function IsNil should have comment or be unexported (golint)
    • Line 245: warning: exported function IsNullable should have comment or be unexported (golint)
    • Line 291: warning: exported function UnsafeCastString should have comment or be unexported (golint)
    • reflect2/unsafe_iface.go
    • Line 18: warning: exported function IFaceToEFace should have comment or be unexported (golint)
    • Line 26: warning: exported type UnsafeIFaceType should have comment or be unexported (golint)
    • Line 36: warning: exported method UnsafeIFaceType.Indirect should have comment or be unexported (golint)
    • Line 42: warning: exported method UnsafeIFaceType.UnsafeIndirect should have comment or be unexported (golint)
    • Line 46: warning: exported method UnsafeIFaceType.IsNil should have comment or be unexported (golint)
    • Line 55: warning: exported method UnsafeIFaceType.UnsafeIsNil should have comment or be unexported (golint)
    • reflect2/unsafe_map.go
    • Line 8: warning: exported type UnsafeMapType should have comment or be unexported (golint)
    • Line 22: warning: exported method UnsafeMapType.IsNil should have comment or be unexported (golint)
    • Line 31: warning: exported method UnsafeMapType.UnsafeIsNil should have comment or be unexported (golint)
    • Line 38: warning: exported method UnsafeMapType.LikePtr should have comment or be unexported (golint)
    • Line 42: warning: exported method UnsafeMapType.Indirect should have comment or be unexported (golint)
    • Line 48: warning: exported method UnsafeMapType.UnsafeIndirect should have comment or be unexported (golint)
    • Line 52: warning: exported method UnsafeMapType.Key should have comment or be unexported (golint)
    • Line 56: warning: exported method UnsafeMapType.MakeMap should have comment or be unexported (golint)
    • Line 60: warning: exported method UnsafeMapType.UnsafeMakeMap should have comment or be unexported (golint)
    • Line 65: warning: exported method UnsafeMapType.SetIndex should have comment or be unexported (golint)
    • Line 75: warning: exported method UnsafeMapType.UnsafeSetIndex should have comment or be unexported (golint)
    • Line 79: warning: exported method UnsafeMapType.TryGetIndex should have comment or be unexported (golint)
    • Line 91: warning: exported method UnsafeMapType.GetIndex should have comment or be unexported (golint)
    • Line 100: warning: exported method UnsafeMapType.UnsafeGetIndex should have comment or be unexported (golint)
    • Line 104: warning: exported method UnsafeMapType.Iterate should have comment or be unexported (golint)
    • Line 110: warning: exported method UnsafeMapType.UnsafeIterate should have comment or be unexported (golint)
    • Line 118: warning: exported type UnsafeMapIterator should have comment or be unexported (golint)
    • Line 124: warning: exported method UnsafeMapIterator.HasNext should have comment or be unexported (golint)
    • Line 128: warning: exported method UnsafeMapIterator.Next should have comment or be unexported (golint)
    • Line 133: warning: exported method UnsafeMapIterator.UnsafeNext should have comment or be unexported (golint)
    • reflect2/unsafe_ptr.go
    • Line 8: warning: exported type UnsafePtrType should have comment or be unexported (golint)
    • Line 18: warning: exported method UnsafePtrType.IsNil should have comment or be unexported (golint)
    • Line 27: warning: exported method UnsafePtrType.UnsafeIsNil should have comment or be unexported (golint)
    • Line 34: warning: exported method UnsafePtrType.LikePtr should have comment or be unexported (golint)
    • Line 38: warning: exported method UnsafePtrType.Indirect should have comment or be unexported (golint)
    • Line 44: warning: exported method UnsafePtrType.UnsafeIndirect should have comment or be unexported (golint)
    • reflect2/unsafe_slice.go
    • Line 15: warning: exported type UnsafeSliceType should have comment or be unexported (golint)
    • Line 32: warning: exported method UnsafeSliceType.Set should have comment or be unexported (golint)
    • Line 40: warning: exported method UnsafeSliceType.UnsafeSet should have comment or be unexported (golint)
    • Line 44: warning: exported method UnsafeSliceType.IsNil should have comment or be unexported (golint)
    • Line 53: warning: exported method UnsafeSliceType.UnsafeIsNil should have comment or be unexported (golint)
    • Line 60: warning: exported method UnsafeSliceType.SetNil should have comment or be unexported (golint)
    • Line 66: warning: exported method UnsafeSliceType.UnsafeSetNil should have comment or be unexported (golint)
    • Line 73: warning: exported method UnsafeSliceType.MakeSlice should have comment or be unexported (golint)
    • Line 77: warning: exported method UnsafeSliceType.UnsafeMakeSlice should have comment or be unexported (golint)
    • Line 82: warning: exported method UnsafeSliceType.LengthOf should have comment or be unexported (golint)
    • Line 88: warning: exported method UnsafeSliceType.UnsafeLengthOf should have comment or be unexported (golint)
    • Line 93: warning: exported method UnsafeSliceType.SetIndex should have comment or be unexported (golint)
    • Line 101: warning: exported method UnsafeSliceType.UnsafeSetIndex should have comment or be unexported (golint)
    • Line 107: warning: exported method UnsafeSliceType.GetIndex should have comment or be unexported (golint)
    • Line 114: warning: exported method UnsafeSliceType.UnsafeGetIndex should have comment or be unexported (golint)
    • Line 119: warning: exported method UnsafeSliceType.Append should have comment or be unexported (golint)
    • Line 127: warning: exported method UnsafeSliceType.UnsafeAppend should have comment or be unexported (golint)
    • Line 134: warning: exported method UnsafeSliceType.Cap should have comment or be unexported (golint)
    • Line 140: warning: exported method UnsafeSliceType.UnsafeCap should have comment or be unexported (golint)
    • Line 144: warning: exported method UnsafeSliceType.Grow should have comment or be unexported (golint)
    • Line 150: warning: exported method UnsafeSliceType.UnsafeGrow should have comment or be unexported (golint)
    • reflect2/unsafe_array.go
    • Line 8: warning: exported type UnsafeArrayType should have comment or be unexported (golint)
    • Line 26: warning: exported method UnsafeArrayType.LikePtr should have comment or be unexported (golint)
    • Line 30: warning: exported method UnsafeArrayType.Indirect should have comment or be unexported (golint)
    • Line 36: warning: exported method UnsafeArrayType.UnsafeIndirect should have comment or be unexported (golint)
    • Line 43: warning: exported method UnsafeArrayType.SetIndex should have comment or be unexported (golint)
    • Line 51: warning: exported method UnsafeArrayType.UnsafeSetIndex should have comment or be unexported (golint)
    • Line 56: warning: exported method UnsafeArrayType.GetIndex should have comment or be unexported (golint)
    • Line 63: warning: exported method UnsafeArrayType.UnsafeGetIndex should have comment or be unexported (golint)
    • reflect2/unsafe_eface.go
    • Line 25: warning: exported type UnsafeEFaceType should have comment or be unexported (golint)
    • Line 35: warning: exported method UnsafeEFaceType.IsNil should have comment or be unexported (golint)
    • Line 44: warning: exported method UnsafeEFaceType.UnsafeIsNil should have comment or be unexported (golint)
    • Line 51: warning: exported method UnsafeEFaceType.Indirect should have comment or be unexported (golint)
    • Line 57: warning: exported method UnsafeEFaceType.UnsafeIndirect should have comment or be unexported (golint)
    • reflect2/unsafe_field.go
    • Line 8: warning: exported type UnsafeStructField should have comment or be unexported (golint)
    • Line 24: warning: exported method UnsafeStructField.Offset should have comment or be unexported (golint)
    • Line 28: warning: exported method UnsafeStructField.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method UnsafeStructField.PkgPath should have comment or be unexported (golint)
    • Line 36: warning: exported method UnsafeStructField.Type should have comment or be unexported (golint)
    • Line 40: warning: exported method UnsafeStructField.Tag should have comment or be unexported (golint)
    • Line 44: warning: exported method UnsafeStructField.Index should have comment or be unexported (golint)
    • Line 48: warning: exported method UnsafeStructField.Anonymous should have comment or be unexported (golint)
    • Line 52: warning: exported method UnsafeStructField.Set should have comment or be unexported (golint)
    • Line 60: warning: exported method UnsafeStructField.UnsafeSet should have comment or be unexported (golint)
    • Line 65: warning: exported method UnsafeStructField.Get should have comment or be unexported (golint)
    • Line 72: warning: exported method UnsafeStructField.UnsafeGet should have comment or be unexported (golint)
    • reflect2/unsafe_link.go
    • Line 6: warning: don't use underscores in Go names; func unsafe_New should be unsafeNew (golint)
    • Line 12: warning: don't use underscores in Go names; func unsafe_NewArray should be unsafeNewArray (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!