Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 121 of 186 total issues

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

},{}],3:[function(require,module,exports){
"use strict";

var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };

Severity: Minor
Found in examples/browser/main.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 11 (exceeds 5 allowed). Consider refactoring.
Open

},{"./$":34,"./$.ctx":23}],16:[function(require,module,exports){
var $ = require('./$');
function assert(condition, msg1, msg2){
  if(!condition)throw TypeError(msg2 ? msg1 + msg2 : msg1);
}
Severity: Minor
Found in examples/browser/main.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 82 has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./$":34,"./$.assert":16,"./$.cof":18,"./$.def":24,"./$.enum-keys":26,"./$.keyof":35,"./$.uid":46,"./$.wks":48}],82:[function(require,module,exports){
'use strict';
var $         = require('./$')
  , weak      = require('./$.collection-weak')
  , leakStore = weak.leakStore
Severity: Minor
Found in examples/browser/main.js - About 1 hr to fix

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

    module.exports = function(TYPE){
      var IS_MAP        = TYPE == 1
        , IS_FILTER     = TYPE == 2
        , IS_SOME       = TYPE == 3
        , IS_EVERY      = TYPE == 4
    Severity: Minor
    Found in examples/browser/main.js - About 1 hr to fix

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

      },{"./$.array-methods":15,"./$.def":24,"./$.unscope":47}],54:[function(require,module,exports){
      var $     = require('./$')
        , ctx   = require('./$.ctx')
        , $def  = require('./$.def')
        , $iter = require('./$.iter')
      Severity: Minor
      Found in examples/browser/main.js - About 1 hr to fix

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

        var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc && desc.writable) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
        Severity: Minor
        Found in build/lib/Component.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 get has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

        var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc && desc.writable) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
        Severity: Minor
        Found in build/lib/Controller.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 get has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

        var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc && desc.writable) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
        Severity: Minor
        Found in build/lib/DataSource.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 get has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

        var _get = function get(object, property, receiver) { var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc && desc.writable) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
        Severity: Minor
        Found in build/lib/View.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 unsubscribe has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            PubSub.unsubscribe = function(value){
                var isTopic    = typeof value === 'string' && messages.hasOwnProperty(value),
                    isToken    = !isTopic && typeof value === 'string',
                    isFunction = typeof value === 'function',
                    result = false,
        Severity: Minor
        Found in examples/browser/main.js - About 1 hr to fix

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

          },{"./$":34,"./$.array-includes":14,"./$.array-methods":15,"./$.assert":16,"./$.cof":18,"./$.def":24,"./$.dom-create":25,"./$.invoke":29,"./$.replacer":38,"./$.throws":45,"./$.uid":46}],50:[function(require,module,exports){
          'use strict';
          var $       = require('./$')
            , $def    = require('./$.def')
            , toIndex = $.toIndex;
          Severity: Minor
          Found in examples/browser/main.js - About 1 hr to fix

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

            },{"./$":34}],63:[function(require,module,exports){
            var $     = require('./$')
              , $def  = require('./$.def')
              , abs   = Math.abs
              , floor = Math.floor
            Severity: Minor
            Found in examples/browser/main.js - About 1 hr to fix

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

              },{"./$":34,"./$.array-includes":14,"./$.array-methods":15,"./$.assert":16,"./$.cof":18,"./$.def":24,"./$.dom-create":25,"./$.invoke":29,"./$.replacer":38,"./$.throws":45,"./$.uid":46}],50:[function(require,module,exports){
              'use strict';
              var $       = require('./$')
                , $def    = require('./$.def')
                , toIndex = $.toIndex;
              Severity: Minor
              Found in examples/browser/main.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 4 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              },{"./Core.js":1,"./EventTypes.js":2,"pubsub-js":101}],4:[function(require,module,exports){
              "use strict";
              
              var _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
              
              
              Severity: Minor
              Found in examples/browser/main.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 39 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              },{}],39:[function(require,module,exports){
              // Works with __proto__ only. Old v8 can't work with null proto objects.
              /* eslint-disable no-proto */
              var $      = require('./$')
                , assert = require('./$.assert');
              Severity: Minor
              Found in examples/browser/main.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, FORCE){
              Severity: Major
              Found in examples/browser/main.js - About 50 mins to fix

                Avoid deeply nested control flow statements.
                Open

                              if (record.type === "throw") {
                                // If the return method threw an exception, let that
                                // exception prevail over the original return or throw.
                                method = "throw";
                                arg = record.arg;
                Severity: Major
                Found in examples/browser/main.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                            } else if (hasFinally) {
                              if (this.prev < entry.finallyLoc) {
                                return handle(entry.finallyLoc);
                              }
                  
                  
                  Severity: Major
                  Found in examples/browser/main.js - About 45 mins to fix

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

                    },{"./$":34,"./$.cof":18,"./$.def":24,"./$.throws":45}],75:[function(require,module,exports){
                    var $def    = require('./$.def')
                      , toIndex = require('./$').toIndex
                      , fromCharCode = String.fromCharCode
                      , $fromCodePoint = String.fromCodePoint;
                    Severity: Minor
                    Found in examples/browser/main.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 (message.hasOwnProperty(t) && message[t] === value){
                                                delete message[t];
                                                result = true;
                                            }
                    Severity: Major
                    Found in examples/browser/main.js - About 45 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language