Workfront/workfront-api

View on GitHub
docs/assets/main.js

Summary

Maintainability
F
3 wks
Test Coverage

Function ae has 1548 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var ae = Pe((se, oe) => {
        ;(function () {
            var t = function (e) {
                var r = new t.Builder()
                return (
Severity: Major
Found in docs/assets/main.js - About 1 wk to fix

    File main.js has 1953 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict'
    'use strict'
    ;(() => {
        var Se = Object.create
        var re = Object.defineProperty
    Severity: Major
    Found in docs/assets/main.js - About 5 days to fix

      Function stemmer has 132 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                  ;(t.stemmer = (function () {
                      var e = {
                              ational: 'ate',
                              tional: 'tion',
                              enci: 'ence',
      Severity: Major
      Found in docs/assets/main.js - About 5 hrs to fix

        Function query has 114 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                        (t.Index.prototype.query = function (e) {
                            for (
                                var r = new t.Query(this.fields),
                                    n = Object.create(null),
                                    i = Object.create(null),
        Severity: Major
        Found in docs/assets/main.js - About 4 hrs to fix

          Function fromFuzzyString has 65 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                          (t.TokenSet.fromFuzzyString = function (e, r) {
                              for (
                                  var n = new t.TokenSet(), i = [{node: n, editsRemaining: r, str: e}];
                                  i.length;
          
          
          Severity: Major
          Found in docs/assets/main.js - About 2 hrs to fix

            Function H has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                                H = function (c) {
                                    var v, C, T, h, x, O, F
                                    if (c.length < 3) return c
                                    if (
                                        ((T = c.substr(0, 1)),
            Severity: Major
            Found in docs/assets/main.js - About 2 hrs to fix

              Function createFieldVectors has 46 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                              (t.Builder.prototype.createFieldVectors = function () {
                                  for (
                                      var e = {},
                                          r = Object.keys(this.fieldTermFrequencies),
                                          n = r.length,
              Severity: Minor
              Found in docs/assets/main.js - About 1 hr to fix

                Function add has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                (t.Builder.prototype.add = function (e, r) {
                                    var n = e[this._ref],
                                        i = Object.keys(this._fields)
                                    ;(this._documents[n] = r || {}), (this.documentCount += 1)
                                    for (var s = 0; s < i.length; s++) {
                Severity: Minor
                Found in docs/assets/main.js - About 1 hr to fix

                  Function load has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  (t.Index.load = function (e) {
                                      var r = {},
                                          n = {},
                                          i = e.fieldVectors,
                                          s = Object.create(null),
                  Severity: Minor
                  Found in docs/assets/main.js - About 1 hr to fix

                    Function intersect has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    (t.TokenSet.prototype.intersect = function (e) {
                                        for (
                                            var r = new t.TokenSet(),
                                                n = void 0,
                                                i = [{qNode: e, output: r, node: this}];
                    Severity: Minor
                    Found in docs/assets/main.js - About 1 hr to fix

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

                                      (t.QueryParser.parseBoost = function (e) {
                                          var r = e.consumeLexeme()
                                          if (r != null) {
                                              var n = parseInt(r.str, 10)
                                              if (isNaN(n)) {
                      Severity: Minor
                      Found in docs/assets/main.js - About 1 hr to fix

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

                                        (t.QueryParser.parseEditDistance = function (e) {
                                            var r = e.consumeLexeme()
                                            if (r != null) {
                                                var n = parseInt(r.str, 10)
                                                if (isNaN(n)) {
                        Severity: Minor
                        Found in docs/assets/main.js - About 1 hr to fix

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

                                          (t.QueryParser.parsePresence = function (e) {
                                              var r = e.consumeLexeme()
                                              if (r != null) {
                                                  switch (r.str) {
                                                      case '-':
                          Severity: Minor
                          Found in docs/assets/main.js - About 1 hr to fix

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

                                function Oe(t, e, r, n) {
                                    r.addEventListener(
                                        'input',
                                        ie(() => {
                                            Re(t, e, r, n)
                            Severity: Minor
                            Found in docs/assets/main.js - About 1 hr to fix

                              Function de has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function de() {
                                      let t = document.getElementById('tsd-search')
                                      if (!t) return
                                      let e = document.getElementById('tsd-search-script')
                                      t.classList.add('loading'),
                              Severity: Minor
                              Found in docs/assets/main.js - About 1 hr to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if (
                                                                        (i[p].upsert(_, u.boost, function (Ee, be) {
                                                                            return Ee + be
                                                                        }),
                                                                        !s[j])
                                Severity: Major
                                Found in docs/assets/main.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                                      if (
                                                                          (u.presence == t.Query.presence.REQUIRED &&
                                                                              ((m = m.union(q)),
                                                                              o[p] === void 0 && (o[p] = t.Set.complete)),
                                                                          u.presence == t.Query.presence.PROHIBITED)
                                  Severity: Major
                                  Found in docs/assets/main.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        for (var l = 0; l < a.length; l++) s.push(a[l])
                                    Severity: Major
                                    Found in docs/assets/main.js - About 45 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if ((e && typeof e == 'object') || typeof e == 'function')
                                                  for (let i of Te(e))
                                                      !Qe.call(t, i) &&
                                                          i !== r &&
                                                          re(t, i, {get: () => e[i], enumerable: !(n = we(e, i)) || n.enumerable})
                                      Severity: Major
                                      Found in docs/assets/main.js - About 40 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                                    return e.emit(t.QueryLexer.PRESENCE), t.QueryLexer.lexText
                                        Severity: Major
                                        Found in docs/assets/main.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                                  if (r.match(t.QueryLexer.termSeparator)) return t.QueryLexer.lexTerm
                                          Severity: Major
                                          Found in docs/assets/main.js - About 30 mins to fix

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

                                                            (t.QueryParser.parseEditDistance = function (e) {
                                                                var r = e.consumeLexeme()
                                                                if (r != null) {
                                                                    var n = parseInt(r.str, 10)
                                                                    if (isNaN(n)) {
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 day to fix
                                            docs/assets/main.js on lines 1535..1565

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

                                            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

                                                            (t.QueryParser.parseBoost = function (e) {
                                                                var r = e.consumeLexeme()
                                                                if (r != null) {
                                                                    var n = parseInt(r.str, 10)
                                                                    if (isNaN(n)) {
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 day to fix
                                            docs/assets/main.js on lines 1504..1534

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

                                            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 (((h = q), h.test(c))) {
                                                                        var L = h.exec(c)
                                                                        ;(v = L[1]), (C = L[2]), (h = m), h.test(v) && (c = v + r[C])
                                                                    }
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 2 hrs to fix
                                            docs/assets/main.js on lines 441..444

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

                                            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 (((h = j), h.test(c))) {
                                                                        var L = h.exec(c)
                                                                        ;(v = L[1]), (C = L[2]), (h = m), h.test(v) && (c = v + e[C])
                                                                    }
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 2 hrs to fix
                                            docs/assets/main.js on lines 445..448

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

                                            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 ('*' in s.node.edges) var l = s.node.edges['*']
                                                                        else {
                                                                            var l = new t.TokenSet()
                                                                            s.node.edges['*'] = l
                                                                        }
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 668..672

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

                                            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 ('*' in s.node.edges) var u = s.node.edges['*']
                                                                            else {
                                                                                var u = new t.TokenSet()
                                                                                s.node.edges['*'] = u
                                                                            }
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 651..655

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

                                            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

                                                                            m in s.node.edges
                                                                                ? (y = s.node.edges[m])
                                                                                : ((y = new t.TokenSet()), (s.node.edges[m] = y)),
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 640..642

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

                                            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

                                                            (t.QueryLexer.lexEditDistance = function (e) {
                                                                return (
                                                                    e.ignore(),
                                                                    e.acceptDigitRun(),
                                                                    e.emit(t.QueryLexer.EDIT_DISTANCE),
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 1342..1349

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

                                            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

                                                                        o in s.node.edges
                                                                            ? (a = s.node.edges[o])
                                                                            : ((a = new t.TokenSet()), (s.node.edges[o] = a)),
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 684..686

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

                                            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

                                                            (t.QueryLexer.lexBoost = function (e) {
                                                                return (
                                                                    e.ignore(),
                                                                    e.acceptDigitRun(),
                                                                    e.emit(t.QueryLexer.BOOST),
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 1334..1341

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

                                            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 (r == '~')
                                                                        return (
                                                                            e.backup(),
                                                                            e.width() > 0 && e.emit(t.QueryLexer.TERM),
                                                                            t.QueryLexer.lexEditDistance
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 1369..1374

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

                                            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 (r == '^')
                                                                        return (
                                                                            e.backup(),
                                                                            e.width() > 0 && e.emit(t.QueryLexer.TERM),
                                                                            t.QueryLexer.lexBoost
                                            Severity: Major
                                            Found in docs/assets/main.js and 1 other location - About 1 hr to fix
                                            docs/assets/main.js on lines 1363..1368

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

                                            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

                                                            (e.addEventListener('error', () => {
                                                                t.classList.remove('loading'), t.classList.add('failure')
                                                            }),
                                            Severity: Minor
                                            Found in docs/assets/main.js and 1 other location - About 30 mins to fix
                                            docs/assets/main.js on lines 1668..1670

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

                                            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

                                                            e.addEventListener('load', () => {
                                                                t.classList.remove('loading'), t.classList.add('ready')
                                                            }),
                                            Severity: Minor
                                            Found in docs/assets/main.js and 1 other location - About 30 mins to fix
                                            docs/assets/main.js on lines 1665..1667

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

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

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

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

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

                                            Refactorings

                                            Further Reading

                                            There are no issues that match your filters.

                                            Category
                                            Status