bixlabs/loopback-testing-helpers

View on GitHub
index.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status