Showing 5 of 7 total issues
Function requests
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var requests = function (apiObj) {
return {
specialMethod: function (name, reqObj, callback) {
var parent = this;
// Run reqObj through the validator:
- Create a ticketCreate a ticket
Function utility
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var utility = function (apiObj) {
var requests = require('./requests')(apiObj),
async = require('async')
;
- Create a ticketCreate a ticket
Function bustimeInit
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var bustimeInit = function (apiObj) {
var requests = require('./lib/requests')(apiObj),
validate = require('./lib/validate'),
services = require('./lib/services'),
utility = require('./lib/utility')(apiObj)
- Create a ticketCreate a ticket
Function collectRoutesAndStops
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
collectRoutesAndStops: function (callback, config) {
var defaults = {
format: 'array'
}
- Create a ticketCreate a ticket
Function genericMethod
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
- Create a ticketCreate a ticket