Preparing report...

Report for gitoa.ru/go-4devs/log

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


gocyclo90%

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.


golint48%

Golint is a linter for Go source code.

    • /gitoa.ru/go-4devs/log/level/level.go
    • Line 30: warning: exported method Level.MarshalJSON should have comment or be unexported (golint)
    • Line 34: warning: exported method Level.Is should have comment or be unexported (golint)
    • Line 38: warning: exported method Level.Enabled should have comment or be unexported (golint)
    • Line 42: warning: exported method Level.UnmarshalJSON should have comment or be unexported (golint)
    • Line 54: warning: exported function Parse should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/field/key.go
    • Line 7: warning: exported type Key should have comment or be unexported (golint)
    • Line 9: warning: comment on exported method Key.Any should be of the form "Any ..." (golint)
    • Line 136: warning: exported method Key.Strings should have comment or be unexported (golint)
    • Line 143: warning: exported method Key.Stringp should have comment or be unexported (golint)
    • Line 150: warning: exported method Key.Bool should have comment or be unexported (golint)
    • Line 157: warning: exported method Key.Bools should have comment or be unexported (golint)
    • Line 164: warning: exported method Key.Boolp should have comment or be unexported (golint)
    • Line 171: warning: exported method Key.Int should have comment or be unexported (golint)
    • Line 178: warning: exported method Key.Ints should have comment or be unexported (golint)
    • Line 185: warning: exported method Key.Intp should have comment or be unexported (golint)
    • Line 192: warning: exported method Key.Int8 should have comment or be unexported (golint)
    • Line 199: warning: exported method Key.Int8s should have comment or be unexported (golint)
    • Line 206: warning: exported method Key.Int8p should have comment or be unexported (golint)
    • Line 213: warning: exported method Key.Int16 should have comment or be unexported (golint)
    • Line 220: warning: exported method Key.Int16s should have comment or be unexported (golint)
    • Line 227: warning: exported method Key.Int16p should have comment or be unexported (golint)
    • Line 234: warning: exported method Key.Int32 should have comment or be unexported (golint)
    • Line 241: warning: exported method Key.Int32s should have comment or be unexported (golint)
    • Line 248: warning: exported method Key.Int32p should have comment or be unexported (golint)
    • Line 255: warning: exported method Key.Int64 should have comment or be unexported (golint)
    • Line 262: warning: exported method Key.Int64s should have comment or be unexported (golint)
    • Line 269: warning: exported method Key.Int64p should have comment or be unexported (golint)
    • Line 276: warning: exported method Key.Uint should have comment or be unexported (golint)
    • Line 283: warning: exported method Key.Uints should have comment or be unexported (golint)
    • Line 290: warning: exported method Key.Uintp should have comment or be unexported (golint)
    • Line 297: warning: exported method Key.Uint8 should have comment or be unexported (golint)
    • Line 304: warning: exported method Key.Uint8s should have comment or be unexported (golint)
    • Line 311: warning: exported method Key.Uint8p should have comment or be unexported (golint)
    • Line 318: warning: exported method Key.Uint16 should have comment or be unexported (golint)
    • Line 325: warning: exported method Key.Uint16s should have comment or be unexported (golint)
    • Line 332: warning: exported method Key.Uint16p should have comment or be unexported (golint)
    • Line 339: warning: exported method Key.Uint32 should have comment or be unexported (golint)
    • Line 346: warning: exported method Key.Uint32s should have comment or be unexported (golint)
    • Line 353: warning: exported method Key.Uint32p should have comment or be unexported (golint)
    • Line 360: warning: exported method Key.Uint64 should have comment or be unexported (golint)
    • Line 367: warning: exported method Key.Uint64s should have comment or be unexported (golint)
    • Line 374: warning: exported method Key.Uint64p should have comment or be unexported (golint)
    • Line 381: warning: exported method Key.Float32 should have comment or be unexported (golint)
    • Line 388: warning: exported method Key.Float32s should have comment or be unexported (golint)
    • Line 395: warning: exported method Key.Float32p should have comment or be unexported (golint)
    • Line 402: warning: exported method Key.Float64 should have comment or be unexported (golint)
    • Line 409: warning: exported method Key.Float64s should have comment or be unexported (golint)
    • Line 416: warning: exported method Key.Float64p should have comment or be unexported (golint)
    • Line 423: warning: exported method Key.Complex64 should have comment or be unexported (golint)
    • Line 430: warning: exported method Key.Complex64s should have comment or be unexported (golint)
    • Line 437: warning: exported method Key.Complex64p should have comment or be unexported (golint)
    • Line 444: warning: exported method Key.Complex128 should have comment or be unexported (golint)
    • Line 451: warning: exported method Key.Complex128s should have comment or be unexported (golint)
    • Line 458: warning: exported method Key.Complex128p should have comment or be unexported (golint)
    • Line 465: warning: exported method Key.Uintptr should have comment or be unexported (golint)
    • Line 472: warning: exported method Key.Uintptrs should have comment or be unexported (golint)
    • Line 479: warning: exported method Key.Uintptrp should have comment or be unexported (golint)
    • Line 486: warning: exported method Key.Bytes should have comment or be unexported (golint)
    • Line 493: warning: exported method Key.Dureation should have comment or be unexported (golint)
    • Line 500: warning: exported method Key.Dureations should have comment or be unexported (golint)
    • Line 507: warning: exported method Key.Dureationp should have comment or be unexported (golint)
    • Line 514: warning: exported method Key.Time should have comment or be unexported (golint)
    • Line 521: warning: exported method Key.Times should have comment or be unexported (golint)
    • Line 528: warning: exported method Key.Timep should have comment or be unexported (golint)
    • Line 535: warning: exported method Key.FormatTime should have comment or be unexported (golint)
    • Line 542: warning: exported method Key.FormatTimes should have comment or be unexported (golint)
    • Line 549: warning: exported method Key.FormatTimep should have comment or be unexported (golint)
    • Line 563: warning: exported method Key.Errors should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/entry/entry.go
    • Line 14: warning: exported type Option should have comment or be unexported (golint)
    • Line 16: warning: exported function WithCapacity should have comment or be unexported (golint)
    • Line 22: warning: exported function WithFields should have comment or be unexported (golint)
    • Line 28: warning: exported function WithMessage should have comment or be unexported (golint)
    • Line 34: warning: exported function WithLevel should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: exported method Entry.Reset should have comment or be unexported (golint)
    • Line 64: warning: exported method Entry.Fields should have comment or be unexported (golint)
    • Line 84: warning: exported method Entry.Message should have comment or be unexported (golint)
    • Line 88: warning: exported method Entry.Level should have comment or be unexported (golint)
    • Line 96: warning: exported method Entry.SetLevel should have comment or be unexported (golint)
    • Line 106: warning: exported method Entry.SetMessage should have comment or be unexported (golint)
    • Line 116: warning: exported method Entry.Add should have comment or be unexported (golint)
    • Line 126: warning: exported method Entry.AddAny should have comment or be unexported (golint)
    • Line 130: warning: exported method Entry.AddString should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/middleware.go
    • Line 65: warning: exported function WithClosure should have comment or be unexported (golint)
    • Line 91: warning: comment on exported function WithContextValue should be of the form "WithContextValue ..." (golint)
    • /gitoa.ru/go-4devs/log/field/fields.go
    • Line 3: warning: exported type Fields should have comment or be unexported (golint)
    • Line 5: warning: exported type MapField should have comment or be unexported (golint)
    • Line 7: warning: exported method Fields.Append should have comment or be unexported (golint)
    • Line 13: warning: exported method Fields.Set should have comment or be unexported (golint)
    • Line 17: warning: exported method Fields.Len should have comment or be unexported (golint)
    • Line 21: warning: exported method Fields.AsMap should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/field/type.go
    • Line 3: warning: exported type Type should have comment or be unexported (golint)
    • Line 6: warning: exported const TypeAny should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported method Type.IsAny should have comment or be unexported (golint)
    • Line 36: warning: exported method Type.IsArray should have comment or be unexported (golint)
    • Line 40: warning: exported method Type.IsNil should have comment or be unexported (golint)
    • Line 44: warning: exported method Type.IsBool should have comment or be unexported (golint)
    • Line 48: warning: exported method Type.IsString should have comment or be unexported (golint)
    • Line 52: warning: exported method Type.IsInt should have comment or be unexported (golint)
    • Line 56: warning: exported method Type.IsInt8 should have comment or be unexported (golint)
    • Line 60: warning: exported method Type.IsInt16 should have comment or be unexported (golint)
    • Line 64: warning: exported method Type.IsInt32 should have comment or be unexported (golint)
    • Line 68: warning: exported method Type.IsInt64 should have comment or be unexported (golint)
    • Line 72: warning: exported method Type.IsUint should have comment or be unexported (golint)
    • Line 76: warning: exported method Type.IsUint8 should have comment or be unexported (golint)
    • Line 80: warning: exported method Type.IsUint16 should have comment or be unexported (golint)
    • Line 84: warning: exported method Type.IsUint32 should have comment or be unexported (golint)
    • Line 88: warning: exported method Type.IsUint64 should have comment or be unexported (golint)
    • Line 92: warning: exported method Type.IsFloat32 should have comment or be unexported (golint)
    • Line 96: warning: exported method Type.IsFloat64 should have comment or be unexported (golint)
    • Line 100: warning: exported method Type.IsComplex64 should have comment or be unexported (golint)
    • Line 104: warning: exported method Type.IsComplex128 should have comment or be unexported (golint)
    • Line 108: warning: exported method Type.IsUintptr should have comment or be unexported (golint)
    • Line 112: warning: exported method Type.IsBinary should have comment or be unexported (golint)
    • Line 116: warning: exported method Type.IsDuration should have comment or be unexported (golint)
    • Line 120: warning: exported method Type.IsTime should have comment or be unexported (golint)
    • Line 124: warning: exported method Type.IsError should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/field/value.go
    • Line 11: warning: exported type Value should have comment or be unexported (golint)
    • Line 18: warning: exported method Value.MarshalJSON should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method Value.AsInterface should be of the form "AsInterface ..." (golint)
    • Line 114: warning: exported method Value.IsArray should have comment or be unexported (golint)
    • Line 118: warning: exported method Value.IsNil should have comment or be unexported (golint)
    • Line 122: warning: exported method Value.IsString should have comment or be unexported (golint)
    • Line 126: warning: exported method Value.IsBool should have comment or be unexported (golint)
    • Line 130: warning: exported method Value.IsInt should have comment or be unexported (golint)
    • Line 134: warning: exported method Value.IsInt8 should have comment or be unexported (golint)
    • Line 138: warning: exported method Value.IsInt16 should have comment or be unexported (golint)
    • Line 142: warning: exported method Value.IsInt32 should have comment or be unexported (golint)
    • Line 146: warning: exported method Value.IsInt64 should have comment or be unexported (golint)
    • Line 150: warning: exported method Value.IsUint should have comment or be unexported (golint)
    • Line 154: warning: exported method Value.IsUint8 should have comment or be unexported (golint)
    • Line 158: warning: exported method Value.IsUint16 should have comment or be unexported (golint)
    • Line 162: warning: exported method Value.IsUint32 should have comment or be unexported (golint)
    • Line 166: warning: exported method Value.IsUint64 should have comment or be unexported (golint)
    • Line 170: warning: exported method Value.IsFloat32 should have comment or be unexported (golint)
    • Line 174: warning: exported method Value.IsFloat64 should have comment or be unexported (golint)
    • Line 178: warning: exported method Value.IsComplex64 should have comment or be unexported (golint)
    • Line 182: warning: exported method Value.IsComplex128 should have comment or be unexported (golint)
    • Line 186: warning: exported method Value.IsUintptr should have comment or be unexported (golint)
    • Line 190: warning: exported method Value.IsBinary should have comment or be unexported (golint)
    • Line 194: warning: exported method Value.IsDuration should have comment or be unexported (golint)
    • Line 198: warning: exported method Value.IsTime should have comment or be unexported (golint)
    • Line 202: warning: exported method Value.IsError should have comment or be unexported (golint)
    • /gitoa.ru/go-4devs/log/field/field.go
    • Line 8: warning: exported function Any should have comment or be unexported (golint)
    • Line 12: warning: exported function String should have comment or be unexported (golint)
    • Line 16: warning: exported function Stringp should have comment or be unexported (golint)
    • Line 20: warning: exported function Strings should have comment or be unexported (golint)
    • Line 24: warning: exported function Bool should have comment or be unexported (golint)
    • Line 28: warning: exported function Bools should have comment or be unexported (golint)
    • Line 32: warning: exported function Boolp should have comment or be unexported (golint)
    • Line 36: warning: exported function Uint should have comment or be unexported (golint)
    • Line 40: warning: exported function Uints should have comment or be unexported (golint)
    • Line 44: warning: exported function Uintp should have comment or be unexported (golint)
    • Line 48: warning: exported function Uint8 should have comment or be unexported (golint)
    • Line 52: warning: exported function Uint8s should have comment or be unexported (golint)
    • Line 56: warning: exported function Uint8p should have comment or be unexported (golint)
    • Line 60: warning: exported function Uint16 should have comment or be unexported (golint)
    • Line 64: warning: exported function Uint16s should have comment or be unexported (golint)
    • Line 68: warning: exported function Uint16p should have comment or be unexported (golint)
    • Line 72: warning: exported function Uint32 should have comment or be unexported (golint)
    • Line 76: warning: exported function Uint32s should have comment or be unexported (golint)
    • Line 80: warning: exported function Uint32p should have comment or be unexported (golint)
    • Line 84: warning: exported function Uint64 should have comment or be unexported (golint)
    • Line 88: warning: exported function Uint64s should have comment or be unexported (golint)
    • Line 92: warning: exported function Uint64p should have comment or be unexported (golint)
    • Line 96: warning: exported function Int should have comment or be unexported (golint)
    • Line 100: warning: exported function Ints should have comment or be unexported (golint)
    • Line 104: warning: exported function Intp should have comment or be unexported (golint)
    • Line 108: warning: exported function Int8 should have comment or be unexported (golint)
    • Line 112: warning: exported function Int8s should have comment or be unexported (golint)
    • Line 116: warning: exported function Int8p should have comment or be unexported (golint)
    • Line 120: warning: exported function Int16 should have comment or be unexported (golint)
    • Line 124: warning: exported function Int16s should have comment or be unexported (golint)
    • Line 128: warning: exported function Int16p should have comment or be unexported (golint)
    • Line 132: warning: exported function Int32 should have comment or be unexported (golint)
    • Line 136: warning: exported function Int32s should have comment or be unexported (golint)
    • Line 140: warning: exported function Int32p should have comment or be unexported (golint)
    • Line 144: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 148: warning: exported function Int64s should have comment or be unexported (golint)
    • Line 152: warning: exported function Int64p should have comment or be unexported (golint)
    • Line 156: warning: exported function Float32 should have comment or be unexported (golint)
    • Line 160: warning: exported function Float32s should have comment or be unexported (golint)
    • Line 164: warning: exported function Float32p should have comment or be unexported (golint)
    • Line 168: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 172: warning: exported function Float64s should have comment or be unexported (golint)
    • Line 176: warning: exported function Float64p should have comment or be unexported (golint)
    • Line 180: warning: exported function Complex64 should have comment or be unexported (golint)
    • Line 184: warning: exported function Complex64s should have comment or be unexported (golint)
    • Line 188: warning: exported function Complex64p should have comment or be unexported (golint)
    • Line 192: warning: exported function Uintptr should have comment or be unexported (golint)
    • Line 196: warning: exported function Uintptrs should have comment or be unexported (golint)
    • Line 200: warning: exported function Uintptrp should have comment or be unexported (golint)
    • Line 204: warning: exported function Bytes should have comment or be unexported (golint)
    • Line 208: warning: exported function Duration should have comment or be unexported (golint)
    • Line 212: warning: exported function Durations should have comment or be unexported (golint)
    • Line 216: warning: exported function Durationp should have comment or be unexported (golint)
    • Line 220: warning: exported function Time should have comment or be unexported (golint)
    • Line 224: warning: exported function Times should have comment or be unexported (golint)
    • Line 228: warning: exported function Timep should have comment or be unexported (golint)
    • Line 232: warning: exported function FormatTime should have comment or be unexported (golint)
    • Line 236: warning: exported function FormatTimes should have comment or be unexported (golint)
    • Line 240: warning: exported function FormatTimep should have comment or be unexported (golint)
    • Line 244: warning: exported function Error should have comment or be unexported (golint)
    • Line 248: warning: exported function Errors should have comment or be unexported (golint)
    • Line 258: warning: comment on exported method Field.AddTo should be of the form "AddTo ..." (golint)
    • Line 314: warning: exported method Field.Type should have comment or be unexported (golint)
    • Line 318: warning: exported method Field.Key should have comment or be unexported (golint)
    • Line 322: warning: exported method Field.Value should have comment or be unexported (golint)
    • Line 326: warning: exported method Field.AsInterface should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!