exabugs/node-searcher

View on GitHub
lib/text/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function search has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.search = function (db, target, freq, field, callback) {

  var tasks = [];
  tasks.push(function (done) {
    var condition2 = [];
Severity: Minor
Found in lib/text/index.js - About 1 hr to fix

    Function patch has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    exports.patch = function (db, info, item, out, attribute, field, callback) {
    Severity: Major
    Found in lib/text/index.js - About 50 mins to fix

      Function search has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      exports.search = function (db, target, freq, field, callback) {
      Severity: Minor
      Found in lib/text/index.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status