lib/build/affectedFiles/affectedFiles.js
Function main
has 71 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var main = function (testsFolder, modifiedFiles, filesRegex) {
filesRegex = filesRegex || 'spec\\.js$';
var onlyTheseFiles = function (file, stats) {
var theRegex = new RegExp(filesRegex);
Function getAffectedFilesFrom
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getAffectedFilesFrom (files) {
if (!files || files.length === 0) {
console.error('Spec files not found.');
process.exit(1);
}