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

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

        if ( jQuery.isFunction( html ) ) {
            return this.each( function( i ) {
                jQuery( this ).wrapInner( html.call( this, i ) );
            } );
        }
public/assets/jquery-3158ee616193dde0b605a15cb9ca832f9de674111b7cf4393353432ab8fa272d.js on lines 9918..9922

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

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

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

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

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

Refactorings

Further Reading

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

        if ( jQuery.isFunction( html ) ) {
            return this.each( function( i ) {
                jQuery( this ).wrapAll( html.call( this, i ) );
            } );
        }
public/assets/jquery-3158ee616193dde0b605a15cb9ca832f9de674111b7cf4393353432ab8fa272d.js on lines 9948..9952

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

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

     */},{key:"_setHandlePos",value:function _setHandlePos(e,t,i){if(!this.$element.hasClass(this.options.disabledClass)){t=parseFloat(t);t<this.options.start?t=this.options.start:t>this.options.end&&(t=this.options.end);var n=this.options.doubleSided;if(n)if(0===this.handles.index(e)){var s=parseFloat(this.$handle2.attr("aria-valuenow"));t=t>=s?s-this.options.step:t}else{var a=parseFloat(this.$handle.attr("aria-valuenow"));t=t<=a?a+this.options.step:t}var o=this,r=this.options.vertical,l=r?"height":"width",c=r?"top":"left",h=e[0].getBoundingClientRect()[l],d=this.$element[0].getBoundingClientRect()[l],u=this._pctOfBar(t),f=(d-h)*u,p=(100*percent(f,d)).toFixed(this.options.decimal);t=parseFloat(t.toFixed(this.options.decimal));var v={};this._setValues(e,t);if(n){var g,m=0===this.handles.index(e),y=Math.floor(100*percent(h,d));if(m){v[c]="".concat(p,"%");g=parseFloat(this.$handle2[0].style[c])-p+y;i&&"function"===typeof i&&i()}else{var _=parseFloat(this.$handle[0].style[c]);g=p-(isNaN(_)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):_)+y}v["min-".concat(l)]="".concat(g,"%")}var b=this.$element.data("dragging")?1e3/60:this.options.moveTime;Move(b,e,(function(){isNaN(p)?e.css(c,"".concat(100*u,"%")):e.css(c,"".concat(p,"%"));o.options.doubleSided?o.$fill.css(v):o.$fill.css(l,"".concat(100*u,"%"))}));if(this.initialized){this.$element.one("finished.zf.animate",(function(){o.$element.trigger("moved.zf.slider",[e])}));clearTimeout(o.timeout);o.timeout=setTimeout((function(){o.$element.trigger("changed.zf.slider",[e])}),o.options.changedDelay)}}}
public/assets/foundation-sites-ec9e5d7297119b9d170d725de4d511c146a14d23bee7c672baf3fcfd6f1697a5.js on lines 1722..1722

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
public/assets/actiontext-28c61f5197c204db043317a8f8826a87ab31495b741f854d307ca36122deefce.js on lines 1..1

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

  function getConfig(name) {
    const element = document.head.querySelector(`meta[name='action-cable-${name}']`);
    if (element) {
      return element.getAttribute("content");
    }
public/assets/actioncable.esm-e01089c3ec4fe7817fa9abcad06cab6bdc387f95f0ca6aab4bf7ba7537f70690.js on lines 484..489

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

function getConfig(name) {
  const element = document.head.querySelector(`meta[name='action-cable-${name}']`);
  if (element) {
    return element.getAttribute("content");
  }
public/assets/actioncable-5433453f9b6619a9de91aaab2d7fc7ff183e5260c0107cbc9a1aa0c838d9a74e.js on lines 468..473

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 6..6

Duplicated Code

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

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

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

Tuning

This issue has a mass of 55.

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

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

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

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

Refactorings

Further Reading

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

            return n2 = this.event.dataTransfer, s3 = {dataTransfer: n2}, (i2 = n2.getData("URL")) ? (this.event.preventDefault(), s3.type = "text/html", p2 = (r2 = n2.getData("public.url-name")) ? e.squishBreakableWhitespace(r2).trim() : i2, s3.html = this.createLinkHTML(i2, p2), (a2 = this.delegate) != null && a2.inputControllerWillPaste(s3), this.withTargetDOMRange(function() {
              var t3;
              return (t3 = this.responder) != null ? t3.insertHTML(s3.html) : void 0;
            }), this.afterRender = function(t3) {
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2250..2253
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2258..2261
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2266..2269

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

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

          }, c.prototype.getBlockAtPosition = function(t3) {
            var e2;
            return e2 = this.locationFromPosition(t3).index, this.getBlockAtIndex(e2);
          }, c.prototype.getTextAtIndex = function(t3) {
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 4038..4041

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

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

            }(this)) : ((l2 = n2.files) != null ? l2.length : void 0) ? (s3.type = "File", s3.file = n2.files[0], (h2 = this.delegate) != null && h2.inputControllerWillPaste(s3), this.withTargetDOMRange(function() {
              var t3;
              return (t3 = this.responder) != null ? t3.insertFile(s3.file) : void 0;
            }), this.afterRender = function(t3) {
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2242..2245
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2250..2253
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 2258..2261

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

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

          if (e2.style) {
            h = e2.style;
            for (a in h)
              g = h[a], o2.style[a] = g;
          }
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 986..990

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

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

        "even": createPositionalPseudo(function( matchIndexes, length ) {
            var i = 0;
            for ( ; i < length; i += 2 ) {
                matchIndexes.push( i );
            }
public/assets/jquery-3158ee616193dde0b605a15cb9ca832f9de674111b7cf4393353432ab8fa272d.js on lines 2056..2062

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

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

          }, delete: function(t3) {
            var e2;
            return (e2 = this.delegate) != null && e2.inputControllerWillPerformTyping(), this.deleteInDirection("forward", t3);
          }, return: function() {
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 1949..1952
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 1967..1970
public/assets/trix-1563ff9c10f74e143b3ded40a8458497eaf2f87a648a5cbbfebdb7dec3447a5e.js on lines 1970..1973

Duplicated Code

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

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

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

Tuning

This issue has a mass of 54.

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

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

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

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

Refactorings

Further Reading

Severity
Category
Status
Source
Language