src/assets/js/games/tower/main.js

Summary

Maintainability
F
2 wks
Test Coverage

File main.js has 1639 lines of code (exceeds 250 allowed). Consider refactoring.
Open

!function (t) {
    var e = {};

    function n(i) {
        if (e[i]) return e[i].exports;
Severity: Major
Found in src/assets/js/games/tower/main.js - About 4 days to fix

    Function n has 493 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                var e, n = function () {
                    var e, n, i, r, a, o = [], s = o.concat, u = o.filter, c = o.slice, l = document, h = {}, f = {}, d = {"column-count": 1, columns: 1, "font-weight": 1, "line-height": 1, opacity: 1, "z-index": 1, zoom: 1},
                        p = /^\s*<(\w+|!)[^>]*>/, g = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, v = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, m = /^(?:body|html)$/i, y = /([A-Z])/g,
                        b = ["val", "css", "html", "text", "data", "width", "height", "offset"], E = l.createElement("table"), x = l.createElement("tr"),
                        T = {tr: l.createElement("tbody"), tbody: E, thead: E, tfoot: E, td: x, th: x, "*": l.createElement("div")}, O = /complete|loaded|interactive/, w = /^[\w-]*$/, A = {}, _ = A.toString, k = {}, M = l.createElement("div"),
    Severity: Major
    Found in src/assets/js/games/tower/main.js - About 2 days to fix

      Function E has 333 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          var m = l, y = u, b = c, E = function () {
              function t() {
                  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                  if (g(this, t), document.createElement("canvas").getContext) {
                      var n = e.canvasId, r = e.debug, a = e.width, o = e.height, s = e.highResolution, u = e.loadLimit, c = e.soundOn, l = a || window.innerWidth, h = o || window.innerHeight;
      Severity: Major
      Found in src/assets/js/games/tower/main.js - About 1 day to fix

        Consider simplifying this complex logical expression.
        Open

                            if (b && b.promise(k), y.crossDomain || A("X-Requested-With", "XMLHttpRequest"), A("Accept", O || "*/*"), (O = y.mimeType || O) && (O.indexOf(",") > -1 && (O = O.split(",", 2)[0]), k.overrideMimeType && k.overrideMimeType(O)), (y.contentType || !1 !== y.contentType && y.data && "GET" != y.type.toUpperCase()) && A("Content-Type", y.contentType || "application/x-www-form-urlencoded"), y.headers) for (i in y.headers) A(i, y.headers[i]);
        Severity: Critical
        Found in src/assets/js/games/tower/main.js - About 3 hrs to fix

          Function $ has 70 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              }, $ = function (t, e, n) {
                  var i = t, r = typeof e !== 'undefined' ? e.getVariable("ROPE_HEIGHT") : 0;
                  if (i.visible) {
                      i.ready || (i.ready = !0, i.status = "SWING", t.updateWidth(e.getVariable("BLOCK_WIDTH")), t.updateHeight(e.getVariable("BLOCK_HEIGHT")), t.x = e.width / 2, t.y = -1.5 * r);
                      var a = e.getInstance("line");
          Severity: Major
          Found in src/assets/js/games/tower/main.js - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                    if (i.visible) {
                        i.ready || (i.ready = !0, i.status = "SWING", t.updateWidth(e.getVariable("BLOCK_WIDTH")), t.updateHeight(e.getVariable("BLOCK_HEIGHT")), t.x = e.width / 2, t.y = -1.5 * r);
                        var a = e.getInstance("line");
                        switch (i.status) {
                            case"SWING":
            Severity: Critical
            Found in src/assets/js/games/tower/main.js - About 2 hrs to fix

              Function tt has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  }, tt = function (t) {
                      if (t.getVariable("GAME_START_NOW")) {
                          var e = t.getInstance("block_".concat(t.getVariable("BLOCK_COUNT")));
                          if (!e || [w, A].indexOf(e.status) > -1) {
                              if (_(t) && k(t)) return;
              Severity: Minor
              Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                Function ajax has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                }, e.ajax = function (r) {
                                    var o, g, y = e.extend({}, r || {}), b = e.Deferred && e.Deferred();
                                    for (n in e.ajaxSettings) void 0 === y[n] && (y[n] = e.ajaxSettings[n]);
                                    !function (t) {
                                        t.global && 0 == e.active++ && h(t, null, "ajaxStart")
                Severity: Minor
                Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                                  if (E = E || function (t) {
                                                      return t && (t = t.split(";", 2)[0]), t && ("text/html" == t ? "html" : "application/json" == t ? "json" : s.test(t) ? "script" : u.test(t) && "xml") || "text"
                                                  }(y.mimeType || k.getResponseHeader("content-type")), "arraybuffer" == k.responseType || "blob" == k.responseType) t = k.response; else {
                                                      t = k.responseText;
                                                      try {
                  Severity: Critical
                  Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                    Function t has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            function t() {
                                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
                                if (g(this, t), document.createElement("canvas").getContext) {
                                    var n = e.canvasId, r = e.debug, a = e.width, o = e.height, s = e.highResolution, u = e.loadLimit, c = e.soundOn, l = a || window.innerWidth, h = o || window.innerHeight;
                                    this.canvas = document.getElementById(n), s && (this.canvas.style.width = "".concat(l, "px"), this.canvas.style.height = "".concat(h, "px"), l *= 2, h *= 2), this.highResolution = s, this.canvas.width = l, this.canvas.height = h, this.width = this.canvas.width, this.height = this.canvas.height, this.calWidth = .5 * this.width, this.calHeight = .5 * this.height, this.debug = !!r, this.ctx = this.canvas.getContext("2d"), this.defaultLayer = "default", this.layerArr = [this.defaultLayer], this.instancesObj = {}, this.instancesObj[this.defaultLayer] = [], this.instancesReactionArr = [], this.utils = i, this.customVariable = {};
                    Severity: Minor
                    Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                          if (x && (E = "jsonp"), !1 !== y.cache && (r && !0 === r.cache || "script" != E && "jsonp" != E) || (y.url = m(y.url, "_=" + Date.now())), "jsonp" == E) return x || (y.url = m(y.url, y.jsonp ? y.jsonp + "=?" : !1 === y.jsonp ? "" : "callback=?")), e.ajaxJSONP(y, b);
                      Severity: Critical
                      Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                        Function TowerGameJS has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            window.TowerGameJS = function () {
                                var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = t.width, n = t.height, i = t.canvasId, r = t.soundOn, a = new E({canvasId: i, highResolution: !0, width: e, height: n, soundOn: r}), o = function (t) {
                                    return "./assets/img/games/tower/".concat(t)
                                };
                                a.addImg("background", o("background.png")), a.addImg("hook", o("hook.png")), a.addImg("blockRope", o("block-rope.png")), a.addImg("block", o("block.png")), a.addImg("block-perfect", o("block-perfect.png"));
                        Severity: Minor
                        Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                      if (g(this, t), document.createElement("canvas").getContext) {
                                          var n = e.canvasId, r = e.debug, a = e.width, o = e.height, s = e.highResolution, u = e.loadLimit, c = e.soundOn, l = a || window.innerWidth, h = o || window.innerHeight;
                                          this.canvas = document.getElementById(n), s && (this.canvas.style.width = "".concat(l, "px"), this.canvas.style.height = "".concat(h, "px"), l *= 2, h *= 2), this.highResolution = s, this.canvas.width = l, this.canvas.height = h, this.width = this.canvas.width, this.height = this.canvas.height, this.calWidth = .5 * this.width, this.calHeight = .5 * this.height, this.debug = !!r, this.ctx = this.canvas.getContext("2d"), this.defaultLayer = "default", this.layerArr = [this.defaultLayer], this.instancesObj = {}, this.instancesObj[this.defaultLayer] = [], this.instancesReactionArr = [], this.utils = i, this.customVariable = {};
                                          var f = this;
                                          this.isTouchDevice = b(), this.debugArr = [], this.assetsObj = {image: {}, audio: {}}, this.assetsCount = {
                          Severity: Major
                          Found in src/assets/js/games/tower/main.js - About 1 hr to fix

                            Function v has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                            function v(t, n, i, r, a, s, u) {
                            Severity: Major
                            Found in src/assets/js/games/tower/main.js - About 50 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                                          if (n.dataFilter == v) return t;
                              Severity: Major
                              Found in src/assets/js/games/tower/main.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if (n) return p(n, "parsererror", k, y, b)
                                Severity: Major
                                Found in src/assets/js/games/tower/main.js - About 45 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if (t.getVariable("GAME_START_NOW") && !(t.debug && t.paused || "HOOK_NORMAL" !== S(t))) {
                                              t.removeInstance("tutorial"), t.removeInstance("tutorial-arrow");
                                              var e = t.getInstance("block_".concat(t.getVariable("BLOCK_COUNT")));
                                              e && "SWING" === e.status && (t.setTimeMovement("HOOK_UP_MOVEMENT", 500), e.status = "BEFORE_DROP")
                                          }
                                  Severity: Major
                                  Found in src/assets/js/games/tower/main.js - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                                if (k.status >= 200 && k.status < 300 || 304 == k.status || 0 == k.status && "file:" == _) {
                                                                    if (E = E || function (t) {
                                                                        return t && (t = t.split(";", 2)[0]), t && ("text/html" == t ? "html" : "application/json" == t ? "json" : s.test(t) ? "script" : u.test(t) && "xml") || "text"
                                                                    }(y.mimeType || k.getResponseHeader("content-type")), "arraybuffer" == k.responseType || "blob" == k.responseType) t = k.response; else {
                                                                        t = k.responseText;
                                    Severity: Major
                                    Found in src/assets/js/games/tower/main.js - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                      if (c) {
                                                          c.processing || (this.timeMovementStartArr.push(t), c.store[u] = [], e.forEach((function (t) {
                                                              c.store[u].push({start: parseFloat(t[0]), end: parseFloat(t[1])})
                                                          })), a && a());
                                                          var l = function () {
                                      Severity: Major
                                      Found in src/assets/js/games/tower/main.js - About 40 mins to fix

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

                                                        }, e.fn.on = function (t, n, o, s, u) {
                                        Severity: Minor
                                        Found in src/assets/js/games/tower/main.js - About 35 mins to fix

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

                                                          function p(t, e, n, i, r) {
                                          Severity: Minor
                                          Found in src/assets/js/games/tower/main.js - About 35 mins to fix

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

                                                            function m(t, e, n, i, r) {
                                            Severity: Minor
                                            Found in src/assets/js/games/tower/main.js - About 35 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                                          if (void 0 !== e) return n(e).find(t);
                                              Severity: Major
                                              Found in src/assets/js/games/tower/main.js - About 30 mins to fix

                                                Avoid too many return statements within this function.
                                                Open

                                                                    return k.Z(i, t)
                                                Severity: Major
                                                Found in src/assets/js/games/tower/main.js - About 30 mins to fix

                                                  Avoid too many return statements within this function.
                                                  Open

                                                                          return this.each((function () {
                                                                              this.style.cssText += ";" + u
                                                                          }))
                                                  Severity: Major
                                                  Found in src/assets/js/games/tower/main.js - About 30 mins to fix

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

                                                        function T(t, e) {
                                                            for (var n = 0; n < e.length; n++) {
                                                                var i = e[n];
                                                                i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
                                                            }
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 4 hrs to fix
                                                    src/assets/js/games/tower/main.js on lines 953..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 116.

                                                    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

                                                        function v(t, e) {
                                                            for (var n = 0; n < e.length; n++) {
                                                                var i = e[n];
                                                                i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i)
                                                            }
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 4 hrs to fix
                                                    src/assets/js/games/tower/main.js on lines 1301..1306

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

                                                    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

                                                                                r.angle = a * M(e, n), r.weightX = r.x + Math.sin(r.angle) * i, r.weightY = r.y + Math.cos(r.angle) * i
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 2 hrs to fix
                                                    src/assets/js/games/tower/main.js on lines 1467..1467

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

                                                    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

                                                            t.angle = r * M(e, n), t.weightX = t.x + Math.sin(t.angle) * i, t.weightY = t.y + Math.cos(t.angle) * i
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 2 hrs to fix
                                                    src/assets/js/games/tower/main.js on lines 1499..1499

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

                                                    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

                                                        }, U = function (t, e) {
                                                            var n = e.ctx, i = e.getImg(t.imgName);
                                                            n.drawImage(i, t.x, t.y, t.width, t.height)
                                                        }, G = function (t, e, n) {
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1599..1602

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

                                                    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

                                                        }, Y = function (t, e) {
                                                            var n = e.ctx, i = e.getImg(t.imgName);
                                                            n.drawImage(i, t.x, t.y, t.width, t.height)
                                                        }, J = function (t, e, n) {
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1452..1455

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

                                                    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

                                                                            case 2:
                                                                                i.status = "ROTATE_LEFT", t.y = u, t.outwardOffset = a.x + t.calWidth - t.x, c(t);
                                                                                break;
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1521..1523

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

                                                    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

                                                                            case 3:
                                                                                i.status = "ROTATE_RIGHT", t.y = u, t.outwardOffset = a.collisionX + t.calWidth - t.x, c(t);
                                                                                break;
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1518..1520

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

                                                    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

                                                            for (var s = 1; s <= 8; s += 1) a.addImg("c".concat(s), o("c".concat(s, ".png")));
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1670..1670

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

                                                    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

                                                            for (var u = 1; u <= 7; u += 1) a.addImg("f".concat(u), o("f".concat(u, ".png")));
                                                    Severity: Major
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 1 hr to fix
                                                    src/assets/js/games/tower/main.js on lines 1668..1668

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

                                                    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

                                                                    }, e.getJSON = function () {
                                                                        var t = y.apply(null, arguments);
                                                                        return t.dataType = "json", e.ajax(t)
                                                                    }, e.fn.load = function (t, n, i) {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 50 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 815..818

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

                                                    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

                                                                    }, e.post = function () {
                                                                        var t = y.apply(null, arguments);
                                                                        return t.type = "POST", e.ajax(t)
                                                                    }, e.getJSON = function () {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 50 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 818..821

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

                                                    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

                                                            }), e.getTimeMovement("HOOK_DOWN_MOVEMENT", [[t.y, t.y + i]], (function (e) {
                                                                t.y = e
                                                            }), {name: "hook"});
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 50 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1493..1495

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

                                                    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

                                                                        e.getTimeMovement("HOOK_DOWN_MOVEMENT", [[t.y, t.y + r]], (function (e) {
                                                                            t.y = e
                                                                        }), {name: "block"}), function (t, e, n) {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 50 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1463..1465

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

                                                    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

                                                                    }, e.fn.live = function (t, n) {
                                                                        return e(document.body).delegate(this.selector, t, n), this
                                                                    }, e.fn.die = function (t, n) {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 40 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 654..656

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

                                                    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

                                                                    }, e.fn.die = function (t, n) {
                                                                        return e(document.body).undelegate(this.selector, t, n), this
                                                                    }, e.fn.on = function (t, n, o, s, u) {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 40 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 652..654

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

                                                    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

                                                                    }, r.onerror = function () {
                                                                        n.assetsErrorQueue.push({name: t, src: e, retry: i + 1, type: "image"})
                                                                    }
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 35 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1015..1017

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

                                                    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

                                                                        r.src = e, this.assetsObj.audio[t] = r, r.addEventListener("error", (function () {
                                                                            n.assetsErrorQueue.push({name: t, src: e, retry: i + 1, type: "audio"})
                                                                        }), !1), r.load()
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 35 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1058..1060

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

                                                    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

                                                            t.x += t.ax, (t.x >= t.originX + t.width || t.x <= t.originX - t.width) && (t.ax *= -1), _(e) && (t.y += 1.2 * k(e)), t.y >= e.height && (t.y = .66 * -e.height, t.count += 4, j(t))
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1510..1510

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

                                                    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 e = t.getVariable("SUCCESS_COUNT"), n = t.getVariable("GAME_SCORE"), i = t.getVariable("GAME_USER_OPTION").hookAngle;
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1360..1360

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

                                                    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

                                                                            })); else if (P(t)) i = [t], t = null; else if (p.test(t)) i = k.fragment(t.trim(), RegExp.$1, e), t = null; else {
                                                                                if (void 0 !== e) return n(e).find(t);
                                                                                i = k.qsa(l, t)
                                                                            }
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 174..177

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

                                                    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

                                                                            return t.y + t.height >= e.y ? t.x < e.x - t.calWidth || t.x > e.collisionX + t.calWidth ? 1 : t.x < e.x ? 2 : t.x > e.collisionX ? 3 : t.x > e.x + .8 * t.calWidth && t.x < e.x + 1.2 * t.calWidth ? 5 : 4 : 0
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1451..1451

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

                                                    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 n = t.getVariable("SUCCESS_COUNT"), i = t.getVariable("GAME_SCORE"), r = t.getVariable("GAME_USER_OPTION").landBlockSpeed;
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 1622..1622

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

                                                    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

                                                                        if ("string" == typeof t) if ("<" == (t = t.trim())[0] && p.test(t)) i = k.fragment(t, RegExp.$1, e), t = null; else {
                                                                            if (void 0 !== e) return n(e).find(t);
                                                                            i = k.qsa(l, t)
                                                                        } else {
                                                    Severity: Minor
                                                    Found in src/assets/js/games/tower/main.js and 1 other location - About 30 mins to fix
                                                    src/assets/js/games/tower/main.js on lines 182..185

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

                                                    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

                                                    There are no issues that match your filters.

                                                    Category
                                                    Status