src/lib/registerModules.js
Function exports
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (amna, log) {
amna.$MODULES_DIR = 'amna_modules';
amna.$modules = [];
Function registerModules
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function registerModules(path, modules) {
if (typeof path !== 'string') {
modules = path;
path = '';