hybridgroup/cylon-api-mqtt

View on GitHub
lib/mqtt-master.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status