Showing 6 of 68 total issues
File bus_test.js
has 496 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File subscriber_test.js
has 495 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
File event_test.js
has 292 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
var uuidGen = require('uuid')
var eventFactory = require('../lib/event')
var msgpack = require('msgpack')
describe('Event Module', function () {
Function snapshotHandler
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
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()
Function getInstance
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getInstance(producer, topic, data, sequence, uuid, timestamp) {
Function connect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function connect(publisher, collector, snapshot, config, state) {