config.js
function simplifyWhitelist(whitelist) {
	var results = [];

	if (Array.isArray(whitelist)) {
	  // whitelist is in Simplified format
	  for (var i = 0; i < whitelist.length; i++) {
	    results.push({
	      "id": whitelist[i]
	    });
	  }
	} else {
	  // whitelist is in Verbose format
	  for (var project in whitelist) {
	    var vlist = whitelist[project];
	    for (var i = 0; i < vlist.length; i++) {
	      var id = vlist[i].id;
	      results.push({
	        "id": id,
	        "dependencyPaths": vlist[i].dependencyPaths
	      });
	    }
	  }
	}

	return results;
}
function simplifyWhitelist(whitelist) {
	var results = [];

	if (Array.isArray(whitelist)) {
	  // whitelist is in Simplified format
	  for (var i = 0; i < whitelist.length; i++) {
	    results.push({
	      "id": whitelist[i]
	    });
	  }
	} else {
	  // whitelist is in Verbose format
	  for (var project in whitelist) {
	    var vlist = whitelist[project];
	    for (var i = 0; i < vlist.length; i++) {
	      var id = vlist[i].id;
	      results.push({
	        "id": id,
	        "dependencyPaths": vlist[i].dependencyPaths
	      });
	    }
	  }
	}

	return results;
}
function simplifyWhitelist ( whitelist ) { var results = [ ] ; if ( Array . isArray ( whitelist ) ) { // whitelist is in Simplified format for ( var i = 0 ; i < whitelist . length ; i ++ ) { results . push ( { "id" : whitelist [ i ] } ) ; } } else { // whitelist is in Verbose format for ( var project in whitelist ) { var vlist = whitelist [ project ] ; for ( var i = 0 ; i < vlist . length ; i ++ ) { var id = vlist [ i ] . id ; results . push ( { "id" : id , "dependencyPaths" : vlist [ i ] . dependencyPaths } ) ; } } } return results ; }
Simplify the white-list into a list of issue IDs.
Simplify the white - list into a list of issue IDs .