Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 186 of 186 total issues

Function 67 has a Cognitive Complexity of 38 (exceeds 5 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 5 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 8 has 140 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../Module.js":4}],8:[function(require,module,exports){
"use strict";

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

Severity: Major
Found in examples/browser/main.js - About 5 hrs to fix

    Function 31 has a Cognitive Complexity of 37 (exceeds 5 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 5 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

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

    var Module = exports.Module = (function () {
        function Module() {
            var args = arguments[0] === undefined ? { name: "" } : arguments[0];
            _classCallCheck(this, Module);
    
    
    Severity: Major
    Found in build/Module.js and 1 other location - About 5 hrs to fix
    examples/browser/main.js on lines 195..216

    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 145.

    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

    var Module = exports.Module = (function () {
        function Module() {
            var args = arguments[0] === undefined ? { name: "" } : arguments[0];
            _classCallCheck(this, Module);
    
    
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 5 hrs to fix
    build/Module.js on lines 11..32

    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 145.

    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 101 has 136 lines of code (exceeds 25 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: Major
    Found in examples/browser/main.js - About 5 hrs to fix

      Function DataSource has 127 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var DataSource = exports.DataSource = (function (Module) {
          function DataSource() {
              var args = arguments[0] === undefined ? { source: undefined, name: "" } : arguments[0];
              _classCallCheck(this, DataSource);
      
      
      Severity: Major
      Found in examples/browser/main.js - About 5 hrs to fix

        Function DataSource has 127 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var DataSource = exports.DataSource = (function (Module) {
            function DataSource() {
                var args = arguments[0] === undefined ? { source: undefined, name: "" } : arguments[0];
                _classCallCheck(this, DataSource);
        
        
        Severity: Major
        Found in build/lib/DataSource.js - About 5 hrs to fix

          Function 19 has 126 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"./$":34,"./$.wks":48}],19:[function(require,module,exports){
          'use strict';
          var $        = require('./$')
            , ctx      = require('./$.ctx')
            , safe     = require('./$.uid').safe
          Severity: Major
          Found in examples/browser/main.js - About 5 hrs to fix

            Function 81 has 125 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{"./$":34,"./$.cof":18,"./$.def":24,"./$.throws":45}],81:[function(require,module,exports){
            'use strict';
            // ECMAScript 6 symbols shim
            var $        = require('./$')
              , setTag   = require('./$.cof').set
            Severity: Major
            Found in examples/browser/main.js - About 5 hrs to fix

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

              },{"./$.assert":16}],24:[function(require,module,exports){
              var $          = require('./$')
                , global     = $.g
                , core       = $.core
                , isFunction = $.isFunction;
              Severity: Minor
              Found in examples/browser/main.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 71 has a Cognitive Complexity of 33 (exceeds 5 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 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 70 has 122 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              },{"./$":34,"./$.assert":16,"./$.cof":18,"./$.ctx":23,"./$.def":24,"./$.for-of":27,"./$.iter-detect":32,"./$.set-proto":39,"./$.species":40,"./$.task":44,"./$.uid":46,"./$.wks":48}],70:[function(require,module,exports){
              var $         = require('./$')
                , $def      = require('./$.def')
                , setProto  = require('./$.set-proto')
                , $iter     = require('./$.iter')
              Severity: Major
              Found in examples/browser/main.js - About 4 hrs to fix

                Function 11 has a Cognitive Complexity of 31 (exceeds 5 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: Minor
                Found in examples/browser/main.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 8 has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
                Open

                },{"../Module.js":4}],8:[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 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 21 has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
                Open

                },{"./$.def":24,"./$.for-of":27}],21:[function(require,module,exports){
                'use strict';
                var $         = require('./$')
                  , safe      = require('./$.uid').safe
                  , assert    = require('./$.assert')
                Severity: Minor
                Found in examples/browser/main.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

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

                var _inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; };
                Severity: Major
                Found in examples/browser/main.js and 9 other locations - About 4 hrs to fix
                build/lib/Component.js on lines 7..7
                build/lib/Controller.js on lines 5..5
                build/lib/DataSource.js on lines 9..9
                build/lib/DataSources.js on lines 7..7
                build/lib/View.js on lines 7..7
                examples/browser/main.js on lines 353..353
                examples/browser/main.js on lines 494..494
                examples/browser/main.js on lines 736..736
                examples/browser/main.js on lines 882..882

                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 118.

                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 10 locations. Consider refactoring.
                Open

                var _inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; };
                Severity: Major
                Found in examples/browser/main.js and 9 other locations - About 4 hrs to fix
                build/lib/Component.js on lines 7..7
                build/lib/Controller.js on lines 5..5
                build/lib/DataSource.js on lines 9..9
                build/lib/DataSources.js on lines 7..7
                build/lib/View.js on lines 7..7
                examples/browser/main.js on lines 353..353
                examples/browser/main.js on lines 452..452
                examples/browser/main.js on lines 736..736
                examples/browser/main.js on lines 882..882

                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 118.

                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 10 locations. Consider refactoring.
                Open

                var _inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; };
                Severity: Major
                Found in build/lib/View.js and 9 other locations - About 4 hrs to fix
                build/lib/Component.js on lines 7..7
                build/lib/Controller.js on lines 5..5
                build/lib/DataSource.js on lines 9..9
                build/lib/DataSources.js on lines 7..7
                examples/browser/main.js on lines 353..353
                examples/browser/main.js on lines 452..452
                examples/browser/main.js on lines 494..494
                examples/browser/main.js on lines 736..736
                examples/browser/main.js on lines 882..882

                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 118.

                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 10 locations. Consider refactoring.
                Open

                var _inherits = function (subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; };
                Severity: Major
                Found in examples/browser/main.js and 9 other locations - About 4 hrs to fix
                build/lib/Component.js on lines 7..7
                build/lib/Controller.js on lines 5..5
                build/lib/DataSource.js on lines 9..9
                build/lib/DataSources.js on lines 7..7
                build/lib/View.js on lines 7..7
                examples/browser/main.js on lines 353..353
                examples/browser/main.js on lines 452..452
                examples/browser/main.js on lines 494..494
                examples/browser/main.js on lines 736..736

                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 118.

                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

                Severity
                Category
                Status
                Source
                Language