XingFramework/xing-traceur

View on GitHub
xing-traceur/traceurCompiler.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

      There are no issues that match your filters.

      Category
      Status