betajs/betajs-shims

View on GitHub

Showing 4 of 8 total issues

File array-shim.js has 295 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function() {
    if (!this)
        return;

    // Production steps of ECMA-262, Edition 5, 15.4.4.18
Severity: Minor
Found in src/array-shim.js - About 3 hrs to fix

    Function reduce has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            this.reduce =function(callback /*, initialValue*/) {
                if (this === null) {
                    throw new TypeError( 'Array.prototype.reduce ' +
                      'called on null or undefined' );
                }
    Severity: Minor
    Found in src/array-shim.js - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                              if (func.call(thisArg, t[i], i, t))
                                  res[c++] = t[i];
      Severity: Major
      Found in src/array-shim.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                                if (func(t[i], i, t))
                                    res[c++] = t[i];
        Severity: Major
        Found in src/array-shim.js - About 45 mins to fix
          Severity
          Category
          Status
          Source
          Language