Showing 3 of 5 total issues
Function runTraceur
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function runTraceur(log) {
function makeDone(promise, done){
return promise.then(function(){
//console.log("tasks/traceur.js:61", "yes");
done(true);}, function(rej){
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);