netdata/netdata

View on GitHub
src/go/collectors/go.d.plugin/modules/rabbitmq/collect.go

Summary

Maintainability
A
1 hr
Test Coverage

Method RabbitMQ.doOKDecode has 5 return statements (exceeds 4 allowed).
Open

func (r *RabbitMQ) doOKDecode(urlPath string, in interface{}) error {
    req, err := web.NewHTTPRequest(r.Request.Copy())
    if err != nil {
        return fmt.Errorf("error on creating request: %v", err)
    }
Severity: Major
Found in src/go/collectors/go.d.plugin/modules/rabbitmq/collect.go - About 35 mins to fix

    Method RabbitMQ.collect has 5 return statements (exceeds 4 allowed).
    Open

    func (r *RabbitMQ) collect() (map[string]int64, error) {
        mx := make(map[string]int64)
    
        if err := r.collectOverviewStats(mx); err != nil {
            return nil, err
    Severity: Major
    Found in src/go/collectors/go.d.plugin/modules/rabbitmq/collect.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status