Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 186 of 186 total issues

Function e has a Cognitive Complexity of 16 (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){
Severity: Minor
Found in examples/browser/main.js - About 2 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 11 has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../EventTypes.js":2}],11:[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: Major
Found in examples/browser/main.js - About 2 hrs to fix

    Function getConstructor has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      getConstructor: function(NAME, IS_MAP, ADDER){
        function C(){
          var that     = assert.inst(this, C, NAME)
            , iterable = arguments[0];
          set(that, O1, $.create(null));
    Severity: Major
    Found in examples/browser/main.js - About 2 hrs to fix

      Function 97 has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"./$":34,"./$.def":24,"./$.invoke":29,"./$.partial":37}],97:[function(require,module,exports){
      require('./modules/es5');
      require('./modules/es6.symbol');
      require('./modules/es6.object.assign');
      require('./modules/es6.object.is');
      Severity: Minor
      Found in examples/browser/main.js - About 1 hr to fix

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        var helloCtrl = new Controller({
            name: 'HelloWorld',
            // View for controller, also called HelloWorld, will be renamed internally to HelloWorldView
            view: new View({
                name: 'HelloWorld',
        Severity: Major
        Found in examples/browser/main.js and 1 other location - About 1 hr to fix
        examples/browser/src.js on lines 21..31

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 74.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

        var helloCtrl = new Controller({
            name: 'HelloWorld',
            // View for controller, also called HelloWorld, will be renamed internally to HelloWorldView
            view: new View({
                name: 'HelloWorld',
        Severity: Major
        Found in examples/browser/src.js and 1 other location - About 1 hr to fix
        examples/browser/main.js on lines 983..993

        Duplicated Code

        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

        Tuning

        This issue has a mass of 74.

        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

        Refactorings

        Further Reading

        Function 58 has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./$.species":40}],58:[function(require,module,exports){
        var $             = require('./$')
          , HAS_INSTANCE  = require('./$.wks')('hasInstance')
          , FunctionProto = Function.prototype;
        // 19.2.3.6 Function.prototype[@@hasInstance](V)
        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 ArrayDataSource has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
        Open

        var ArrayDataSource = exports.ArrayDataSource = (function () {
            function ArrayDataSource() {
                _classCallCheck(this, ArrayDataSource);
        
                this.data = [];
        Severity: Minor
        Found in build/lib/ArrayDataSource.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 exports has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function(NAME, methods, common, IS_MAP, IS_WEAK){
          var Base  = $.g[NAME]
            , C     = Base
            , ADDER = IS_MAP ? 'set' : 'add'
            , proto = C && C.prototype
        Severity: Minor
        Found in examples/browser/main.js - About 1 hr to fix

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

          },{"./$.assert":16}],31:[function(require,module,exports){
          var $def            = require('./$.def')
            , $               = require('./$')
            , cof             = require('./$.cof')
            , $iter           = require('./$.iter')
          Severity: Minor
          Found in examples/browser/main.js - About 1 hr to fix

            Function Component has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

            var Component = exports.Component = (function (Module) {
                function Component() {
                    var args = arguments[0] === undefined ? { components: [], template: function () {
                            return "";
                        }, name: "" } : arguments[0];
            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 18 has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

            },{"./$":34,"./$.enum-keys":26}],18:[function(require,module,exports){
            var $        = require('./$')
              , TAG      = require('./$.wks')('toStringTag')
              , toString = {}.toString;
            function cof(it){
            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

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            },{"./$.def":24,"./$.string-at":41}],91:[function(require,module,exports){
            'use strict';
            var $def = require('./$.def')
              , $pad = require('./$.string-pad');
            $def($def.P, 'String', {
            Severity: Major
            Found in examples/browser/main.js and 1 other location - About 1 hr to fix
            examples/browser/main.js on lines 3677..3686

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 69.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Similar blocks of code found in 2 locations. Consider refactoring.
            Open

            },{"./$.def":24,"./$.string-pad":42}],92:[function(require,module,exports){
            'use strict';
            var $def = require('./$.def')
              , $pad = require('./$.string-pad');
            $def($def.P, 'String', {
            Severity: Major
            Found in examples/browser/main.js and 1 other location - About 1 hr to fix
            examples/browser/main.js on lines 3668..3677

            Duplicated Code

            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

            Tuning

            This issue has a mass of 69.

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            Function View has 41 lines of code (exceeds 25 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 1 hr to fix

              Function 62 has 41 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"./$.def":24}],62:[function(require,module,exports){
              'use strict';
              var $          = require('./$')
                , isObject   = $.isObject
                , isFunction = $.isFunction
              Severity: Minor
              Found in examples/browser/main.js - About 1 hr to fix

                Function View has 41 lines of code (exceeds 25 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 examples/browser/main.js - About 1 hr to fix

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

                  },{"./$":34}],42:[function(require,module,exports){
                  // http://wiki.ecmascript.org/doku.php?id=strawman:string_padding
                  var $      = require('./$')
                    , repeat = require('./$.string-repeat');
                  
                  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 71 has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  },{"./$":34,"./$.assert":16,"./$.def":24,"./$.iter":33,"./$.own-keys":36,"./$.set-proto":39,"./$.uid":46,"./$.wks":48}],71:[function(require,module,exports){
                  var $       = require('./$')
                    , cof     = require('./$.cof')
                    , $RegExp = $.g.RegExp
                    , Base    = $RegExp
                  Severity: Minor
                  Found in examples/browser/main.js - About 1 hr to fix

                    Function 67 has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    },{"./$.def":24,"./$.set-proto":39}],67:[function(require,module,exports){
                    var $        = require('./$')
                      , $def     = require('./$.def')
                      , isObject = $.isObject
                      , toObject = $.toObject;
                    Severity: Minor
                    Found in examples/browser/main.js - About 1 hr to fix
                      Severity
                      Category
                      Status
                      Source
                      Language