Showing 2 of 2 total issues
Function exports
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (app) {
var models = app.models;
var _modelHelpers = {};
var walkModelMethod = _.curry(function (modelName, model, method) {
Function walkModelMethod
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var walkModelMethod = _.curry(function (modelName, model, method) {
var pluckRight = _.curryRight(_.pluck);
var httpPath = _.flow(pluckRight('http'), pluckRight('path'));
var url = httpPath([model.sharedClass, method])
.join('');