CodeforLeipzig/stadtratmonitor

View on GitHub

Showing 611 of 611 total issues

Function featureDetectionPromise has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const featureDetectionPromise = Promise.resolve(supportsImportMaps || supportsDynamicImportCheck).then(_supportsDynamicImport => {
    if (!_supportsDynamicImport)
      return;
    supportsDynamicImport = true;

    Function hide has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        hide() {
          if (!this._isShown()) {
            return;
          }
          const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE$2));

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

          constructor(config) {
            super();
            this._config = this._getConfig(config);
            this._isActive = false;
            this._lastTabNavDirection = null;
      public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 3405..3410

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

      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

          constructor(config) {
            super();
            this._config = this._getConfig(config);
            this._isAppended = false;
            this._element = null;
      public/assets/application-83027ab76a0c0e3ffb5bae510e4627be2c66fe2cccf3e0d566ea67ed819ad3e1.js on lines 3505..3510

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

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

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

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

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

      Refactorings

      Further Reading

      Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          off: function( types, selector, fn ) {
              var handleObj, type;
              if ( types && types.preventDefault && types.handleObj ) {
      
                  // ( event )  dispatched jQuery.Event

        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            finish: function( type ) {
                if ( type !== false ) {
                    type = type || "fx";
                }
                return this.each( function() {

          Function addClass has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              addClass: function( value ) {
                  var classes, elem, cur, curValue, clazz, j, finalValue,
                      i = 0;
          
                  if ( jQuery.isFunction( value ) ) {

            Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                fix: function( event ) {
                    if ( event[ jQuery.expando ] ) {
                        return event;
                    }
            
            

              Function show has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  show(relatedTarget) {
                    if (this._isShown) {
                      return;
                    }
                    const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {

                Function _setListeners has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    _setListeners() {
                      const triggers = this._config.trigger.split(" ");
                      for (const trigger of triggers) {
                        if (trigger === "click") {
                          EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, (event) => {

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

                            }, d.prototype.getSelectedDocument = function() {
                              var t3;
                              return (t3 = this.getSelectedRange()) ? this.document.getDocumentAtRange(t3) : void 0;
                            }, d.prototype.getSelectedAttachments = function() {
                  public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 4395..4398

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

                            }, a2.prototype.breaksOnReturn = function() {
                              var t3;
                              return (t3 = i(this.getLastAttribute())) != null ? t3.breakOnReturn : void 0;
                            }, a2.prototype.findLineBreakInDirectionFromPosition = function(t3, e2) {
                  public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 3533..3536
                  public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 3536..3539

                  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

                  Severity
                  Category
                  Status
                  Source
                  Language