Prodigious-Aim-Solutions/Kronicle6

View on GitHub

Showing 186 of 186 total issues

File main.js has 3562 lines of code (exceeds 250 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: Major
Found in examples/browser/main.js - About 1 wk to fix

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

    },{"./modules/$":34,"./modules/es5":49,"./modules/es6.array.copy-within":50,"./modules/es6.array.fill":51,"./modules/es6.array.find":53,"./modules/es6.array.find-index":52,"./modules/es6.array.from":54,"./modules/es6.array.iterator":55,"./modules/es6.array.of":56,"./modules/es6.array.species":57,"./modules/es6.function.has-instance":58,"./modules/es6.function.name":59,"./modules/es6.map":60,"./modules/es6.math":61,"./modules/es6.number.constructor":62,"./modules/es6.number.statics":63,"./modules/es6.object.assign":64,"./modules/es6.object.is":65,"./modules/es6.object.set-prototype-of":66,"./modules/es6.object.statics-accept-primitives":67,"./modules/es6.object.to-string":68,"./modules/es6.promise":69,"./modules/es6.reflect":70,"./modules/es6.regexp":71,"./modules/es6.set":72,"./modules/es6.string.code-point-at":73,"./modules/es6.string.ends-with":74,"./modules/es6.string.from-code-point":75,"./modules/es6.string.includes":76,"./modules/es6.string.iterator":77,"./modules/es6.string.raw":78,"./modules/es6.string.repeat":79,"./modules/es6.string.starts-with":80,"./modules/es6.symbol":81,"./modules/es6.weak-map":82,"./modules/es6.weak-set":83,"./modules/es7.array.includes":84,"./modules/es7.map.to-json":85,"./modules/es7.object.get-own-property-descriptors":86,"./modules/es7.object.to-array":87,"./modules/es7.regexp.escape":88,"./modules/es7.set.to-json":89,"./modules/es7.string.at":90,"./modules/es7.string.lpad":91,"./modules/es7.string.rpad":92,"./modules/js.array.statics":93,"./modules/web.dom.iterable":94,"./modules/web.immediate":95,"./modules/web.timers":96}],98:[function(require,module,exports){
    (function (global){
    /**
     * Copyright (c) 2014, Facebook, Inc.
     * All rights reserved.
    Severity: Minor
    Found in examples/browser/main.js - About 1 wk 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 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 and 1 other location - About 6 days to fix
    examples/browser/main.js on lines 508..725

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

    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 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 and 1 other location - About 6 days to fix
    build/lib/DataSource.js on lines 23..240

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

    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 ArrayDataSource = exports.ArrayDataSource = (function () {
        function ArrayDataSource() {
            _classCallCheck(this, ArrayDataSource);
    
            this.data = [];
    Severity: Major
    Found in build/lib/ArrayDataSource.js and 1 other location - About 3 days to fix
    examples/browser/main.js on lines 231..342

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

    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 ArrayDataSource = exports.ArrayDataSource = (function () {
        function ArrayDataSource() {
            _classCallCheck(this, ArrayDataSource);
    
            this.data = [];
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 3 days to fix
    build/lib/ArrayDataSource.js on lines 11..122

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

    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 DataSources = exports.DataSources = (function (Module) {
        function DataSources() {
            var sources = arguments[0] === undefined ? [] : arguments[0];
            _classCallCheck(this, DataSources);
    
    
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 2 days to fix
    build/lib/DataSources.js on lines 29..120

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

    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 DataSources = exports.DataSources = (function (Module) {
        function DataSources() {
            var sources = arguments[0] === undefined ? [] : arguments[0];
            _classCallCheck(this, DataSources);
    
    
    Severity: Major
    Found in build/lib/DataSources.js and 1 other location - About 2 days to fix
    examples/browser/main.js on lines 758..849

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

    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 Component = exports.Component = (function (Module) {
        function Component() {
            var args = arguments[0] === undefined ? { components: [], template: function () {
                    return "";
                }, name: "" } : arguments[0];
    Severity: Major
    Found in build/lib/Component.js and 1 other location - About 2 days to fix
    examples/browser/main.js on lines 369..443

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

    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 Component = exports.Component = (function (Module) {
        function Component() {
            var args = arguments[0] === undefined ? { components: [], template: function () {
                    return "";
                }, name: "" } : arguments[0];
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 2 days to fix
    build/lib/Component.js on lines 23..97

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

    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 Kronicle = exports.Kronicle = (function () {
        function Kronicle() {
            _classCallCheck(this, Kronicle);
    
            this.core = null;
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 2 days to fix
    build/Kronicle.js on lines 19..118

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

    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 Kronicle = exports.Kronicle = (function () {
        function Kronicle() {
            _classCallCheck(this, Kronicle);
    
            this.core = null;
    Severity: Major
    Found in build/Kronicle.js and 1 other location - About 2 days to fix
    examples/browser/main.js on lines 81..180

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

    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 View = exports.View = (function (Module) {
        function View(args) {
            _classCallCheck(this, View);
    
            this.template = args.template || function () {
    Severity: Major
    Found in build/lib/View.js and 1 other location - About 2 days to fix
    examples/browser/main.js on lines 896..958

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

    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 View = exports.View = (function (Module) {
        function View(args) {
            _classCallCheck(this, View);
    
            this.template = args.template || function () {
    Severity: Major
    Found in examples/browser/main.js and 1 other location - About 2 days to fix
    build/lib/View.js on lines 21..83

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

    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 98 has 400 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{"./modules/$":34,"./modules/es5":49,"./modules/es6.array.copy-within":50,"./modules/es6.array.fill":51,"./modules/es6.array.find":53,"./modules/es6.array.find-index":52,"./modules/es6.array.from":54,"./modules/es6.array.iterator":55,"./modules/es6.array.of":56,"./modules/es6.array.species":57,"./modules/es6.function.has-instance":58,"./modules/es6.function.name":59,"./modules/es6.map":60,"./modules/es6.math":61,"./modules/es6.number.constructor":62,"./modules/es6.number.statics":63,"./modules/es6.object.assign":64,"./modules/es6.object.is":65,"./modules/es6.object.set-prototype-of":66,"./modules/es6.object.statics-accept-primitives":67,"./modules/es6.object.to-string":68,"./modules/es6.promise":69,"./modules/es6.reflect":70,"./modules/es6.regexp":71,"./modules/es6.set":72,"./modules/es6.string.code-point-at":73,"./modules/es6.string.ends-with":74,"./modules/es6.string.from-code-point":75,"./modules/es6.string.includes":76,"./modules/es6.string.iterator":77,"./modules/es6.string.raw":78,"./modules/es6.string.repeat":79,"./modules/es6.string.starts-with":80,"./modules/es6.symbol":81,"./modules/es6.weak-map":82,"./modules/es6.weak-set":83,"./modules/es7.array.includes":84,"./modules/es7.map.to-json":85,"./modules/es7.object.get-own-property-descriptors":86,"./modules/es7.object.to-array":87,"./modules/es7.regexp.escape":88,"./modules/es7.set.to-json":89,"./modules/es7.string.at":90,"./modules/es7.string.lpad":91,"./modules/es7.string.rpad":92,"./modules/js.array.statics":93,"./modules/web.dom.iterable":94,"./modules/web.immediate":95,"./modules/web.timers":96}],98:[function(require,module,exports){
    (function (global){
    /**
     * Copyright (c) 2014, Facebook, Inc.
     * All rights reserved.
    Severity: Major
    Found in examples/browser/main.js - About 2 days to fix

      `` has 101 functions (exceeds 20 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: Major
      Found in examples/browser/main.js - About 1 day to fix

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

        },{"./$":34,"./$.uid":46}],49:[function(require,module,exports){
        var $                = require('./$')
          , cel              = require('./$.dom-create')
          , cof              = require('./$.cof')
          , $def             = require('./$.def')
        Severity: Minor
        Found in examples/browser/main.js - About 1 day 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 19 has a Cognitive Complexity of 78 (exceeds 5 allowed). Consider refactoring.
        Open

        },{"./$":34,"./$.wks":48}],19:[function(require,module,exports){
        'use strict';
        var $        = require('./$')
          , ctx      = require('./$.ctx')
          , safe     = require('./$.uid').safe
        Severity: Minor
        Found in examples/browser/main.js - About 1 day 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 Controller = exports.Controller = (function (Module) {
            function Controller() {
                var args = arguments[0] === undefined ? { model: {}, view: {}, name: "" } : arguments[0];
                _classCallCheck(this, Controller);
        
        
        Severity: Major
        Found in examples/browser/main.js and 1 other location - About 1 day to fix
        build/lib/Controller.js on lines 19..34

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

        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 Controller = exports.Controller = (function (Module) {
            function Controller() {
                var args = arguments[0] === undefined ? { model: {}, view: {}, name: "" } : arguments[0];
                _classCallCheck(this, Controller);
        
        
        Severity: Major
        Found in build/lib/Controller.js and 1 other location - About 1 day to fix
        examples/browser/main.js on lines 466..481

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

        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