Lewerow/Zurvan

View on GitHub
detail/TimeForwarder.js

Summary

Maintainability
C
7 hrs
Test Coverage
A
100%

Function advanceTime has 96 lines of code (exceeds 25 allowed). Consider refactoring.
Open

TimeForwarder.prototype.advanceTime = function(timeToForward) {
  var advanceStep = new TimeUnit(timeToForward);
  var that = this;

  return new that.schedule.Promise(function(resolve, reject) {
Severity: Major
Found in detail/TimeForwarder.js - About 3 hrs to fix

    Function fireTimersOneByOne has 58 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function fireTimersOneByOne() {
          if (that.immediateInterceptor.areAwaiting()) {
            if (
              ++currentSetImmediateBatchSize >=
              that.config.maxAllowedSetImmediateBatchSize
    Severity: Major
    Found in detail/TimeForwarder.js - About 2 hrs to fix

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

      TimeForwarder.prototype.blockSystem = function(timeToBlock) {
        var blockStep = new TimeUnit(timeToBlock);
        assertValidBlockStep(blockStep);
      
        if (!this.isExpiringEvents()) {
      Severity: Minor
      Found in detail/TimeForwarder.js - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status