CleverStack/node-seed

View on GitHub
lib/utils/model/helpers/dynamicFinders.js

Summary

Maintainability
A
1 hr
Test Coverage

Function modelDynamicFindersGenerator has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function modelDynamicFindersGenerator(model) {
  var finders    = ['findBy', 'findAllBy', 'countBy']
    , criteria   = [
      'is', 'in', 'like', 'notLike', 'iLike', 'notILike', 'startsWith', 'endsWith',
      'not', 'notEqual', 'between', 'notBetween', 'greaterThan', 'lessThan', 'greaterThanOrEqualTo', 'lessThanOrEqualTo',
Severity: Minor
Found in lib/utils/model/helpers/dynamicFinders.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status