Maingron/MaingronZelda

View on GitHub
scripts.js

Summary

Maintainability
F
2 mos
Test Coverage

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

function doEnemyTick() {
    data.temp.slicernr = 0;

    for (data.temp.iOfEnemyTick = 0; data.enemys.length > data.temp.iOfEnemyTick; data.temp.iOfEnemyTick++) {
        if (data.enemys[data.temp.iOfEnemyTick][0] == "spikes") {
Severity: Minor
Found in scripts.js - About 2 days 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

File scripts.js has 920 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var pData = { // pData means permanent Data like saves
    "runner": {},
    "leveldata": {}
};

Severity: Major
Found in scripts.js - About 2 days to fix

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

    function init2() {
        for (data.iOfInit2 = 0; data.walls.length > data.iOfInit2; data.iOfInit2++) {
            data.temp.setWalls = [];
            data.temp.setWalls[data.iOfInit2] = data.walls[data.iOfInit2].split(",");
            summonElement("wall", objects.field, +data.temp.setWalls[data.iOfInit2][1], +data.temp.setWalls[data.iOfInit2][2]);
    Severity: Minor
    Found in scripts.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 doTick has a Cognitive Complexity of 69 (exceeds 5 allowed). Consider refactoring.
    Open

    function doTick() {
    
        if (!data.runner.inmenu) {
            data.runner.oldposition.top = data.runner.position.top;
            data.runner.oldposition.left = data.runner.position.left;
    Severity: Minor
    Found in scripts.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 doMove has 136 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function doMove() {
    
        if (data.runner.position.top <= 0) {
            data.runner.cango.up = !1;
        } else if (data.runner.position.top >= data.field.height - 1) {
    Severity: Major
    Found in scripts.js - About 5 hrs to fix

      Function doEnemyTick has 132 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function doEnemyTick() {
          data.temp.slicernr = 0;
      
          for (data.temp.iOfEnemyTick = 0; data.enemys.length > data.temp.iOfEnemyTick; data.temp.iOfEnemyTick++) {
              if (data.enemys[data.temp.iOfEnemyTick][0] == "spikes") {
      Severity: Major
      Found in scripts.js - About 5 hrs to fix

        Function doTick has 107 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function doTick() {
        
            if (!data.runner.inmenu) {
                data.runner.oldposition.top = data.runner.position.top;
                data.runner.oldposition.left = data.runner.position.left;
        Severity: Major
        Found in scripts.js - About 4 hrs to fix

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

          function init2() {
              for (data.iOfInit2 = 0; data.walls.length > data.iOfInit2; data.iOfInit2++) {
                  data.temp.setWalls = [];
                  data.temp.setWalls[data.iOfInit2] = data.walls[data.iOfInit2].split(",");
                  summonElement("wall", objects.field, +data.temp.setWalls[data.iOfInit2][1], +data.temp.setWalls[data.iOfInit2][2]);
          Severity: Major
          Found in scripts.js - About 3 hrs to fix

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

            function doInMenuTick() {
            
                if (data.runner.inmenu == true) {
                    data.temp.menuGoBack = 0;
                    data.runner.cango.down = 0;
            Severity: Minor
            Found in scripts.js - About 2 hrs to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function init has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function init() {
                if (objects.field) {
                    objects.field.innerHTML = "";
                    objects.field.outerHTML = "";
                }
            Severity: Major
            Found in scripts.js - About 2 hrs to fix

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

              function destroyElement(x, y, type) {
                  for (var i = 0; i < data.allthings.length; i++) {
                      if (data.allthings[i][0] == "trigger") {
                          console.log(data.allthings[i]);
                      }
              Severity: Minor
              Found in scripts.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

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

              function summonElement(classname, childof, x = 0, y = 0, triggerdo) {
                  if(classname == "runner") {
                      if(document.getElementsByClassName("runner")[0]) {
                          document.getElementsByClassName("runner")[0].outerHTML = "";
                      }
              Severity: Minor
              Found in scripts.js - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

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

              function summonElement(classname, childof, x = 0, y = 0, triggerdo) {
                  if(classname == "runner") {
                      if(document.getElementsByClassName("runner")[0]) {
                          document.getElementsByClassName("runner")[0].outerHTML = "";
                      }
              Severity: Minor
              Found in scripts.js - About 1 hr to fix

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

                function doInMenuTick() {
                
                    if (data.runner.inmenu == true) {
                        data.temp.menuGoBack = 0;
                        data.runner.cango.down = 0;
                Severity: Minor
                Found in scripts.js - About 1 hr to fix

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

                  function randomizeGraphics() {
                  
                      // for(data.temp.iOfRandom1 = 0; document.getElementsByClassName("path1").length > data.temp.iOfRandom1; data.temp.iOfRandom1++) {
                      //     randomizeGraphicsSub1(document.getElementsByClassName("path1"));
                      // }
                  Severity: Minor
                  Found in scripts.js - About 1 hr to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Function randomizeGraphics has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function randomizeGraphics() {
                  
                      // for(data.temp.iOfRandom1 = 0; document.getElementsByClassName("path1").length > data.temp.iOfRandom1; data.temp.iOfRandom1++) {
                      //     randomizeGraphicsSub1(document.getElementsByClassName("path1"));
                      // }
                  Severity: Minor
                  Found in scripts.js - About 1 hr to fix

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

                    function doMove() {
                    
                        if (data.runner.position.top <= 0) {
                            data.runner.cango.up = !1;
                        } else if (data.runner.position.top >= data.field.height - 1) {
                    Severity: Minor
                    Found in scripts.js - About 1 hr to fix

                    Cognitive Complexity

                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                    A method's cognitive complexity is based on a few simple rules:

                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                    • Code is considered more complex for each "break in the linear flow of the code"
                    • Code is considered more complex when "flow breaking structures are nested"

                    Further reading

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

                    function saveState(name, content) {
                        if (content == "t") {
                            if (loadState(name) == 1) {
                                content = 0;
                            } else {
                    Severity: Minor
                    Found in scripts.js - About 55 mins 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

                    Avoid deeply nested control flow statements.
                    Open

                                    for (var i=0; i <= 4; i++) { // Stop player from moving
                                        setTimeout(function () {
                                            data.runner.cango = {};
                                        }, data.ticktime * i);
                                    }
                    Severity: Major
                    Found in scripts.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  if (data.runner.position.top == data.enemys[data.temp.iOfEnemyTick][2] && data.runner.position.left == data.enemys[data.temp.iOfEnemyTick][1]) {
                                      doHurt(1);
                                      data.runner.position.top = +data.runner.oldotherposition.top;
                                      data.runner.position.left = +data.runner.oldotherposition.left;
                                  } else if (data.runner.position.left == data.enemys[data.temp.iOfEnemyTick][1]) { //If above or below slicer
                      Severity: Major
                      Found in scripts.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] == "right") {
                                        if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] < +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][5] - 1) {
                                            data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]++;
                                        } else {
                                            data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                        Severity: Major
                        Found in scripts.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                          if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] > +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][4] + 1) {
                                              data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]--;
                                          } else {
                                              data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                                          }
                          Severity: Major
                          Found in scripts.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if (pData.leveldata[data.temp.triggerKeycollect[0]].keys[data.temp.triggerKeycollect[1]] == 0) {
                                                    pData.leveldata[data.temp.triggerKeycollect[0]].keys[0]++;
                                                }
                            Severity: Major
                            Found in scripts.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if (data.walls[data.temp.iOfInit2_2][2] == data.temp.setEnemys[data.iOfInit2][2]) {
                                                      if (data.walls[data.temp.iOfInit2_2][1] > data.temp.setEnemys[data.iOfInit2][1] && data.walls[data.temp.iOfInit2_2][1] < data.temp.setEnemys[data.iOfInit2][5]) {
                                                          data.temp.setEnemys[data.iOfInit2][5] = data.walls[data.temp.iOfInit2_2][1];
                                                      }
                              
                              
                              Severity: Major
                              Found in scripts.js - About 45 mins to fix

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

                                function summonElement(classname, childof, x = 0, y = 0, triggerdo) {
                                Severity: Minor
                                Found in scripts.js - About 35 mins to fix

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

                                  function summonElementKey(classname, levelnr, keynr, x, y) { // Spawn a key
                                  Severity: Minor
                                  Found in scripts.js - About 35 mins to fix

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

                                    function doTick2() {
                                        data.visibleTilesY = window.innerHeight / (10 * 9) / 2 + 3; // CSS Tile height x Zoom level + Preprocessing
                                        data.visibleTilesX = window.innerWidth / (10 * 9) / 2 + 3; // CSS Tile height x Zoom level + Preprocessing
                                    
                                        for (var i = 0; data.allthings.length > i; i++) {
                                    Severity: Minor
                                    Found in scripts.js - About 35 mins 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

                                        } else if (data.keypress.down && data.runner.cango.down) {
                                    
                                            data.runner.position.top++;
                                    
                                            setTimeout(function () {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 5 days to fix
                                    scripts.js on lines 626..709

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

                                    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

                                        if (data.keypress.up && data.runner.cango.up) {
                                    
                                            data.runner.position.top--;
                                    
                                            setTimeout(function () {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 5 days to fix
                                    scripts.js on lines 662..709

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

                                    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

                                                } else if (data.runner.position.left == data.enemys[data.temp.iOfEnemyTick][1]) { //If above or below slicer
                                    
                                    
                                                    if (data.runner.position.top > data.enemys[data.temp.iOfEnemyTick][2] && data.runner.position.top < data.enemys[data.temp.iOfEnemyTick][6]) {
                                                        data.temp.iOfSlicer = 0;
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 days to fix
                                    scripts.js on lines 852..877

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

                                    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

                                                } else if (data.runner.position.top == data.enemys[data.temp.iOfEnemyTick][2]) { //If left or right from slicer
                                    
                                                    if (data.runner.position.left > data.enemys[data.temp.iOfEnemyTick][1] && data.runner.position.left < data.enemys[data.temp.iOfEnemyTick][5]) {
                                                        data.temp.iOfSlicer = 0;
                                    
                                    
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 days to fix
                                    scripts.js on lines 826..877

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

                                    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

                                        } else if (data.keypress.right && data.runner.cango.right) {
                                    
                                            data.runner.position.left++;
                                    
                                            setTimeout(function () {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 days to fix
                                    scripts.js on lines 712..792

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

                                    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

                                        if (data.keypress.left && data.runner.cango.left) {
                                    
                                            data.runner.position.left--;
                                    
                                            setTimeout(function () {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 days to fix
                                    scripts.js on lines 750..792

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

                                    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

                                                        if (data.walls[data.temp.iOfInit2_2][2] == data.temp.setEnemys[data.iOfInit2][2]) {
                                                            if (data.walls[data.temp.iOfInit2_2][1] > data.temp.setEnemys[data.iOfInit2][1] && data.walls[data.temp.iOfInit2_2][1] < data.temp.setEnemys[data.iOfInit2][5]) {
                                                                data.temp.setEnemys[data.iOfInit2][5] = data.walls[data.temp.iOfInit2_2][1];
                                                            }
                                    
                                    
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 day to fix
                                    scripts.js on lines 159..167

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

                                    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

                                                        } else if (data.walls[data.temp.iOfInit2_2][1] == data.temp.setEnemys[data.iOfInit2][1]) {
                                                            if (data.walls[data.temp.iOfInit2_2][2] > data.temp.setEnemys[data.iOfInit2][2] && data.walls[data.temp.iOfInit2_2][2] < data.temp.setEnemys[data.iOfInit2][6]) {
                                                                data.temp.setEnemys[data.iOfInit2][6] = data.walls[data.temp.iOfInit2_2][2];
                                                            }
                                    
                                    
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 day to fix
                                    scripts.js on lines 151..167

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

                                    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

                                            if (data.keypress.up && data.keypress.right) {
                                                if (data.runner.position.left == data.walls[data.temp.iOfTick][1] - 1 && data.runner.position.top == data.walls[data.temp.iOfTick][2] + 1) {
                                                    data.runner.cango.right = 0;
                                                }
                                            } else if (data.keypress.up && data.keypress.left) {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 day to fix
                                    scripts.js on lines 486..494

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

                                    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

                                            if (data.keypress.down && data.keypress.right) {
                                                if (data.runner.position.left == data.walls[data.temp.iOfTick][1] - 1 && data.runner.position.top == data.walls[data.temp.iOfTick][2] - 1) {
                                                    data.runner.cango.right = 0;
                                                }
                                            } else if (data.keypress.down && data.keypress.left) {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 day to fix
                                    scripts.js on lines 496..504

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

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

                                                } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] == "right") {
                                                    if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] < +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][5] - 1) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]++;
                                                    } else {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 5 hrs to fix
                                    scripts.js on lines 890..914
                                    scripts.js on lines 896..914
                                    scripts.js on lines 908..914

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

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

                                                } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] == "up") {
                                                    if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] > +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][4] + 1) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]--;
                                                    } else {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 5 hrs to fix
                                    scripts.js on lines 890..914
                                    scripts.js on lines 902..914
                                    scripts.js on lines 908..914

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

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

                                                } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] == "left") {
                                                    if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] > +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][3] + 1) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]--;
                                                    } else {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 5 hrs to fix
                                    scripts.js on lines 890..914
                                    scripts.js on lines 896..914
                                    scripts.js on lines 902..914

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

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

                                                if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] == "down") {
                                                    if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] < +data.enemys[data.forenemys[data.temp.iOfEnemyTick]][6] - 1) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]++;
                                                    } else {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][9] = "cooldown12";
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 5 hrs to fix
                                    scripts.js on lines 896..914
                                    scripts.js on lines 902..914
                                    scripts.js on lines 908..914

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][6] < +data.enemys[data.temp.iOfInit2][2]) {
                                    
                                                        document.getElementsByClassName("slicer-marker4")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer")[data.temp.iOfInit2].style.borderBottom = "1px solid lime";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 218..221
                                    scripts.js on lines 222..225
                                    scripts.js on lines 227..230
                                    scripts.js on lines 233..236
                                    scripts.js on lines 237..241

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][4] > +data.enemys[data.temp.iOfInit2][2]) {
                                    
                                                        document.getElementsByClassName("slicer-marker2")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer")[data.temp.iOfInit2].style.borderTop = "1px solid lime";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 218..221
                                    scripts.js on lines 222..225
                                    scripts.js on lines 227..230
                                    scripts.js on lines 233..236
                                    scripts.js on lines 243..247

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][3] > +data.enemys[data.temp.iOfInit2][1]) {
                                                        document.getElementsByClassName("slicer-marker1")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer")[data.temp.iOfInit2].style.borderLeft = "1px solid lime";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 218..221
                                    scripts.js on lines 227..230
                                    scripts.js on lines 233..236
                                    scripts.js on lines 237..241
                                    scripts.js on lines 243..247

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][3] > +data.enemys[data.temp.iOfInit2][5]) {
                                                        document.getElementsByClassName("slicer-marker1")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer-marker3")[data.temp.iOfInit2].style.animationName = "error1";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 222..225
                                    scripts.js on lines 227..230
                                    scripts.js on lines 233..236
                                    scripts.js on lines 237..241
                                    scripts.js on lines 243..247

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][6] < +data.enemys[data.temp.iOfInit2][4]) {
                                                        document.getElementsByClassName("slicer-marker2")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer-marker4")[data.temp.iOfInit2].style.animationName = "error1";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 218..221
                                    scripts.js on lines 222..225
                                    scripts.js on lines 227..230
                                    scripts.js on lines 237..241
                                    scripts.js on lines 243..247

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

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

                                                    if (+data.enemys[data.temp.iOfInit2][5] < +data.enemys[data.temp.iOfInit2][1]) {
                                                        document.getElementsByClassName("slicer-marker3")[data.temp.iOfInit2].style.animationName = "error1";
                                                        document.getElementsByClassName("slicer")[data.temp.iOfInit2].style.borderRight = "1px solid lime";
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 4 hrs to fix
                                    scripts.js on lines 218..221
                                    scripts.js on lines 222..225
                                    scripts.js on lines 233..236
                                    scripts.js on lines 237..241
                                    scripts.js on lines 243..247

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

                                    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

                                        if (eventkeylowercase == "w") {
                                            data.keypress.up = !0;
                                        } else if (eventkeylowercase == "s") {
                                            data.keypress.down = !0;
                                        } else if (eventkeylowercase == "arrowup") {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 hrs to fix
                                    scripts.js on lines 368..376

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

                                    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

                                        if (eventkeylowercase == "a") {
                                            data.keypress.left = !0;
                                        } else if (eventkeylowercase == "d") {
                                            data.keypress.right = !0;
                                        } else if (eventkeylowercase == "arrowleft") {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 4 hrs to fix
                                    scripts.js on lines 354..362

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

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

                                            if (data.runner.position.left == data.walls[data.temp.iOfTick][1] - 1 && data.runner.position.top == data.walls[data.temp.iOfTick][2]) {
                                                data.runner.cango.right = 0;
                                            }
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 3 hrs to fix
                                    scripts.js on lines 474..476
                                    scripts.js on lines 482..484

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

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

                                            if (data.runner.position.left == data.walls[data.temp.iOfTick][1] + 1 && data.runner.position.top == data.walls[data.temp.iOfTick][2]) {
                                                data.runner.cango.left = 0;
                                            }
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 3 hrs to fix
                                    scripts.js on lines 474..476
                                    scripts.js on lines 478..480

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

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

                                            if (data.runner.position.top == data.walls[data.temp.iOfTick][2] + 1 && data.runner.position.left == data.walls[data.temp.iOfTick][1]) {
                                                data.runner.cango.up = 0;
                                            }
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 3 hrs to fix
                                    scripts.js on lines 478..480
                                    scripts.js on lines 482..484

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

                                    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

                                        if (data.runner.position.left <= 0) {
                                            data.runner.cango.left = !1;
                                        } else if (data.runner.position.left >= data.field.width - 1) {
                                            data.runner.cango.right = !1;
                                        }
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 3 hrs to fix
                                    scripts.js on lines 613..617

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

                                    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

                                            if (data.runner.position.left != data.runner.oldposition.left) {
                                                data.runner.oldotherposition.left = +data.runner.oldposition.left;
                                                data.runner.oldotherposition.top = +data.runner.oldposition.top;
                                            }
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 3 hrs to fix
                                    scripts.js on lines 577..580

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

                                    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

                                        if (data.runner.position.top <= 0) {
                                            data.runner.cango.up = !1;
                                        } else if (data.runner.position.top >= data.field.height - 1) {
                                            data.runner.cango.down = !1;
                                        }
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 3 hrs to fix
                                    scripts.js on lines 619..623

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

                                    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

                                            if (data.runner.position.top != data.runner.oldposition.top) {
                                                data.runner.oldotherposition.top = +data.runner.oldposition.top;
                                                data.runner.oldotherposition.left = +data.runner.oldposition.left;
                                            }
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 3 hrs to fix
                                    scripts.js on lines 572..575

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

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

                                            if (data.temp.randomnumber1 == 1) {
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.add("floor3-2");
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.remove("floor3-1");
                                            } else if (data.temp.randomnumber1 == 2) {
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.add("floor3-3");
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 1 hr to fix
                                    scripts.js on lines 1123..1129
                                    scripts.js on lines 1126..1129

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 74.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            } else if (data.temp.randomnumber1 == 2) {
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.add("floor3-3");
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.remove("floor3-1");
                                            } else if (data.temp.randomnumber1 == 3) {
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.add("floor3-4");
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 1 hr to fix
                                    scripts.js on lines 1120..1129
                                    scripts.js on lines 1126..1129

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 74.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            } else if (data.temp.randomnumber1 == 3) {
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.add("floor3-4");
                                                document.getElementsByClassName("floor3-1")[data.temp.iOfRandom1].classList.remove("floor3-1");
                                            }
                                    Severity: Major
                                    Found in scripts.js and 2 other locations - About 1 hr to fix
                                    scripts.js on lines 1120..1129
                                    scripts.js on lines 1123..1129

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 74.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                                document.getElementsByClassName("slicer")[data.temp.slicernr].style.left = data.enemys[data.temp.iOfEnemyTick][1] * data.field.oneWidth + "px";
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 882..882

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 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

                                                document.getElementsByClassName("slicer")[data.temp.slicernr].style.top = data.enemys[data.temp.iOfEnemyTick][2] * data.field.oneHeight + "px";
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 881..881

                                    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

                                            if (!data.walls2) {
                                                data.walls2 = data.walls;
                                                data.walls = "";
                                            } else {
                                                data.walls = data.walls2;
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 393..399

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 69.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            if (!data.enemys2) {
                                                data.enemys2 = data.enemys;
                                                data.enemys = "";
                                            } else {
                                                data.enemys = data.enemys2;
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 386..392

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 69.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] < data.enemys[data.forenemys[data.temp.iOfEnemyTick]][8]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]++;
                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] > data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]--;
                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] < data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 918..926
                                    scripts.js on lines 922..926
                                    scripts.js on lines 924..926

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

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

                                                    if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] > data.enemys[data.forenemys[data.temp.iOfEnemyTick]][8]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]--;
                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2] < data.enemys[data.forenemys[data.temp.iOfEnemyTick]][8]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][2]++;
                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] > data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 920..926
                                    scripts.js on lines 922..926
                                    scripts.js on lines 924..926

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

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

                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] > data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]--;
                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] < data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]++;
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 918..926
                                    scripts.js on lines 920..926
                                    scripts.js on lines 924..926

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

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

                                                    } else if (data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1] < data.enemys[data.forenemys[data.temp.iOfEnemyTick]][7]) {
                                                        data.enemys[data.forenemys[data.temp.iOfEnemyTick]][1]++;
                                                    }
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 918..926
                                    scripts.js on lines 920..926
                                    scripts.js on lines 922..926

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

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

                                                        data.temp.triggerKeycollect = [(data.trigger[data.temp.iOfTick][0].split("keycollect(")[1].split(")")[0]).split(",")[0], (data.trigger[data.temp.iOfTick][0].split("keycollect(")[1].split(")")[0]).split(",")[1]];
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 521..521
                                    scripts.js on lines 521..521
                                    scripts.js on lines 530..530

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

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

                                                    tp((data.trigger[data.temp.iOfTick][0].split("spring(")[1].split(")")[0]).split(",")[0], (data.trigger[data.temp.iOfTick][0].split("spring(")[1].split(")")[0]).split(",")[1]);
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 1 hr to fix
                                    scripts.js on lines 521..521
                                    scripts.js on lines 530..530
                                    scripts.js on lines 530..530

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

                                    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

                                                if (data.trigger[data.temp.iOfTick][0].indexOf("loadLevel(") >= 0) {
                                                    loadLevel(data.trigger[data.temp.iOfTick][0].split("l(")[1].split(")")[0]);
                                                } else if (data.trigger[data.temp.iOfTick][0].indexOf("saveState(") >= 0) {
                                                    saveState(data.trigger[data.temp.iOfTick][0].split("te('")[1].split("',")[0], data.trigger[data.temp.iOfTick][0].split(",")[1].split(")")[0]);
                                                    loadOptions2();
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 518..538

                                    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

                                                } else if (data.trigger[data.temp.iOfTick][0].indexOf("interactWith(") >= 0) {
                                                    interactWith(data.trigger[data.temp.iOfTick][0].split("th(")[1].split(")")[0]);
                                                } else if (data.trigger[data.temp.iOfTick][0].indexOf("spring(") >= 0) {
                                                    tp((data.trigger[data.temp.iOfTick][0].split("spring(")[1].split(")")[0]).split(",")[0], (data.trigger[data.temp.iOfTick][0].split("spring(")[1].split(")")[0]).split(",")[1]);
                                                } else if (data.trigger[data.temp.iOfTick][0].indexOf("key") >= 0) {
                                    Severity: Major
                                    Found in scripts.js and 1 other location - About 1 hr to fix
                                    scripts.js on lines 512..538

                                    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

                                        if (classname == "wall") {
                                            data.temp.newElement.classList.add(data.temp.setWalls[data.iOfInit2][0]);
                                        }
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 55 mins to fix
                                    scripts.js on lines 312..314

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

                                    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

                                        if (classname == "enemy") {
                                            data.temp.newElement.classList.add(data.temp.setEnemys[data.iOfInit2][0]);
                                        }
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 55 mins to fix
                                    scripts.js on lines 309..311

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

                                    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

                                        if (!data.runner.startposition.left) {
                                            data.runner.startposition.left = data.runner.position.left;
                                        }
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 50 mins to fix
                                    scripts.js on lines 196..198

                                    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

                                        if (!data.runner.startposition.top) {
                                            data.runner.startposition.top = data.runner.position.top;
                                        }
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 50 mins to fix
                                    scripts.js on lines 200..202

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

                                            } else if (data.allthings[i][1] / data.field.oneWidth < data.runner.position.left - data.visibleTilesX) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else if (data.allthings[i][1] / data.field.oneWidth > data.runner.position.left + data.visibleTilesX) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else {
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 596..606
                                    scripts.js on lines 598..606
                                    scripts.js on lines 602..606

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

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

                                                    summonElement("slicer-marker4", "", data.enemys[data.temp.iOfInit2][1], data.enemys[data.temp.iOfInit2][6]);
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 212..212
                                    scripts.js on lines 213..213
                                    scripts.js on lines 215..215

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

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

                                            } else if (data.allthings[i][1] / data.field.oneWidth > data.runner.position.left + data.visibleTilesX) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else {
                                                document.getElementById(data.allthings[i][3]).style.display = "inline";
                                            }
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 596..606
                                    scripts.js on lines 598..606
                                    scripts.js on lines 600..606

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

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

                                                    summonElement("slicer-marker1", "", data.enemys[data.temp.iOfInit2][3], data.enemys[data.temp.iOfInit2][2]);
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 213..213
                                    scripts.js on lines 215..215
                                    scripts.js on lines 216..216

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

                                            if (data.allthings[i][2] / data.field.oneHeight < data.runner.position.top - data.visibleTilesY) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else if (data.allthings[i][2] / data.field.oneHeight > data.runner.position.top + data.visibleTilesY) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else if (data.allthings[i][1] / data.field.oneWidth < data.runner.position.left - data.visibleTilesX) {
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 598..606
                                    scripts.js on lines 600..606
                                    scripts.js on lines 602..606

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

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

                                            } else if (data.allthings[i][2] / data.field.oneHeight > data.runner.position.top + data.visibleTilesY) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else if (data.allthings[i][1] / data.field.oneWidth < data.runner.position.left - data.visibleTilesX) {
                                                document.getElementById(data.allthings[i][3]).style.display = "none";
                                            } else if (data.allthings[i][1] / data.field.oneWidth > data.runner.position.left + data.visibleTilesX) {
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 596..606
                                    scripts.js on lines 600..606
                                    scripts.js on lines 602..606

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

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

                                                    summonElement("slicer-marker2", "", data.enemys[data.temp.iOfInit2][1], data.enemys[data.temp.iOfInit2][4]);
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 212..212
                                    scripts.js on lines 213..213
                                    scripts.js on lines 216..216

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

                                                    summonElement("slicer-marker3", "", data.enemys[data.temp.iOfInit2][5], data.enemys[data.temp.iOfInit2][2]);
                                    Severity: Major
                                    Found in scripts.js and 3 other locations - About 45 mins to fix
                                    scripts.js on lines 212..212
                                    scripts.js on lines 215..215
                                    scripts.js on lines 216..216

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

                                    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

                                            data.walls[data.temp.iOfInit2][1] = +data.walls[data.temp.iOfInit2][1];
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 40 mins to fix
                                    scripts.js on lines 136..136

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

                                    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

                                            data.walls[data.temp.iOfInit2][2] = +data.walls[data.temp.iOfInit2][2];
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 40 mins to fix
                                    scripts.js on lines 135..135

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

                                    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

                                            if (data.runner.position.left == data.trigger[data.temp.iOfTick][1] / data.field.oneWidth && data.runner.position.top == data.trigger[data.temp.iOfTick][2] / data.field.oneHeight) {
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 40 mins to fix
                                    scripts.js on lines 510..510

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

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

                                        objects.runner.style.left = data.runner.position.left * data.field.oneWidth + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 191..191
                                    scripts.js on lines 192..192
                                    scripts.js on lines 584..584
                                    scripts.js on lines 585..585
                                    scripts.js on lines 1103..1103

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

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

                                        objects.runner.style.top = data.runner.position.top * data.field.oneHeight + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 192..192
                                    scripts.js on lines 584..584
                                    scripts.js on lines 585..585
                                    scripts.js on lines 1103..1103
                                    scripts.js on lines 1104..1104

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

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

                                        objects.runner.style.left = data.runner.position.left * data.field.oneWidth + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 191..191
                                    scripts.js on lines 584..584
                                    scripts.js on lines 585..585
                                    scripts.js on lines 1103..1103
                                    scripts.js on lines 1104..1104

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

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

                                        objects.runner.style.top = data.runner.position.top * data.field.oneHeight + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 191..191
                                    scripts.js on lines 192..192
                                    scripts.js on lines 584..584
                                    scripts.js on lines 585..585
                                    scripts.js on lines 1104..1104

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

                                    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

                                            data.walls[data.temp.iOfInit2] = data.walls[data.temp.iOfInit2].split(",");
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 35 mins to fix
                                    scripts.js on lines 183..183

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

                                    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

                                            data.enemys[data.temp.iOfInit2] = data.enemys[data.temp.iOfInit2].split(",");
                                    Severity: Minor
                                    Found in scripts.js and 1 other location - About 35 mins to fix
                                    scripts.js on lines 134..134

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

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

                                                    objects.oldotherposition.style.left = data.runner.oldotherposition.left * data.field.oneWidth + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 191..191
                                    scripts.js on lines 192..192
                                    scripts.js on lines 584..584
                                    scripts.js on lines 1103..1103
                                    scripts.js on lines 1104..1104

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

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

                                                    objects.oldotherposition.style.top = data.runner.oldotherposition.top * data.field.oneHeight + "px";
                                    Severity: Major
                                    Found in scripts.js and 5 other locations - About 35 mins to fix
                                    scripts.js on lines 191..191
                                    scripts.js on lines 192..192
                                    scripts.js on lines 585..585
                                    scripts.js on lines 1103..1103
                                    scripts.js on lines 1104..1104

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

                                    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