balderdashy/waterline

View on GitHub
lib/waterline/methods/find-or-create.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function findOrCreate has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function findOrCreate( /* criteria?, newRecord?, explicitCbMaybe?, meta? */ ) {

  // Verify `this` refers to an actual Sails/Waterline model.
  verifyModelMethodContext(this);

Severity: Major
Found in lib/waterline/methods/find-or-create.js - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status