bus/client.go

Summary

Maintainability
A
3 hrs
Test Coverage
A
91%

Method client.Call has 74 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *client) Call(cancel <-chan struct{}, serviceID, objectID, actionID uint32,
    payload []byte) ([]byte, error) {

    // Do nothing if cancel is already closed.
    if cancel != nil {
Severity: Minor
Found in bus/client.go - About 1 hr to fix

    Method client.Call has 11 return statements (exceeds 4 allowed).
    Open

    func (c *client) Call(cancel <-chan struct{}, serviceID, objectID, actionID uint32,
        payload []byte) ([]byte, error) {
    
        // Do nothing if cancel is already closed.
        if cancel != nil {
    Severity: Major
    Found in bus/client.go - About 1 hr to fix

      Method client.Subscribe has 6 return statements (exceeds 4 allowed).
      Open

      func (c *client) Subscribe(serviceID, objectID, actionID uint32) (
          cancel func(), events chan []byte, err error) {
      
          abort := make(chan struct{})
          events = make(chan []byte)
      Severity: Major
      Found in bus/client.go - About 40 mins to fix

        There are no issues that match your filters.

        Category
        Status