peake100/rogerRabbit-go

View on GitHub
pkg/roger/rproducer/producer.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Producer.QueueForPublication has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    ctx context.Context,
    exchange string,
    key string,
    mandatory bool,
    immediate bool,
Severity: Minor
Found in pkg/roger/rproducer/producer.go - About 45 mins to fix

    Method Producer.Publish has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        ctx context.Context,
        exchange string,
        key string,
        mandatory bool,
        immediate bool,
    Severity: Minor
    Found in pkg/roger/rproducer/producer.go - About 45 mins to fix

      Method Producer.queueOrder has 6 return statements (exceeds 4 allowed).
      Open

      func (producer *Producer) queueOrder(order *Publication) error {
          // We are going to use a closure to grab and release the lock so we don't hold onto
          // it longer than we have to.
          err := func() error {
              // Put a read hold on closing the order channel so it isn't closed out from
      Severity: Major
      Found in pkg/roger/rproducer/producer.go - About 40 mins to fix

        There are no issues that match your filters.

        Category
        Status