bengl/mongosmash

View on GitHub
src/queryGenerator.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function queryGenerator has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function queryGenerator(list, smash){
  if (list.indexOf('insert') >= 0) return {insert: true};

  var query = {$set:{}, $unset:{}, _$incoriginal:{}};
  list.forEach(function(change){
Severity: Minor
Found in src/queryGenerator.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return true;
    Severity: Major
    Found in src/queryGenerator.js - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status