Preparing report...

Report for github.com/ggicci/httpin

(v0.7.5)

A+    Excellent!    Found 12 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!


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!


golint61%

Golint is a linter for Go source code.

    • options.go
    • Line 3: warning: exported type Option should have comment or be unexported (golint)
    • resolver.go
    • Line 135: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • internal/decoders.go
    • Line 11: warning: exported type ValueTypeDecoder should have comment or be unexported (golint)
    • Line 15: warning: exported type FileTypeDecoder should have comment or be unexported (golint)
    • Line 19: warning: exported type ValueTypeDecoderFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type FileTypeDecoderFunc should have comment or be unexported (golint)
    • Line 27: warning: exported method FileTypeDecoderFunc.Decode should have comment or be unexported (golint)
    • Line 51: warning: exported function DecoderOf should have comment or be unexported (golint)
    • Line 55: warning: exported function DecodeBool should have comment or be unexported (golint)
    • Line 59: warning: exported function DecodeInt should have comment or be unexported (golint)
    • Line 67: warning: exported function DecodeInt8 should have comment or be unexported (golint)
    • Line 74: warning: exported function DecodeInt16 should have comment or be unexported (golint)
    • Line 81: warning: exported function DecodeInt32 should have comment or be unexported (golint)
    • Line 88: warning: exported function DecodeInt64 should have comment or be unexported (golint)
    • Line 96: warning: exported function DecodeUint should have comment or be unexported (golint)
    • Line 104: warning: exported function DecodeUint8 should have comment or be unexported (golint)
    • Line 111: warning: exported function DecodeUint16 should have comment or be unexported (golint)
    • Line 118: warning: exported function DecodeUint32 should have comment or be unexported (golint)
    • Line 125: warning: exported function DecodeUint64 should have comment or be unexported (golint)
    • Line 133: warning: exported function DecodeFloat32 should have comment or be unexported (golint)
    • Line 141: warning: exported function DecodeFloat64 should have comment or be unexported (golint)
    • Line 149: warning: exported function DecodeComplex64 should have comment or be unexported (golint)
    • Line 157: warning: exported function DecodeComplex128 should have comment or be unexported (golint)
    • Line 165: warning: exported function DecodeString should have comment or be unexported (golint)
    • patch/types.go
    • Line 8: warning: exported type Bool should have comment or be unexported (golint)
    • Line 13: warning: exported method Bool.MarshalJSON should have comment or be unexported (golint)
    • Line 17: warning: exported method Bool.UnmarshalJSON should have comment or be unexported (golint)
    • Line 23: warning: exported type Int should have comment or be unexported (golint)
    • Line 28: warning: exported method Int.MarshalJSON should have comment or be unexported (golint)
    • Line 32: warning: exported method Int.UnmarshalJSON should have comment or be unexported (golint)
    • Line 38: warning: exported type Int8 should have comment or be unexported (golint)
    • Line 43: warning: exported method Int8.MarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method Int8.UnmarshalJSON should have comment or be unexported (golint)
    • Line 53: warning: exported type Int16 should have comment or be unexported (golint)
    • Line 58: warning: exported method Int16.MarshalJSON should have comment or be unexported (golint)
    • Line 62: warning: exported method Int16.UnmarshalJSON should have comment or be unexported (golint)
    • Line 68: warning: exported type Int32 should have comment or be unexported (golint)
    • Line 73: warning: exported method Int32.MarshalJSON should have comment or be unexported (golint)
    • Line 77: warning: exported method Int32.UnmarshalJSON should have comment or be unexported (golint)
    • Line 83: warning: exported type Int64 should have comment or be unexported (golint)
    • Line 88: warning: exported method Int64.MarshalJSON should have comment or be unexported (golint)
    • Line 92: warning: exported method Int64.UnmarshalJSON should have comment or be unexported (golint)
    • Line 98: warning: exported type Uint should have comment or be unexported (golint)
    • Line 103: warning: exported method Uint.MarshalJSON should have comment or be unexported (golint)
    • Line 107: warning: exported method Uint.UnmarshalJSON should have comment or be unexported (golint)
    • Line 113: warning: exported type Uint8 should have comment or be unexported (golint)
    • Line 118: warning: exported method Uint8.MarshalJSON should have comment or be unexported (golint)
    • Line 122: warning: exported method Uint8.UnmarshalJSON should have comment or be unexported (golint)
    • Line 128: warning: exported type Uint16 should have comment or be unexported (golint)
    • Line 133: warning: exported method Uint16.MarshalJSON should have comment or be unexported (golint)
    • Line 137: warning: exported method Uint16.UnmarshalJSON should have comment or be unexported (golint)
    • Line 143: warning: exported type Uint32 should have comment or be unexported (golint)
    • Line 148: warning: exported method Uint32.MarshalJSON should have comment or be unexported (golint)
    • Line 152: warning: exported method Uint32.UnmarshalJSON should have comment or be unexported (golint)
    • Line 158: warning: exported type Uint64 should have comment or be unexported (golint)
    • Line 163: warning: exported method Uint64.MarshalJSON should have comment or be unexported (golint)
    • Line 167: warning: exported method Uint64.UnmarshalJSON should have comment or be unexported (golint)
    • Line 173: warning: exported type Float32 should have comment or be unexported (golint)
    • Line 178: warning: exported method Float32.MarshalJSON should have comment or be unexported (golint)
    • Line 182: warning: exported method Float32.UnmarshalJSON should have comment or be unexported (golint)
    • Line 188: warning: exported type Float64 should have comment or be unexported (golint)
    • Line 193: warning: exported method Float64.MarshalJSON should have comment or be unexported (golint)
    • Line 197: warning: exported method Float64.UnmarshalJSON should have comment or be unexported (golint)
    • Line 203: warning: exported type String should have comment or be unexported (golint)
    • Line 208: warning: exported method String.MarshalJSON should have comment or be unexported (golint)
    • Line 212: warning: exported method String.UnmarshalJSON should have comment or be unexported (golint)
    • Line 218: warning: exported type Time should have comment or be unexported (golint)
    • Line 223: warning: exported method Time.MarshalJSON should have comment or be unexported (golint)
    • Line 227: warning: exported method Time.UnmarshalJSON should have comment or be unexported (golint)
    • Line 233: warning: exported type BoolArray should have comment or be unexported (golint)
    • Line 238: warning: exported method BoolArray.MarshalJSON should have comment or be unexported (golint)
    • Line 242: warning: exported method BoolArray.UnmarshalJSON should have comment or be unexported (golint)
    • Line 248: warning: exported type IntArray should have comment or be unexported (golint)
    • Line 253: warning: exported method IntArray.MarshalJSON should have comment or be unexported (golint)
    • Line 257: warning: exported method IntArray.UnmarshalJSON should have comment or be unexported (golint)
    • Line 263: warning: exported type Int8Array should have comment or be unexported (golint)
    • Line 268: warning: exported method Int8Array.MarshalJSON should have comment or be unexported (golint)
    • Line 272: warning: exported method Int8Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 278: warning: exported type Int16Array should have comment or be unexported (golint)
    • Line 283: warning: exported method Int16Array.MarshalJSON should have comment or be unexported (golint)
    • Line 287: warning: exported method Int16Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 293: warning: exported type Int32Array should have comment or be unexported (golint)
    • Line 298: warning: exported method Int32Array.MarshalJSON should have comment or be unexported (golint)
    • Line 302: warning: exported method Int32Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 308: warning: exported type Int64Array should have comment or be unexported (golint)
    • Line 313: warning: exported method Int64Array.MarshalJSON should have comment or be unexported (golint)
    • Line 317: warning: exported method Int64Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 323: warning: exported type UintArray should have comment or be unexported (golint)
    • Line 328: warning: exported method UintArray.MarshalJSON should have comment or be unexported (golint)
    • Line 332: warning: exported method UintArray.UnmarshalJSON should have comment or be unexported (golint)
    • Line 338: warning: exported type Uint8Array should have comment or be unexported (golint)
    • Line 343: warning: exported method Uint8Array.MarshalJSON should have comment or be unexported (golint)
    • Line 347: warning: exported method Uint8Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 353: warning: exported type Uint16Array should have comment or be unexported (golint)
    • Line 358: warning: exported method Uint16Array.MarshalJSON should have comment or be unexported (golint)
    • Line 362: warning: exported method Uint16Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 368: warning: exported type Uint32Array should have comment or be unexported (golint)
    • Line 373: warning: exported method Uint32Array.MarshalJSON should have comment or be unexported (golint)
    • Line 377: warning: exported method Uint32Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 383: warning: exported type Uint64Array should have comment or be unexported (golint)
    • Line 388: warning: exported method Uint64Array.MarshalJSON should have comment or be unexported (golint)
    • Line 392: warning: exported method Uint64Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 398: warning: exported type Float32Array should have comment or be unexported (golint)
    • Line 403: warning: exported method Float32Array.MarshalJSON should have comment or be unexported (golint)
    • Line 407: warning: exported method Float32Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 413: warning: exported type Float64Array should have comment or be unexported (golint)
    • Line 418: warning: exported method Float64Array.MarshalJSON should have comment or be unexported (golint)
    • Line 422: warning: exported method Float64Array.UnmarshalJSON should have comment or be unexported (golint)
    • Line 428: warning: exported type StringArray should have comment or be unexported (golint)
    • Line 433: warning: exported method StringArray.MarshalJSON should have comment or be unexported (golint)
    • Line 437: warning: exported method StringArray.UnmarshalJSON should have comment or be unexported (golint)
    • Line 443: warning: exported type TimeArray should have comment or be unexported (golint)
    • Line 448: warning: exported method TimeArray.MarshalJSON should have comment or be unexported (golint)
    • Line 452: warning: exported method TimeArray.UnmarshalJSON should have comment or be unexported (golint)
    • extractor.go
    • Line 67: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 98: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gochi.go
    • Line 13: warning: exported function UseGochiURLParam should have comment or be unexported (golint)
    • httpin.go
    • Line 14: warning: exported type ContextKey should have comment or be unexported (golint)
    • Line 31: warning: exported const StopRecursion should have comment (or a comment on this block) or be unexported (golint)
    • body.go
    • Line 12: warning: exported type JSONBody should have comment or be unexported (golint)
    • Line 13: warning: exported type XMLBody should have comment or be unexported (golint)
    • directives.go
    • Line 38: warning: exported type DirectiveNormalizer should have comment or be unexported (golint)
    • errors.go
    • Line 10: warning: exported var ErrMissingField should have comment or be unexported (golint)
    • Line 25: warning: exported type UnsupportedTypeError should have comment or be unexported (golint)
    • Line 37: warning: exported type InvalidFieldError should have comment or be unexported (golint)
    • file.go
    • Line 13: warning: exported type File should have comment or be unexported (golint)
    • middleware.go
    • Line 16: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 45: warning: exported function ReplaceDefaultErrorHandler 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!