CodeforLeipzig/stadtratmonitor

View on GitHub
app/assets/javascripts/geo.js

Summary

Maintainability
F
6 days
Test Coverage

Function geojsonDaten has 413 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function geojsonDaten() {
  return {
    "type": "FeatureCollection",
    "features": [
      {
Severity: Major
Found in app/assets/javascripts/geo.js - About 2 days to fix

    File geo.js has 468 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    function geojsonDaten() {
      return {
        "type": "FeatureCollection",
        "features": [
          {
    Severity: Minor
    Found in app/assets/javascripts/geo.js - About 7 hrs to fix

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Nordost",
                "raum": "KulturGut Schloss Schönefeld",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Südwest",
                "raum": "Schule am Grünen Gleis",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Lützschena-Stahmeln",
                "raum": "Leipziger Hotel",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Plaußig ",
                "raum": "Freiwillige Feuerwehr Plaußig - Schulungsraum",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Wiederitzsch",
                "raum": "Rathaus Wiederitzsch, Rathaussaal",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Lindenthal",
                "raum": "Rathaus Lindenthal, Ratssaal",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Seehausen",
                "raum": "Hort der Grundschule Seehausen",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Burghausen",
                "raum": "ehem. Gemeindeamt Burghausen, Sitzungszimmer",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Liebertwolkwitz",
                "raum": "Rathaus Liebertwolkwitz, Zi. 2",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Miltitz",
                "raum": "Heimatverein Miltitz",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Ost",
                "raum": "BSZ 7 - Außenstelle",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Mölkau",
                "raum": "ehem. Gemeindeamt Mölkau, Ratssaal",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Nordwest",
                "raum": "Stadtteilzentrum \"ANKER\"",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Holzhausen",
                "raum": "Schule Holzhausen, Aula",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Mitte",
                "raum": "Stadtbüro",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Nord",
                "raum": "Kulturhof Gohlis, Kultursaal",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Süd",
                "raum": "Immanuel-Kant-Gymnasium, Zi. 408",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Engelsdorf",
                "raum": "Versammlungsraum des Ortschaftsrates Engelsdorf",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Alt-West",
                "raum": "Rathaus Leutzsch, Beratungsraum 1. Etage",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat West",
                "raum": "Freizeittreff \"Völkerfreundschaft\", Großer Saal",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Böhlitz-Ehrenberg",
                "raum": "Große Eiche, Salon Böhlitz",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Hartmannsdorf-Knautnaundorf",
                "raum": "ehem. Gemeindeamt Knautnaundorf",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Ortschaftsrat Rückmarsdorf ",
                "raum": "Ortsteilzentrum Rückmarsdorf",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 56..72
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

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

            {
              "type": "Feature",
              "properties": {
                "name": "Stadtbezirksbeirat Südost",
                "raum": "Franz-Mehring-Schule",
      Severity: Major
      Found in app/assets/javascripts/geo.js and 23 other locations - About 1 hr to fix
      app/assets/javascripts/geo.js on lines 5..21
      app/assets/javascripts/geo.js on lines 22..38
      app/assets/javascripts/geo.js on lines 39..55
      app/assets/javascripts/geo.js on lines 73..89
      app/assets/javascripts/geo.js on lines 90..106
      app/assets/javascripts/geo.js on lines 107..123
      app/assets/javascripts/geo.js on lines 124..140
      app/assets/javascripts/geo.js on lines 141..157
      app/assets/javascripts/geo.js on lines 158..174
      app/assets/javascripts/geo.js on lines 175..191
      app/assets/javascripts/geo.js on lines 192..208
      app/assets/javascripts/geo.js on lines 209..225
      app/assets/javascripts/geo.js on lines 226..242
      app/assets/javascripts/geo.js on lines 243..259
      app/assets/javascripts/geo.js on lines 260..276
      app/assets/javascripts/geo.js on lines 277..293
      app/assets/javascripts/geo.js on lines 294..310
      app/assets/javascripts/geo.js on lines 311..327
      app/assets/javascripts/geo.js on lines 328..344
      app/assets/javascripts/geo.js on lines 345..361
      app/assets/javascripts/geo.js on lines 362..378
      app/assets/javascripts/geo.js on lines 379..395
      app/assets/javascripts/geo.js on lines 396..412

      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

      There are no issues that match your filters.

      Category
      Status