iframely/modules/tests-ui/views.js
Function exports
has 150 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(app){
app.get('/tests/run/:plugin', function(req, res, next) {
if (req.params.plugin == "all") {
Function loadLogs
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadLogs(sets, cb) {
var pluginTestsDict = _.object(pluginTests.map(function(p) { return [p._id, p]; }));
async.eachSeries(sets.filter(function(s) {return s;}), function(s, cb) {