id: 1 unit: kinesisHelper.prototype.createKinesisAnalyticsApp = function() file: source/resources/helper/lib/kinesis-helper.js start line: 41 end line: 147 size: 103 LOC McCabe index: 6 number of parameters: 2 id: 2 unit: exports.handler = function() file: source/services/jitr/index.js start line: 29 end line: 146 size: 92 LOC McCabe index: 8 number of parameters: 3 id: 3 unit: function processRequest() file: source/services/vehicle/lib/index.js start line: 53 end line: 150 size: 88 LOC McCabe index: 28 number of parameters: 2 id: 4 unit: anomaly.prototype.createAnomaly = function() file: source/services/anomaly/lib/anomaly.js start line: 74 end line: 170 size: 61 LOC McCabe index: 6 number of parameters: 2 id: 5 unit: anomaly.prototype.acknowledgeVehicleAnomaly = function() file: source/services/vehicle/lib/anomaly.js start line: 169 end line: 237 size: 58 LOC McCabe index: 6 number of parameters: 4 id: 6 unit: dtc.prototype.acknowledgeVehicleDtc = function() file: source/services/vehicle/lib/dtc.js start line: 169 end line: 237 size: 58 LOC McCabe index: 6 number of parameters: 4 id: 7 unit: let processAd = function() file: source/services/marketing/lib/marketing.js start line: 116 end line: 205 size: 52 LOC McCabe index: 6 number of parameters: 3 id: 8 unit: anomaly.prototype.getVehicleAnomaly = function() file: source/services/vehicle/lib/anomaly.js start line: 107 end line: 160 size: 47 LOC McCabe index: 5 number of parameters: 4 id: 9 unit: healthreport.prototype.getVehicleHealthReport = function() file: source/services/vehicle/lib/healthreport.js start line: 107 end line: 160 size: 47 LOC McCabe index: 5 number of parameters: 4 id: 10 unit: trip.prototype.getVehicleTrip = function() file: source/services/vehicle/lib/trip.js start line: 107 end line: 160 size: 47 LOC McCabe index: 5 number of parameters: 4 id: 11 unit: dtc.prototype.getVehicleDtc = function() file: source/services/vehicle/lib/dtc.js start line: 107 end line: 160 size: 47 LOC McCabe index: 5 number of parameters: 4 id: 12 unit: anomaly.prototype.listAnomaliesByVehicle = function() file: source/services/vehicle/lib/anomaly.js start line: 53 end line: 98 size: 39 LOC McCabe index: 4 number of parameters: 3 id: 13 unit: healthreport.prototype.listHealthReportsByVehicle = function() file: source/services/vehicle/lib/healthreport.js start line: 53 end line: 98 size: 39 LOC McCabe index: 4 number of parameters: 3 id: 14 unit: trip.prototype.listTripsByVehicle = function() file: source/services/vehicle/lib/trip.js start line: 53 end line: 98 size: 39 LOC McCabe index: 4 number of parameters: 3 id: 15 unit: dtc.prototype.listDtcByVehicle = function() file: source/services/vehicle/lib/dtc.js start line: 53 end line: 98 size: 39 LOC McCabe index: 4 number of parameters: 3 id: 16 unit: dtc.prototype.updateVehicle = function() file: source/services/dtc/lib/dtc.js start line: 222 end line: 267 size: 36 LOC McCabe index: 4 number of parameters: 2 id: 17 unit: kinesisHelper.prototype.deleteKinesisAnalyticsApp = function() file: source/resources/helper/lib/kinesis-helper.js start line: 154 end line: 193 size: 35 LOC McCabe index: 3 number of parameters: 2 id: 18 unit: dynamoDBHelper.prototype.loadPois = function() file: source/resources/helper/lib/dynamodb-helper.js start line: 50 end line: 94 size: 34 LOC McCabe index: 3 number of parameters: 2 id: 19 unit: let sendResponse = function() file: source/resources/helper/index.js start line: 218 end line: 255 size: 34 LOC McCabe index: 1 number of parameters: 5 id: 20 unit: let getUser = function() file: source/services/notification/lib/notification.js start line: 172 end line: 213 size: 34 LOC McCabe index: 4 number of parameters: 2 id: 21 unit: metricsHelper.prototype.sendAnonymousMetric = function() file: source/resources/helper/lib/metrics-helper.js start line: 41 end line: 80 size: 31 LOC McCabe index: 2 number of parameters: 2 id: 22 unit: anomaly.prototype.deleteAnomaly = function() file: source/services/anomaly/lib/anomaly.js start line: 207 end line: 243 size: 31 LOC McCabe index: 4 number of parameters: 3 id: 23 unit: notification.prototype.sendNotiviationViaMqtt = function() file: source/services/notification/lib/notification.js start line: 101 end line: 137 size: 31 LOC McCabe index: 3 number of parameters: 2 id: 24 unit: dtc.prototype.deleteDtc = function() file: source/services/dtc/lib/dtc.js start line: 179 end line: 215 size: 31 LOC McCabe index: 4 number of parameters: 3 id: 25 unit: dynamoDBHelper.prototype.loadDtcCodes = function() file: source/resources/helper/lib/dynamodb-helper.js start line: 101 end line: 139 size: 28 LOC McCabe index: 3 number of parameters: 2 id: 26 unit: let getAnomalyPage = function() file: source/services/anomaly/lib/anomaly.js start line: 253 end line: 286 size: 28 LOC McCabe index: 5 number of parameters: 5 id: 27 unit: let getDtcPage = function() file: source/services/dtc/lib/dtc.js start line: 269 end line: 302 size: 28 LOC McCabe index: 5 number of parameters: 5 id: 28 unit: vehicle.prototype.getVehicle = function() file: source/services/vehicle/lib/vehicle.js start line: 105 end line: 133 size: 25 LOC McCabe index: 3 number of parameters: 3 id: 29 unit: let startKinesisAnalyticsApp = function() file: source/resources/helper/lib/kinesis-helper.js start line: 200 end line: 223 size: 23 LOC McCabe index: 2 number of parameters: 2 id: 30 unit: module.exports.respond = function() file: source/services/anomaly/lib/index.js start line: 23 end line: 50 size: 21 LOC McCabe index: 4 number of parameters: 2 id: 31 unit: getUser() file: source/services/notification/lib/notification.js start line: 61 end line: 84 size: 21 LOC McCabe index: 3 number of parameters: 3 id: 32 unit: var loadCodes = function() file: source/resources/helper/lib/dynamodb-helper.js start line: 141 end line: 163 size: 20 LOC McCabe index: 3 number of parameters: 4 id: 33 unit: var loadCodes = function() file: source/data-loaders/dtc-generator/loader.js start line: 66 end line: 88 size: 20 LOC McCabe index: 3 number of parameters: 3 id: 34 unit: let sendNotification = function() file: source/services/anomaly/lib/anomaly.js start line: 294 end line: 314 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 35 unit: let sendNotification = function() file: source/services/dtc/lib/dtc.js start line: 332 end line: 352 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 36 unit: let sendNotification = function() file: source/services/marketing/lib/marketing.js start line: 207 end line: 227 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 37 unit: iotHelper.prototype.createTopicRule = function() file: source/resources/helper/lib/iot-helper.js start line: 41 end line: 62 size: 18 LOC McCabe index: 2 number of parameters: 2 id: 38 unit: let getVehicleOwner = function() file: source/services/notification/lib/notification.js start line: 144 end line: 165 size: 18 LOC McCabe index: 2 number of parameters: 2 id: 39 unit: module.exports.respond = function() file: source/services/dtc/lib/index.js start line: 23 end line: 47 size: 18 LOC McCabe index: 6 number of parameters: 2 id: 40 unit: lookupDtc() file: source/services/dtc/lib/dtc.js start line: 77 end line: 140 size: 18 LOC McCabe index: 1 number of parameters: 3 id: 41 unit: anomaly.prototype.getAnomaly = function() file: source/services/anomaly/lib/anomaly.js start line: 178 end line: 199 size: 17 LOC McCabe index: 2 number of parameters: 3 id: 42 unit: vehicle.prototype.listVehicles = function() file: source/services/vehicle/lib/vehicle.js start line: 51 end line: 70 size: 17 LOC McCabe index: 2 number of parameters: 2 id: 43 unit: dtc.prototype.getDtc = function() file: source/services/dtc/lib/dtc.js start line: 150 end line: 171 size: 17 LOC McCabe index: 2 number of parameters: 3 id: 44 unit: driversafety.prototype.updateVehicleTrip = function() file: source/services/driversafety/lib/driver-safety.js start line: 51 end line: 70 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 45 unit: let lookupDtc = function() file: source/services/dtc/lib/dtc.js start line: 310 end line: 330 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 46 unit: module.exports.respond = function() file: source/services/notification/lib/index.js start line: 23 end line: 43 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 47 unit: vehicle.prototype.createVehicle = function() file: source/services/vehicle/lib/vehicle.js start line: 78 end line: 97 size: 15 LOC McCabe index: 2 number of parameters: 3 id: 48 unit: let getGeolocationResults = function() file: source/services/marketing/lib/marketing.js start line: 83 end line: 108 size: 15 LOC McCabe index: 3 number of parameters: 4 id: 49 unit: getVehicleOwner() file: source/services/notification/lib/notification.js start line: 54 end line: 92 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 50 unit: advertisement.prototype.getPoints = function() file: source/services/marketing/lib/marketing.js start line: 52 end line: 74 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 51 unit: iotHelper.prototype.deleteTopicRule = function() file: source/resources/helper/lib/iot-helper.js start line: 69 end line: 84 size: 12 LOC McCabe index: 2 number of parameters: 2 id: 52 unit: exports.handler = function() file: source/services/anomaly/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 53 unit: exports.handler = function() file: source/services/notification/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 54 unit: score: Number() file: source/services/driversafety/lib/driver-safety.js start line: 109 end line: 122 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: exports.handler = function() file: source/services/driversafety/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 56 unit: exports.handler = function() file: source/services/vehicle/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 57 unit: exports.handler = function() file: source/services/dtc/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 58 unit: exports.handler = function() file: source/services/marketing/index.js start line: 23 end line: 40 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 59 unit: function processResponse() file: source/services/vehicle/lib/index.js start line: 161 end line: 178 size: 11 LOC McCabe index: 2 number of parameters: 6 id: 60 unit: module.exports.respond = function() file: source/services/driversafety/lib/index.js start line: 23 end line: 36 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 61 unit: function buildOutput() file: source/services/vehicle/lib/index.js start line: 185 end line: 196 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 62 unit: processAd() file: source/services/marketing/lib/marketing.js start line: 90 end line: 99 size: 10 LOC McCabe index: 2 number of parameters: 4 id: 63 unit: getAnomalyPage() file: source/services/anomaly/lib/anomaly.js start line: 57 end line: 66 size: 9 LOC McCabe index: 2 number of parameters: 6 id: 64 unit: let humanizeAnomaly = function() file: source/services/anomaly/lib/anomaly.js start line: 320 end line: 332 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 65 unit: getDtcPage() file: source/services/dtc/lib/dtc.js start line: 58 end line: 67 size: 9 LOC McCabe index: 2 number of parameters: 6 id: 66 unit: module.exports.respond = function() file: source/services/marketing/lib/index.js start line: 23 end line: 34 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 67 unit: loadCodes() file: source/resources/helper/lib/dynamodb-helper.js start line: 84 end line: 91 size: 8 LOC McCabe index: 2 number of parameters: 5 id: 68 unit: loadCodes() file: source/resources/helper/lib/dynamodb-helper.js start line: 129 end line: 136 size: 8 LOC McCabe index: 2 number of parameters: 5 id: 69 unit: sendNotification() file: source/services/anomaly/lib/anomaly.js start line: 143 end line: 152 size: 8 LOC McCabe index: 2 number of parameters: 4 id: 70 unit: sendNotification() file: source/services/dtc/lib/dtc.js start line: 127 end line: 136 size: 8 LOC McCabe index: 2 number of parameters: 4 id: 71 unit: getGeolocationResults() file: source/services/marketing/lib/marketing.js start line: 64 end line: 71 size: 8 LOC McCabe index: 2 number of parameters: 5 id: 72 unit: created_at: moment() file: source/services/marketing/lib/marketing.js start line: 144 end line: 152 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 73 unit: sendNotification() file: source/services/marketing/lib/marketing.js start line: 183 end line: 190 size: 8 LOC McCabe index: 2 number of parameters: 4 id: 74 unit: loadCodes() file: source/data-loaders/dtc-generator/loader.js start line: 57 end line: 63 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 75 unit: sendNotification() file: source/services/driversafety/lib/driver-safety.js start line: 128 end line: 135 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 76 unit: updated_at: moment() file: source/services/marketing/lib/marketing.js start line: 145 end line: 152 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 77 unit: anomaly.prototype.getVehicleAnomaly = function() file: source/services/anomaly/lib/anomaly.js start line: 51 end line: 67 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 78 unit: dtc.prototype.getVehicleDtc = function() file: source/services/dtc/lib/dtc.js start line: 52 end line: 68 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 79 unit: identified_at: moment() file: source/services/marketing/lib/marketing.js start line: 146 end line: 152 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: TimeStamp: moment() file: source/resources/helper/index.js start line: 184 end line: 188 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 81 unit: Launch: moment() file: source/resources/helper/index.js start line: 187 end line: 192 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 82 unit: identified_at: moment() file: source/services/anomaly/lib/anomaly.js start line: 108 end line: 113 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: created_at: moment() file: source/services/dtc/lib/dtc.js start line: 90 end line: 95 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 84 unit: created_at: moment() file: source/services/anomaly/lib/anomaly.js start line: 109 end line: 113 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 85 unit: updated_at: moment() file: source/services/dtc/lib/dtc.js start line: 91 end line: 95 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 86 unit: updated_at: moment() file: source/services/anomaly/lib/anomaly.js start line: 110 end line: 113 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 87 unit: module.exports.respond = function() file: source/services/vehicle/lib/index.js start line: 41 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 88 unit: notification.prototype.sendNotification = function() file: source/services/notification/lib/notification.js start line: 52 end line: 94 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 89 unit: dtc.prototype.createDtc = function() file: source/services/dtc/lib/dtc.js start line: 75 end line: 142 size: 2 LOC McCabe index: 1 number of parameters: 2