lib/common/file-loader.js
Function fileLoaderFactory
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fileLoaderFactory(assert, Promise, _, nodeFs, path) {
var fs = Promise.promisifyAll(nodeFs);
/**
* FileLoad provides convenience methods around loading files from disk
Function getAll
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
FileLoader.prototype.getAll = function (directory, recursive) {
var self = this;
assert.string(directory);
// List all files in the directory.
Function fileLoaderFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function fileLoaderFactory(assert, Promise, _, nodeFs, path) {