CartoDB/cartodb20

View on GitHub
lib/build/affectedFiles/affectedFiles.js

Summary

Maintainability
B
4 hrs
Test Coverage

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

var main = function (testsFolder, modifiedFiles, filesRegex) {
  filesRegex = filesRegex || 'spec\\.js$';

  var onlyTheseFiles = function (file, stats) {
    var theRegex = new RegExp(filesRegex);
Severity: Major
Found in lib/build/affectedFiles/affectedFiles.js - About 2 hrs to fix

    Function getAffectedFilesFrom has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function getAffectedFilesFrom (files) {
        if (!files || files.length === 0) {
          console.error('Spec files not found.');
          process.exit(1);
        }
    Severity: Minor
    Found in lib/build/affectedFiles/affectedFiles.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status