linagora/openpaas-esn

View on GitHub
modules/linagora.esn.graceperiod/lib/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

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

module.exports = function(dependencies) {

  var logger = dependencies('logger');
  var token = dependencies('auth').token;
  var pubsub = dependencies('pubsub');
Severity: Minor
Found in modules/linagora.esn.graceperiod/lib/index.js - About 1 hr to fix

    Function create has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function create(fn, delay, context, onComplete, onCancel) {
        logger.debug('Creating a task delayed by %s', delay);
    
        delay = delay || DEFAULT_DELAY;
        var options = context || {};
    Severity: Minor
    Found in modules/linagora.esn.graceperiod/lib/index.js - About 1 hr to fix

      Function create has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

        function create(fn, delay, context, onComplete, onCancel) {
      Severity: Minor
      Found in modules/linagora.esn.graceperiod/lib/index.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status