agarzola/bustime

View on GitHub
lib/utility.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function utility has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var utility = function (apiObj) {
  var requests  = require('./requests')(apiObj),
      async     = require('async')
      ;

Severity: Major
Found in lib/utility.js - About 3 hrs to fix

Function collectRoutesAndStops has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    collectRoutesAndStops: function (callback, config) {
      var defaults = {
        format: 'array'
      }

Severity: Minor
Found in lib/utility.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status