Preparing report...

Report for github.com/tdmytrykiv/go-amqp

(v0.13.1)

A    Great!    Found 18 issues across 26 files

Tweet

gofmt69%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

    • log.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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!


gocyclo76%

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.

    • encode.go
    • Line 43: warning: cyclomatic complexity 77 of function marshal() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 31 of function writeMap() is high (> 15) (gocyclo)
    • decode.go
    • Line 155: warning: cyclomatic complexity 67 of function unmarshal() is high (> 15) (gocyclo)
    • Line 591: warning: cyclomatic complexity 28 of function readAny() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 21 of function readAnyArray() is high (> 15) (gocyclo)
    • Line 827: warning: cyclomatic complexity 19 of function readComposite() is high (> 15) (gocyclo)
    • client.go
    • Line 471: warning: cyclomatic complexity 56 of function (*Session).mux() is high (> 15) (gocyclo)
    • Line 878: warning: cyclomatic complexity 28 of function attachLink() is high (> 15) (gocyclo)
    • Line 1070: warning: cyclomatic complexity 22 of function (*link).mux() is high (> 15) (gocyclo)
    • Line 1449: warning: cyclomatic complexity 20 of function (*link).muxDetach() is high (> 15) (gocyclo)
    • Line 1185: warning: cyclomatic complexity 19 of function (*link).muxReceive() is high (> 15) (gocyclo)
    • Line 1951: warning: cyclomatic complexity 16 of function (*Receiver).dispositionBatcher() is high (> 15) (gocyclo)
    • Line 1317: warning: cyclomatic complexity 16 of function (*link).muxHandleFrame() is high (> 15) (gocyclo)
    • conn.go
    • Line 440: warning: cyclomatic complexity 26 of function (*conn).connReader() is high (> 15) (gocyclo)
    • Line 325: warning: cyclomatic complexity 18 of function (*conn).mux() is high (> 15) (gocyclo)
    • integration_test.go
    • Line 50: warning: cyclomatic complexity 19 of function TestIntegrationRoundTrip() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 17 of function TestIntegrationReceiverModeSecond() is high (> 15) (gocyclo)
    • types.go
    • Line 1849: warning: cyclomatic complexity 17 of function (*Message).marshal() is high (> 15) (gocyclo)

golint69%

Golint is a linter for Go source code.

    • internal/testconn/recorder.go
    • Line 8: warning: exported type Recorder should have comment or be unexported (golint)
    • Line 13: warning: exported function NewRecorder should have comment or be unexported (golint)
    • Line 27: warning: exported method Recorder.Close should have comment or be unexported (golint)
    • internal/testconn/testconn.go
    • Line 10: warning: exported function New should have comment or be unexported (golint)
    • Line 19: warning: exported type Conn should have comment or be unexported (golint)
    • Line 46: warning: exported method Conn.Close should have comment or be unexported (golint)
    • Line 51: warning: exported method Conn.LocalAddr should have comment or be unexported (golint)
    • Line 58: warning: exported method Conn.RemoteAddr should have comment or be unexported (golint)
    • Line 65: warning: exported method Conn.SetDeadline should have comment or be unexported (golint)
    • Line 69: warning: exported method Conn.SetReadDeadline should have comment or be unexported (golint)
    • Line 86: warning: exported method Conn.SetWriteDeadline should have comment or be unexported (golint)
    • buffer.go
    • Line 53: warning: don't use underscores in Go names; var byte_ should be byte (golint)
    • Line 124: warning: don't use underscores in Go names; method parameter byte_ should be byte (golint)
    • decode.go
    • Line 302: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 356: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • Line 420: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 443: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 485: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 524: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 555: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 596: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 943: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 958: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 997: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1015: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1033: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1047: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1061: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1074: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1087: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1106: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1125: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1139: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1153: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1172: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1199: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 1218: warning: don't use underscores in Go names; var type_ should be type (golint)
    • encode.go
    • Line 554: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • Line 573: warning: don't use underscores in Go names; func parameter type_ should be type (golint)
    • marshal_test.go
    • Line 146: warning: don't use underscores in Go names; range var type_ should be type (golint)
    • Line 172: warning: don't use underscores in Go names; range var type_ should be type (golint)
    • Line 234: warning: don't use underscores in Go names; range var type_ should be type (golint)
    • sasl.go
    • Line 193: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • types.go
    • Line 158: warning: don't use underscores in Go names; struct field type_ should be type (golint)
    • Line 1927: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3033: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3070: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3118: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3169: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3238: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3331: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3415: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3508: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3574: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3626: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3689: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3778: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3869: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 3959: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 4020: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 4072: warning: don't use underscores in Go names; var type_ should be type (golint)
    • Line 4174: warning: don't use underscores in Go names; var type_ should be type (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!