hybridgroup/cylon-api-mqtt

View on GitHub

Showing 1 of 6 total issues

Function _addDefaultListeners has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MqttMaster.prototype._addDefaultListeners = function(topic, item) {
  var loopbackTopic = topic + '/loopback',
      commandsTopic = topic + '/commands',
      commandTopic = topic + '/command',
      eventsTopic = topic + '/events';
Severity: Minor
Found in lib/mqtt-master.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language