xing-traceur/traceurCompiler.js
Function compileAllJsFilesInDir
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function compileAllJsFilesInDir(inputDir, outputDir, options) {
inputDir = path.normalize(inputDir).replace(/\\/g, '/');
outputDir = path.normalize(outputDir).replace(/\\/g, '/');
return new Promise(function(resolve, reject){
glob(inputDir + '/**/*.js', {}, function (er, files) {
Function nextBatch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function nextBatch(pairs) {
if (files.length > 0) {
newFiles = files.splice(0, size);
return Promise.all(newFiles.map(function(inputFilePath){
var outputFilePath = inputFilePath.replace(inputDir, outputDir);