Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 186 of 186 total issues

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 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 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/Controller.js and 9 other locations - About 4 hrs to fix
build/lib/Component.js on lines 7..7
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
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/Component.js and 9 other locations - About 4 hrs to fix
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
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/DataSources.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/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
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/DataSource.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/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
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

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

},{"core-js/shim":97,"regenerator/runtime":98}],14:[function(require,module,exports){
// false -> Array#indexOf
// true  -> Array#includes
var $ = require('./$');
module.exports = function(IS_INCLUDES){
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 61 has 100 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./$.collection":22,"./$.collection-strong":19}],61:[function(require,module,exports){
var Infinity = 1 / 0
  , $def  = require('./$.def')
  , E     = Math.E
  , pow   = Math.pow
Severity: Major
Found in examples/browser/main.js - About 4 hrs to fix

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

    },{}],5:[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 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 makeInvokeMethod has 92 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 examples/browser/main.js - About 3 hrs to fix

      Function 34 has 92 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{"./$":34,"./$.assert":16,"./$.cof":18,"./$.wks":48}],34:[function(require,module,exports){
      'use strict';
      var global = typeof self != 'undefined' ? self : Function('return this')()
        , core   = {}
        , defineProperty = Object.defineProperty
      Severity: Major
      Found in examples/browser/main.js - About 3 hrs to fix

        Function 54 has a Cognitive Complexity of 25 (exceeds 5 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 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 89 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 examples/browser/main.js - About 3 hrs to fix

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

              initialize: function () {
                  this.model.onCreate(this.view.render);
                  this.model.onUpdate(this.view.render);
                  this.model.onRemove(this.view.render);
                  this.model.onGet(this.view.render);
          Severity: Major
          Found in examples/src/mvc.js and 1 other location - About 3 hrs to fix
          examples/mvc.js on lines 53..58

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

          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

              initialize: function () {
                  this.model.onCreate(this.view.render);
                  this.model.onUpdate(this.view.render);
                  this.model.onRemove(this.view.render);
                  this.model.onGet(this.view.render);
          Severity: Major
          Found in examples/mvc.js and 1 other location - About 3 hrs to fix
          examples/src/mvc.js on lines 48..53

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

          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 34 has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
          Open

          },{"./$":34,"./$.assert":16,"./$.cof":18,"./$.wks":48}],34:[function(require,module,exports){
          'use strict';
          var global = typeof self != 'undefined' ? self : Function('return this')()
            , core   = {}
            , defineProperty = Object.defineProperty
          Severity: Minor
          Found in examples/browser/main.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 77 lines of code (exceeds 25 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: Major
          Found in examples/browser/main.js - About 3 hrs to fix

            Function 3 has 76 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            },{}],3:[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 3 hrs to fix

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

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

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

                },{"../Module.js":4,"babel/polyfill":100}],7:[function(require,module,exports){
                "use strict";
                
                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 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

                Severity
                Category
                Status
                Source
                Language