historyforge/historyforge

View on GitHub

Showing 347 of 347 total issues

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

            var t2, n, i = function(t3, e2) {
              function n2() {
                this.constructor = t3;
              }
              for (var i2 in e2)
Severity: Major
Found in app/assets/builds/richtext.js and 1 other location - About 4 hrs to fix
app/assets/builds/richtext.js on lines 1806..1813

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

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

Consider simplifying this complex logical expression.
Open

          if (!t2.JsMutationObserver) {
            var g, m = /* @__PURE__ */ new WeakMap();
            if (/Trident|Edge/.test(navigator.userAgent))
              g = setTimeout;
            else if (window.setImmediate)
Severity: Critical
Found in app/assets/builds/richtext.js - About 4 hrs to fix

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

                  return r(c, s2), c.fromJSON = function(t3) {
                    var n2, i2;
                    return i2 = function() {
                      var i3, o2, r2;
                      for (r2 = [], i3 = 0, o2 = t3.length; o2 > i3; i3++)
    Severity: Major
    Found in app/assets/builds/richtext.js and 1 other location - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 3326..3334

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

    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

                  }, i.fromJSON = function(t3) {
                    var n3, i2;
                    return i2 = function() {
                      var i3, o, r;
                      for (r = [], i3 = 0, o = t3.length; o > i3; i3++)
    Severity: Major
    Found in app/assets/builds/richtext.js and 1 other location - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 3907..3915

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

    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

                var t2, n = function(t3, e2) {
                  function n2() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 2 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 1178..1185
    app/assets/builds/richtext.js on lines 2512..2519

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

    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

                var t2, n = function(t3, e2) {
                  function n2() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 2 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 2512..2519
    app/assets/builds/richtext.js on lines 3131..3138

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

    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

                var t2, n = function(t3, e2) {
                  function n2() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 2 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 1178..1185
    app/assets/builds/richtext.js on lines 3131..3138

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3090..3097
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

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

                var t2 = function(t3, e2) {
                  function i() {
                    this.constructor = t3;
                  }
                  for (var o in e2)
    Severity: Major
    Found in app/assets/builds/richtext.js and 13 other locations - About 4 hrs to fix
    app/assets/builds/richtext.js on lines 773..780
    app/assets/builds/richtext.js on lines 1292..1299
    app/assets/builds/richtext.js on lines 1334..1341
    app/assets/builds/richtext.js on lines 1628..1635
    app/assets/builds/richtext.js on lines 1657..1664
    app/assets/builds/richtext.js on lines 1777..1784
    app/assets/builds/richtext.js on lines 2598..2605
    app/assets/builds/richtext.js on lines 2894..2901
    app/assets/builds/richtext.js on lines 3025..3032
    app/assets/builds/richtext.js on lines 3302..3309
    app/assets/builds/richtext.js on lines 4523..4530
    app/assets/builds/richtext.js on lines 4679..4686
    app/assets/builds/richtext.js on lines 4697..4704

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

    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