CodeforLeipzig/stadtratmonitor

View on GitHub

Showing 290 of 611 total issues

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": "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 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": "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 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 2 locations. Consider refactoring.
Open

    prev(element, selector) {
      let previous = element.previousElementSibling;
      while (previous) {
        if (previous.matches(selector)) {
          return [previous];
public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 2361..2370

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 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": "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": "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": "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": "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": "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

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

    next(element, selector) {
      let next = element.nextElementSibling;
      while (next) {
        if (next.matches(selector)) {
          return [next];
public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 2350..2359

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": "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": "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": "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": "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

Severity
Category
Status
Source
Language