fossasia/loklak_webclient

View on GitHub
iframely/modules/tests-ui/views.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function exports has 150 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    module.exports = function(app){

        app.get('/tests/run/:plugin', function(req, res, next) {

            if (req.params.plugin == "all") {
Severity: Major
Found in iframely/modules/tests-ui/views.js - About 6 hrs to fix

    Function loadLogs has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    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) {
    Severity: Minor
    Found in iframely/modules/tests-ui/views.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status