bixlabs/loopback-testing-helpers

View on GitHub

Showing 2 of 2 total issues

Function exports has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (app) {
  var models = app.models;
  var _modelHelpers = {};

  var walkModelMethod = _.curry(function (modelName, model, method) {
Severity: Minor
Found in index.js - About 1 hr to fix

    Function walkModelMethod has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    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('');
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language