Preparing report...

Report for github.com/segmentio/kafka-go

(v0.4.47)

A+    Excellent!    Found 31 issues across 259 files

Tweet

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!


gofmt98%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo91%

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.

    • groupbalancer.go
    • Line 196: warning: cyclomatic complexity 17 of function (*RackAffinityGroupBalancer).assignTopic() is high (> 15) (gocyclo)
    • reader.go
    • Line 1254: warning: cyclomatic complexity 23 of function (*reader).run() is high (> 15) (gocyclo)
    • Line 627: warning: cyclomatic complexity 19 of function NewReader() is high (> 15) (gocyclo)
    • read.go
    • Line 460: warning: cyclomatic complexity 18 of function readFetchResponseHeaderV10() is high (> 15) (gocyclo)
    • consumergroup.go
    • Line 170: warning: cyclomatic complexity 29 of function (*ConsumerGroupConfig).Validate() is high (> 15) (gocyclo)
    • message_reader.go
    • Line 406: warning: cyclomatic complexity 24 of function (*messageSetReader).readHeader() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 18 of function (*messageSetReader).readMessageV2() is high (> 15) (gocyclo)
    • writer.go
    • Line 609: warning: cyclomatic complexity 17 of function (*Writer).WriteMessages() is high (> 15) (gocyclo)
    • error.go
    • Line 385: warning: cyclomatic complexity 102 of function (Error).Description() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 102 of function (Error).Title() is high (> 15) (gocyclo)
    • transport.go
    • Line 339: warning: cyclomatic complexity 21 of function (*connPool).roundTrip() is high (> 15) (gocyclo)
    • Line 982: warning: cyclomatic complexity 17 of function (*connGroup).grabConnOrConnect() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 16 of function (*connPool).update() is high (> 15) (gocyclo)
    • joingroup_test.go
    • Line 15: warning: cyclomatic complexity 16 of function TestClientJoinGroup() is high (> 15) (gocyclo)
    • client_test.go
    • Line 194: warning: cyclomatic complexity 16 of function TestClientProduceAndConsume() is high (> 15) (gocyclo)
    • conn.go
    • Line 1126: warning: cyclomatic complexity 22 of function (*Conn).writeCompressedMessages() is high (> 15) (gocyclo)
    • Line 753: warning: cyclomatic complexity 19 of function (*Conn).ReadBatchWith() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words

    • syncgroup.go
    • Line 43: warning: "memeber" is a misspelling of "member" (misspell)
    • Line 73: warning: "memeber" is a misspelling of "member" (misspell)
    • Line 75: warning: "memeber" is a misspelling of "member" (misspell)
    • Line 78: warning: "assignemnt" is a misspelling of "assignment" (misspell)
    • joingroup.go
    • Line 57: warning: "assosiated" is a misspelling of "associated" (misspell)
    • Line 78: warning: "coordinatior" is a misspelling of "coordinator" (misspell)
    • Line 94: warning: "reponse" is a misspelling of "response" (misspell)