lib/utils/magicModule.js
Function loadResourcesForPath
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadResourcesForPath(folderPath) {
var exists = fs.existsSync(folderPath)
, listing = !!exists ? fs.readdirSync(folderPath) : [];
if (!!exists && listing.length) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (dottie.get(loaded, fullPath) === undefined) {
if (debug.enabled) {
debug('Loading %s into magic module from %s...', fullPath, actualPath);
}
- Create a ticketCreate a ticket