syntheticore/declaire

View on GitHub
src/serverPublisher.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function Publisher has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Publisher = function(express, db) {
  var clients = [];

  // Write data to all connected clients
  var distribute = function(data) {
Severity: Major
Found in src/serverPublisher.js - About 2 hrs to fix

    Function openCursor has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var openCursor = function(cb) {
    
        var loadCollection = function(cbb) {
          db.collection('pubsub', {strict: true}, function(err, pubsub) {
            if(err) {
    Severity: Minor
    Found in src/serverPublisher.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status