fnando/babel-schmooze-sprockets

View on GitHub

Showing 215 of 215 total issues

Function 220 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

},{"35":35,"50":50}],220:[function(_dereq_,module,exports){
'use strict';
_dereq_(215);
var anObject    = _dereq_(7)
  , $flags      = _dereq_(36)
Severity: Minor
Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function 16 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

},{"14":14}],16:[function(_dereq_,module,exports){
'use strict';
var aFunction  = _dereq_(3)
  , isObject   = _dereq_(49)
  , invoke     = _dereq_(44)
Severity: Minor
Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function 36 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

},{"117":117,"27":27,"34":34,"40":40,"87":87}],36:[function(_dereq_,module,exports){
'use strict';
// 21.2.5.3 get RegExp.prototype.flags
var anObject = _dereq_(7);
module.exports = function(){
Severity: Minor
Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function 219 has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

},{"35":35}],219:[function(_dereq_,module,exports){
// @@split logic
_dereq_(35)('split', 2, function(defined, SPLIT, $split){
  'use strict';
  var isRegExp   = _dereq_(50)
Severity: Minor
Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function 13 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"108":108,"109":109,"15":15,"25":25,"45":45}],13:[function(_dereq_,module,exports){
var aFunction = _dereq_(3)
  , toObject  = _dereq_(109)
  , IObject   = _dereq_(45)
  , toLength  = _dereq_(108);
Severity: Minor
Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

    Function 213 has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"32":32,"90":90}],213:[function(_dereq_,module,exports){
    // 26.1.13 Reflect.set(target, propertyKey, V [, receiver])
    var dP             = _dereq_(67)
      , gOPD           = _dereq_(70)
      , getPrototypeOf = _dereq_(74)
    Severity: Minor
    Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

      Function run has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var run = function(reaction){
            var handler = ok ? reaction.ok : reaction.fail
              , resolve = reaction.resolve
              , reject  = reaction.reject
              , domain  = reaction.domain
      Severity: Minor
      Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

        Function from has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          from: function from(x){
            var C = typeof this === 'function' ? this : $Observable;
            var method = getMethod(anObject(x)[OBSERVABLE]);
            if(method){
              var observable = anObject(method.call(x));
        Severity: Minor
        Found in app/assets/javascripts/babel/polyfill.js - About 1 hr to fix

          Function 276 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"63":63,"7":7}],276:[function(_dereq_,module,exports){
          var Set                     = _dereq_(221)
            , from                    = _dereq_(10)
            , metadata                = _dereq_(63)
            , anObject                = _dereq_(7)
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function 138 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"13":13,"32":32,"96":96}],138:[function(_dereq_,module,exports){
          'use strict';
          var $export    = _dereq_(32)
            , html       = _dereq_(41)
            , cof        = _dereq_(18)
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function 245 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"107":107,"110":110,"114":114,"115":115,"116":116,"117":117,"28":28,"31":31,"32":32,"34":34,"38":38,"39":39,"40":40,"47":47,"57":57,"58":58,"62":62,"66":66,"67":67,"7":7,"70":70,"71":71,"72":72,"73":73,"76":76,"77":77,"85":85,"87":87,"92":92,"94":94}],245:[function(_dereq_,module,exports){
          'use strict';
          var $export      = _dereq_(32)
            , $typed       = _dereq_(113)
            , buffer       = _dereq_(112)
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function 31 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          },{}],31:[function(_dereq_,module,exports){
          // all enumerable object keys, includes symbols
          var getKeys = _dereq_(76)
            , gOPS    = _dereq_(73)
            , pIE     = _dereq_(77);
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function 1 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
          (function (global){
          "use strict";
          
          _dereq_(296);
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function 102 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"106":106,"27":27}],102:[function(_dereq_,module,exports){
          var $export = _dereq_(32)
            , defined = _dereq_(27)
            , fails   = _dereq_(34)
            , spaces  = _dereq_(103)
          Severity: Minor
          Found in app/assets/javascripts/babel/polyfill.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function set has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          babelHelpers.set = function set(object, property, value, receiver) {
            var desc = Object.getOwnPropertyDescriptor(object, property);
          
            if (desc === undefined) {
              var parent = Object.getPrototypeOf(object);
          Severity: Minor
          Found in app/assets/javascripts/babel/external-helpers.js - About 55 mins to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function exports has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
          Severity: Major
          Found in app/assets/javascripts/babel/polyfill.js - About 50 mins to fix

            Function 100 has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
            Open

            },{"27":27,"32":32,"34":34}],100:[function(_dereq_,module,exports){
            // https://github.com/tc39/proposal-string-pad-start-end
            var toLength = _dereq_(108)
              , repeat   = _dereq_(101)
              , defined  = _dereq_(27);
            Severity: Minor
            Found in app/assets/javascripts/babel/polyfill.js - About 45 mins to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Avoid deeply nested control flow statements.
            Open

                        if($len % BYTES)throw RangeError(WRONG_LENGTH);
            Severity: Major
            Found in app/assets/javascripts/babel/polyfill.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          if(byteLength + offset > $len)throw RangeError(WRONG_LENGTH);
              Severity: Major
              Found in app/assets/javascripts/babel/polyfill.js - About 45 mins to fix

                Function set has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                var set = function(view, bytes, index, conversion, value, isLittleEndian){
                Severity: Minor
                Found in app/assets/javascripts/babel/polyfill.js - About 45 mins to fix
                  Severity
                  Category
                  Status
                  Source
                  Language