agarzola/bustime

View on GitHub
lib/requests.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function requests has 82 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var requests = function (apiObj) {
  return {
    specialMethod: function (name, reqObj, callback) {
      var parent = this;
      // Run reqObj through the validator:
Severity: Major
Found in lib/requests.js - About 3 hrs to fix

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

    genericMethod: function (requestType, reqObj, callback) {
      // Set a bunch of default variables for use in the request to the BusTracker API:
      var host        = apiObj.host,
          path        = apiObj.path || '/bustime/api/v1',
          port        = apiObj.port || 80,
Severity: Minor
Found in lib/requests.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status