micro-toolkit/event-bus-zeromq

View on GitHub

Showing 6 of 68 total issues

File bus_test.js has 496 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var zmqHelper = require('./support/zmq_helper')
var logHelper = require('./support/log_helper')
var zmq = require('zeromq')
var Logger = require('../logger')
var toFrames = require('./support/frames_helper').toFrames
Severity: Minor
Found in test/bus_test.js - About 7 hrs to fix

    File subscriber_test.js has 495 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var uuidGen = require('uuid')
    var zmq = require('zeromq')
    var Logger = require('../logger')
    var toFrames = require('./support/frames_helper').toFrames
    var toDataFrames = require('./support/frames_helper').toDataFrames
    Severity: Minor
    Found in test/subscriber_test.js - About 7 hrs to fix

      File event_test.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      var uuidGen = require('uuid')
      var eventFactory = require('../lib/event')
      var msgpack = require('msgpack')
      
      describe('Event Module', function () {
      Severity: Minor
      Found in test/event_test.js - About 3 hrs to fix

        Function snapshotHandler has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function snapshotHandler(snapshot, state, store) {
          // remove 3 function parameters
          var frames = Array.prototype.slice.call(arguments, 3)
          // remove client 0MQ identity
          var identity = frames.shift().toString()
        Severity: Minor
        Found in lib/bus.js - About 1 hr to fix

          Function getInstance has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function getInstance(producer, topic, data, sequence, uuid, timestamp) {
          Severity: Minor
          Found in lib/event.js - About 45 mins to fix

            Function connect has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function connect(publisher, collector, snapshot, config, state) {
            Severity: Minor
            Found in lib/bus.js - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language