toymachiner62/node-mongo-seeds

View on GitHub

Showing 1 of 1 total issue

Function seedDb has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function seedDb(dir, client, list) {

  let db = client.db()
  console.log('Seeding files from directory ' + path.resolve(dir));
  console.log('----------------------');
Severity: Minor
Found in lib/seed.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language