Preparing report...

Report for github.com/rabbitmq/amqp091-go

(v1.10.0)

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


gofmt100%

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

No problems detected. Good job!


gocyclo72%

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.

    • read.go
    • Line 328: warning: cyclomatic complexity 33 of function (*reader).parseHeaderFrame() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 27 of function readField() is high (> 15) (gocyclo)
    • connection.go
    • Line 198: warning: cyclomatic complexity 20 of function DialConfig() is high (> 15) (gocyclo)
    • channel.go
    • Line 307: warning: cyclomatic complexity 19 of function (*Channel).dispatch() is high (> 15) (gocyclo)
    • client_test.go
    • Line 435: warning: cyclomatic complexity 16 of function TestConfirmMultipleOrdersDeliveryTags() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 16 of function TestNotifyClosesAllChansAfterConnectionClose() is high (> 15) (gocyclo)
    • spec091.go
    • Line 2801: warning: cyclomatic complexity 138 of function (*reader).parseMethodFrame() is high (> 15) (gocyclo)
    • write.go
    • Line 73: warning: cyclomatic complexity 45 of function (*headerFrame).write() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 25 of function writeField() is high (> 15) (gocyclo)
    • integration_test.go
    • Line 1880: warning: cyclomatic complexity 20 of function TestRabbitMQQueueNackMultipleRequeue() is high (> 15) (gocyclo)
    • Line 1459: warning: cyclomatic complexity 18 of function TestDeclareArgsRejectToDeadLetterQueue() is high (> 15) (gocyclo)
    • examples_test.go
    • Line 114: warning: cyclomatic complexity 18 of function ExampleChannel_Confirm_bridge() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 18 of function ExampleChannel_Consume() is high (> 15) (gocyclo)
    • uri.go
    • Line 79: warning: cyclomatic complexity 21 of function ParseURI() is high (> 15) (gocyclo)
    • Line 193: warning: cyclomatic complexity 16 of function (URI).String() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!