lib/services/static-files-api-service.js
Function staticFilesApiServiceFactory
has 102 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function staticFilesApiServiceFactory(
constants,
Logger,
Promise,
configuration,
Function walkDirectory
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
StaticFilesApiService.prototype.walkDirectory = function(dir) {
return new Promise(function(resolve, reject) {
var walkResults = [];
if (typeof dir !== 'string') {
console.error("[ERROR] Object of type " + typeof dir +
Function staticFilesApiServiceFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
constants,
Logger,
Promise,
configuration,
waterline