Halyul/hexo-theme-mdui

View on GitHub
source/js/_files/es6-promise.js

Summary

Maintainability
D
1 day
Test Coverage

File es6-promise.js has 528 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
Severity: Major
Found in source/js/_files/es6-promise.js - About 1 day to fix

    Function Enumerator has 74 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    var Enumerator = function () {
      function Enumerator(Constructor, input) {
        this._instanceConstructor = Constructor;
        this.promise = new Constructor(noop);
    
    
    Severity: Major
    Found in source/js/_files/es6-promise.js - About 2 hrs to fix

      Function invokeCallback has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function invokeCallback(settled, promise, callback, detail) {
        var hasCallback = isFunction(callback),
            value = void 0,
            error = void 0,
            succeeded = void 0,
      Severity: Minor
      Found in source/js/_files/es6-promise.js - About 1 hr to fix

        Function Promise$2 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var Promise$2 = function () {
          function Promise(resolver) {
            this[PROMISE_ID] = nextId();
            this._result = this._state = undefined;
            this._subscribers = [];
        Severity: Minor
        Found in source/js/_files/es6-promise.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status