speedytwenty/mongodb-extended

View on GitHub
lib/operations/initializeCollection.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (db, colName, colConf = {}) => {
  return new Promise((resolve, reject) => {
    try {
      if (typeof db !== 'object' || db.isExtended === undefined) throw new Error('An extended Db is required.');
      validate(colName, 'string');
Severity: Minor
Found in lib/operations/initializeCollection.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status