fnando/babel-schmooze-sprockets

View on GitHub

Showing 159 of 215 total issues

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

  module.exports = function(KEY, BYTES, wrapper, CLAMPED){
    CLAMPED = !!CLAMPED;
    var NAME       = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'
      , ISNT_UINT8 = NAME != 'Uint8Array'
      , GETTER     = 'get' + KEY
Severity: Major
Found in app/assets/javascripts/babel/polyfill.js - About 5 hrs to fix

    Function 214 has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
    Open

    },{"32":32,"39":39,"49":49,"67":67,"7":7,"70":70,"74":74,"85":85}],214:[function(_dereq_,module,exports){
    var global            = _dereq_(38)
      , inheritIfRequired = _dereq_(43)
      , dP                = _dereq_(67).f
      , gOPN              = _dereq_(72).f
    Severity: Minor
    Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs 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 32 has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
    Open

    },{"73":73,"76":76,"77":77}],32:[function(_dereq_,module,exports){
    var global    = _dereq_(38)
      , core      = _dereq_(23)
      , hide      = _dereq_(40)
      , redefine  = _dereq_(87)
    Severity: Minor
    Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs 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 19 has 117 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],19:[function(_dereq_,module,exports){
    'use strict';
    var dP          = _dereq_(67).f
      , create      = _dereq_(66)
      , hide        = _dereq_(40)
    Severity: Major
    Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs to fix

      Function 13 has a Cognitive Complexity of 30 (exceeds 5 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 4 hrs 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 178 has 110 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"32":32,"82":82}],178:[function(_dereq_,module,exports){
      'use strict';
      var $export      = _dereq_(32)
        , anInstance   = _dereq_(6)
        , toInteger    = _dereq_(106)
      Severity: Major
      Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs to fix

        Function 11 has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"37":37}],11:[function(_dereq_,module,exports){
        // false -> Array#indexOf
        // true  -> Array#includes
        var toIObject = _dereq_(107)
          , toLength  = _dereq_(108)
        Severity: Minor
        Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs 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 62 has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
        Open

        },{}],62:[function(_dereq_,module,exports){
        var META     = _dereq_(114)('meta')
          , isObject = _dereq_(49)
          , has      = _dereq_(39)
          , setDesc  = _dereq_(67).f
        Severity: Minor
        Found in app/assets/javascripts/babel/polyfill.js - About 4 hrs 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 37 has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"7":7}],37:[function(_dereq_,module,exports){
        var ctx         = _dereq_(25)
          , call        = _dereq_(51)
          , isArrayIter = _dereq_(46)
          , anObject    = _dereq_(7)
        Severity: Minor
        Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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 128 has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"12":12,"32":32,"96":96}],128:[function(_dereq_,module,exports){
        'use strict';
        var ctx            = _dereq_(25)
          , $export        = _dereq_(32)
          , toObject       = _dereq_(109)
        Severity: Minor
        Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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

        Consider simplifying this complex logical expression.
        Open

        if(_dereq_(28)){
          var LIBRARY             = _dereq_(58)
            , global              = _dereq_(38)
            , fails               = _dereq_(34)
            , $export             = _dereq_(32)
        Severity: Critical
        Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs to fix

          Function makeInvokeMethod has 91 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function makeInvokeMethod(innerFn, self, context) {
              var state = GenStateSuspendedStart;
          
              return function invoke(method, arg) {
                if (state === GenStateExecuting) {
          Severity: Major
          Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs to fix

            Function 21 has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
            Open

            },{"10":10,"17":17}],21:[function(_dereq_,module,exports){
            'use strict';
            var redefineAll       = _dereq_(86)
              , getWeak           = _dereq_(62).getWeak
              , anObject          = _dereq_(7)
            Severity: Minor
            Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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 invoke has 88 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                return function invoke(method, arg) {
                  if (state === GenStateExecuting) {
                    throw new Error("Generator is already running");
                  }
            
            
            Severity: Major
            Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs to fix

              File external-helpers.js has 312 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              var babelHelpers = {};
              babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
                return typeof obj;
              } : function (obj) {
                return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
              Severity: Minor
              Found in app/assets/javascripts/babel/external-helpers.js - About 3 hrs to fix

                Function 64 has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                Open

                },{"150":150,"256":256,"32":32,"94":94}],64:[function(_dereq_,module,exports){
                var global    = _dereq_(38)
                  , macrotask = _dereq_(104).set
                  , Observer  = global.MutationObserver || global.WebKitMutationObserver
                  , process   = global.process
                Severity: Minor
                Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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 jsx has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
                Open

                babelHelpers.jsx = function () {
                  var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7;
                  return function createRawReactElement(type, props, key, children) {
                    var defaultProps = type && type.defaultProps;
                    var childrenLength = arguments.length - 3;
                Severity: Minor
                Found in app/assets/javascripts/babel/external-helpers.js - About 3 hrs 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 17 has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring.
                Open

                },{"3":3,"44":44,"49":49}],17:[function(_dereq_,module,exports){
                // getting tag from 19.1.3.6 Object.prototype.toString()
                var cof = _dereq_(18)
                  , TAG = _dereq_(117)('toStringTag')
                  // ES3 wrong here
                Severity: Minor
                Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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 87 has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                Open

                },{"87":87}],87:[function(_dereq_,module,exports){
                var global    = _dereq_(38)
                  , hide      = _dereq_(40)
                  , has       = _dereq_(39)
                  , SRC       = _dereq_(114)('src')
                Severity: Minor
                Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs 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 21 has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{"10":10,"17":17}],21:[function(_dereq_,module,exports){
                'use strict';
                var redefineAll       = _dereq_(86)
                  , getWeak           = _dereq_(62).getWeak
                  , anObject          = _dereq_(7)
                Severity: Major
                Found in app/assets/javascripts/babel/polyfill.js - About 3 hrs to fix
                  Severity
                  Category
                  Status
                  Source
                  Language