exabugs/node-searcher

View on GitHub
lib/vector/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function cosine has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.cosine = function (collection, condition, condition2, option, field, callback) {

  // 検索条件
  condition2.forEach(function (item) {
    var words = _.pluck(item.keyword, field[0]);
Severity: Major
Found in lib/vector/index.js - About 2 hrs to fix

    Function cosine has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    exports.cosine = function (collection, condition, condition2, option, field, callback) {
    Severity: Minor
    Found in lib/vector/index.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status