XingFramework/xing-traceur

View on GitHub

Showing 3 of 5 total issues

Function runTraceur has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function runTraceur(log) {
  function makeDone(promise, done){
    return promise.then(function(){
      //console.log("tasks/traceur.js:61", "yes");
      done(true);}, function(rej){
Severity: Major
Found in index.js - About 2 hrs to fix

    Function compileAllJsFilesInDir has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    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) {
    Severity: Minor
    Found in xing-traceur/traceurCompiler.js - About 1 hr to fix

      Function nextBatch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      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);
      Severity: Minor
      Found in xing-traceur/traceurCompiler.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language