NicolasSiver/nodebb-widget-ns-stats

View on GitHub

Showing 2 of 4 total issues

Function getOnline has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    Users.getOnline = function (done) {
        var now = Date.now();
        if (now - lastRequestAt > onlineCache) {
            var usersOnline, usersToFetch, usersInCache;
            async.waterfall([
Severity: Minor
Found in widget/users.js - About 1 hr to fix

    Function start has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        Job.start = function (done) {
            if (working) {
                return done(new Error('Job is in progress. You can not start another'));
            }
    
    
    Severity: Minor
    Found in widget/job.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language