Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 121 of 186 total issues

Avoid deeply nested control flow statements.
Open

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

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

    },{"./$":34,"./$.string-repeat":43}],43:[function(require,module,exports){
    'use strict';
    var $ = require('./$');
    
    module.exports = function repeat(count){
    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

            } else if(IS_EVERY)return false;          // every
    Severity: Major
    Found in examples/browser/main.js - About 45 mins to fix

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

      },{"../../build/Kronicle.js":3,"../../build/lib/ArrayDataSource.js":5,"../../build/lib/Component.js":6,"../../build/lib/Controller.js":7,"../../build/lib/DataSource.js":8,"../../build/lib/DataSources.js":9,"../../build/lib/View.js":11}],13:[function(require,module,exports){
      (function (global){
      "use strict";
      
      require("core-js/shim");
      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

              else if(res)switch(TYPE){
                case 3: return true;                    // some
                case 5: return val;                     // find
                case 6: return index;                   // findIndex
                case 2: result.push(val);               // filter
      Severity: Major
      Found in examples/browser/main.js - About 45 mins to fix

        Consider simplifying this complex logical expression.
        Open

          if(!$.isFunction(C) || !(IS_WEAK || !BUGGY && proto.forEach && proto.entries)){
            // create collection constructor
            C = common.getConstructor(NAME, IS_MAP, ADDER);
            $.mix(C.prototype, methods);
          } else {
        Severity: Major
        Found in examples/browser/main.js - About 40 mins to fix

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

          module.exports = function(NAME, methods, common, IS_MAP, IS_WEAK){
          Severity: Minor
          Found in examples/browser/main.js - About 35 mins to fix

            Function 27 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
            Open

            },{"./$":34}],27:[function(require,module,exports){
            var ctx  = require('./$.ctx')
              , get  = require('./$.iter').get
              , call = require('./$.iter-call');
            module.exports = function(iterable, entries, fn, that){
            Severity: Minor
            Found in examples/browser/main.js - About 35 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 View has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
            Open

            var View = exports.View = (function (Module) {
                function View(args) {
                    _classCallCheck(this, View);
            
                    this.template = args.template || function () {
            Severity: Minor
            Found in build/lib/View.js - About 35 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 too many return statements within this function.
            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: Major
            Found in examples/browser/main.js - About 30 mins to fix

              Avoid too many return statements within this function.
              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: Major
              Found in examples/browser/main.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                              return handle(entry.finallyLoc);
                Severity: Major
                Found in examples/browser/main.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  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: Major
                  Found in build/lib/DataSource.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    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: Major
                    Found in build/lib/Component.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      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: Major
                      Found in build/lib/View.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        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: Major
                        Found in examples/browser/main.js - About 30 mins to fix

                          Avoid too many return statements within this function.
                          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: Major
                          Found in build/lib/Controller.js - About 30 mins to fix

                            Avoid too many return statements within this function.
                            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: Major
                            Found in examples/browser/main.js - About 30 mins to fix

                              Function 1 has a Cognitive Complexity of 6 (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(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 25 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 101 has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                              Open

                              },{"babel-core/polyfill":99}],101:[function(require,module,exports){
                              /*
                              Copyright (c) 2010,2011,2012,2013,2014 Morgan Roderick http://roderick.dk
                              License: MIT - http://mrgnrdrck.mit-license.org
                              
                              
                              Severity: Minor
                              Found in examples/browser/main.js - About 25 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

                              Severity
                              Category
                              Status
                              Source
                              Language