CleverStack/node-seed

View on GitHub
lib/utils/magicModule.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

function loadResourcesForPath(folderPath) {
  var exists  = fs.existsSync(folderPath)
    , listing = !!exists ? fs.readdirSync(folderPath) : [];

  if (!!exists && listing.length) {
Severity: Minor
Found in lib/utils/magicModule.js - About 1 hr to fix

Avoid deeply nested control flow statements.
Open

                if (dottie.get(loaded, fullPath) === undefined) {
                  if (debug.enabled) {
                    debug('Loading %s into magic module from %s...', fullPath, actualPath);
                  }

Severity: Major
Found in lib/utils/magicModule.js - About 45 mins to fix

There are no issues that match your filters.

Category
Status