Plate-Project/plate

View on GitHub
plate/static/js/lunr/lunr.tr.js

Summary

Maintainability
F
3 wks
Test Coverage

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

    lunr.tr.stemmer = (function() {
      /* create the wrapped stemmer object */
      var Among = lunr.stemmerSupport.Among,
        SnowballProgram = lunr.stemmerSupport.SnowballProgram,
        st = new function TurkishStemmer() {
Severity: Major
Found in plate/static/js/lunr/lunr.tr.js - About 4 days to fix

    Function TurkishStemmer has 909 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            st = new function TurkishStemmer() {
              var a_0 = [new Among("m", -1, -1), new Among("n", -1, -1),
                  new Among("miz", -1, -1), new Among("niz", -1, -1),
                  new Among("muz", -1, -1), new Among("nuz", -1, -1),
                  new Among("m\u00FCz", -1, -1), new Among("n\u00FCz", -1, -1),
    Severity: Major
    Found in plate/static/js/lunr/lunr.tr.js - About 4 days to fix

      File lunr.tr.js has 956 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * Lunr languages, `Turkish` language
       * https://github.com/MihaiValentin/lunr-languages
       *
       * Copyright 2014, Mihai Valentin
      Severity: Major
      Found in plate/static/js/lunr/lunr.tr.js - About 2 days to fix

        Function r_stem_noun_suffixes has 111 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  function r_stem_noun_suffixes() {
                    var v_1 = sbp.limit - sbp.cursor,
                      v_2, v_3;
                    sbp.ket = sbp.cursor;
                    if (r_mark_lAr()) {
        Severity: Major
        Found in plate/static/js/lunr/lunr.tr.js - About 4 hrs to fix

          Function r_stem_suffix_chain_before_ki has 86 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    function r_stem_suffix_chain_before_ki() {
                      var v_1, v_2, v_3, v_4;
                      sbp.ket = sbp.cursor;
                      if (r_mark_ki()) {
                        v_1 = sbp.limit - sbp.cursor;
          Severity: Major
          Found in plate/static/js/lunr/lunr.tr.js - About 3 hrs to fix

            Function r_stem_nominal_verb_suffixes has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      function r_stem_nominal_verb_suffixes() {
                        var v_1 = sbp.limit - sbp.cursor,
                          v_2;
                        sbp.ket = sbp.cursor;
                        B_c_s_n_s = true;
            Severity: Minor
            Found in plate/static/js/lunr/lunr.tr.js - About 1 hr to fix

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

                        function habr11() {
                          var v_1 = sbp.limit - sbp.cursor,
                            v_2;
                          sbp.ket = sbp.cursor;
                          if (!r_mark_nUn()) {
              Severity: Minor
              Found in plate/static/js/lunr/lunr.tr.js - About 1 hr to fix

                Function habr12 has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          function habr12() {
                            var v_1 = sbp.limit - sbp.cursor,
                              v_2, v_3;
                            sbp.ket = sbp.cursor;
                            if (!r_mark_DA()) {
                Severity: Minor
                Found in plate/static/js/lunr/lunr.tr.js - About 1 hr to fix

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

                            function habr9(v_1) {
                              sbp.ket = sbp.cursor;
                              if (!r_mark_ndA()) {
                                sbp.cursor = sbp.limit - v_1;
                                if (!r_mark_nA())
                  Severity: Minor
                  Found in plate/static/js/lunr/lunr.tr.js - About 1 hr to fix

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

                              function habr2(f1, f2) {
                                var v_1 = sbp.limit - sbp.cursor,
                                  v_2;
                                if (f1()) {
                                  sbp.cursor = sbp.limit - v_1;
                    Severity: Minor
                    Found in plate/static/js/lunr/lunr.tr.js - About 1 hr to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          if (habr8()) {
                                            sbp.cursor = sbp.limit - v_1;
                                            if (!r_mark_DUr())
                                              return;
                                            sbp.bra = sbp.cursor;
                      Severity: Major
                      Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if (!r_mark_sU()) {
                                              sbp.cursor = sbp.limit - v_3;
                                              if (!r_stem_suffix_chain_before_ki())
                                                return true;
                                            }
                        Severity: Major
                        Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if (!r_mark_lAr())
                                                return;
                          Severity: Major
                          Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                if (!r_stem_suffix_chain_before_ki())
                                                  return;
                            Severity: Major
                            Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if (r_mark_lAr()) {
                                                    sbp.bra = sbp.cursor;
                                                    sbp.slice_del();
                                                    r_stem_suffix_chain_before_ki();
                                                  }
                              Severity: Major
                              Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if (r_mark_lAr()) {
                                                      sbp.bra = sbp.cursor;
                                                      sbp.slice_del();
                                                      r_stem_suffix_chain_before_ki();
                                                    }
                                Severity: Major
                                Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if (!r_mark_ymUs_())
                                                        sbp.cursor = sbp.limit - v_1;
                                  Severity: Major
                                  Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if (!r_stem_suffix_chain_before_ki())
                                                          return false;
                                    Severity: Major
                                    Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if (!r_mark_sUn()) {
                                                            sbp.cursor = sbp.limit - v_1;
                                                            if (!r_mark_yUz())
                                                              sbp.cursor = sbp.limit - v_1;
                                                          }
                                      Severity: Major
                                      Found in plate/static/js/lunr/lunr.tr.js - About 45 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                      return;
                                        Severity: Major
                                        Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                          return true;
                                          Severity: Major
                                          Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                          return;
                                            Severity: Major
                                            Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                              return;
                                              Severity: Major
                                              Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                Avoid too many return statements within this function.
                                                Open

                                                            return true;
                                                Severity: Major
                                                Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                  Avoid too many return statements within this function.
                                                  Open

                                                              return false;
                                                  Severity: Major
                                                  Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                    Avoid too many return statements within this function.
                                                    Open

                                                                  return;
                                                    Severity: Major
                                                    Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                      Avoid too many return statements within this function.
                                                      Open

                                                                    return;
                                                      Severity: Major
                                                      Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                        Avoid too many return statements within this function.
                                                        Open

                                                                      return;
                                                        Severity: Major
                                                        Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                          Avoid too many return statements within this function.
                                                          Open

                                                                        return;
                                                          Severity: Major
                                                          Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

                                                            Avoid too many return statements within this function.
                                                            Open

                                                                          return;
                                                            Severity: Major
                                                            Found in plate/static/js/lunr/lunr.tr.js - About 30 mins to fix

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

                                                                          if (r_mark_lArI()) {
                                                                            sbp.bra = sbp.cursor;
                                                                            sbp.slice_del();
                                                                          } else {
                                                                            sbp.cursor = sbp.limit - v_2;
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 7 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 626..645

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

                                                              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_mark_lArI()) {
                                                                                sbp.bra = sbp.cursor;
                                                                                sbp.slice_del();
                                                                              } else {
                                                                                sbp.cursor = sbp.limit - v_4;
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 7 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 660..679

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

                                                              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_mark_sUnUz()) {
                                                                              sbp.cursor = sbp.limit - v_1;
                                                                              if (!r_mark_lAr()) {
                                                                                sbp.cursor = sbp.limit - v_1;
                                                                                if (!r_mark_yUm()) {
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 5 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 538..551

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

                                                              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_mark_sUnUz()) {
                                                                                      sbp.cursor = sbp.limit - v_2;
                                                                                      if (!r_mark_lAr()) {
                                                                                        sbp.cursor = sbp.limit - v_2;
                                                                                        if (!r_mark_yUm()) {
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 5 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 439..452

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

                                                              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_mark_ymUs_()) {
                                                                            sbp.cursor = sbp.limit - v_1;
                                                                            if (!r_mark_yDU()) {
                                                                              sbp.cursor = sbp.limit - v_1;
                                                                              if (!r_mark_ysA()) {
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 3 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 497..507

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

                                                              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_mark_sUnUz()) {
                                                                            sbp.cursor = sbp.limit - v_1;
                                                                            if (!r_mark_yUz()) {
                                                                              sbp.cursor = sbp.limit - v_1;
                                                                              if (!r_mark_sUn()) {
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 3 hrs to fix
                                                              plate/static/js/lunr/lunr.tr.js on lines 422..432

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

                                                              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

                                                                          a_18 = [
                                                                            new Among("dir", -1, -1), new Among("tir", -1, -1),
                                                                            new Among("dur", -1, -1), new Among("tur", -1, -1),
                                                                            new Among("d\u00FCr", -1, -1), new Among("t\u00FCr", -1, -1),
                                                                            new Among("d\u0131r", -1, -1), new Among("t\u0131r", -1, -1)
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 2 other locations - About 2 hrs to fix
                                                              plate/static/js/lunr/lunr.hu.js on lines 70..74
                                                              plate/static/js/lunr/lunr.tr.js on lines 164..169

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

                                                              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

                                                                          a_21 = [
                                                                            new Among("sa", -1, -1), new Among("se", -1, -1),
                                                                            new Among("sak", -1, -1), new Among("sek", -1, -1),
                                                                            new Among("sam", -1, -1), new Among("sem", -1, -1),
                                                                            new Among("san", -1, -1), new Among("sen", -1, -1)
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 2 other locations - About 2 hrs to fix
                                                              plate/static/js/lunr/lunr.hu.js on lines 70..74
                                                              plate/static/js/lunr/lunr.tr.js on lines 137..142

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

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

                                                              (function(root, factory) {
                                                                if (typeof define === 'function' && define.amd) {
                                                                  // AMD. Register as an anonymous module.
                                                                  define(factory)
                                                                } else if (typeof exports === 'object') {
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 15 other locations - About 2 hrs to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 23..273
                                                              plate/static/js/lunr/lunr.de.js on lines 23..373
                                                              plate/static/js/lunr/lunr.du.js on lines 23..437
                                                              plate/static/js/lunr/lunr.es.js on lines 23..588
                                                              plate/static/js/lunr/lunr.fi.js on lines 23..529
                                                              plate/static/js/lunr/lunr.fr.js on lines 23..691
                                                              plate/static/js/lunr/lunr.hu.js on lines 23..554
                                                              plate/static/js/lunr/lunr.it.js on lines 23..605
                                                              plate/static/js/lunr/lunr.jp.js on lines 23..118
                                                              plate/static/js/lunr/lunr.no.js on lines 23..246
                                                              plate/static/js/lunr/lunr.pt.js on lines 23..559
                                                              plate/static/js/lunr/lunr.ro.js on lines 23..547
                                                              plate/static/js/lunr/lunr.ru.js on lines 23..380
                                                              plate/static/js/lunr/lunr.stemmer.support.js on lines 14..282
                                                              plate/static/js/lunr/lunr.sv.js on lines 23..245

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

                                                                  lunr.tr = function() {
                                                                    this.pipeline.reset();
                                                                    this.pipeline.add(
                                                                      lunr.tr.stopWordFilter,
                                                                      lunr.tr.stemmer
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 13 other locations - About 1 hr to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 56..62
                                                              plate/static/js/lunr/lunr.de.js on lines 56..62
                                                              plate/static/js/lunr/lunr.du.js on lines 56..62
                                                              plate/static/js/lunr/lunr.es.js on lines 56..62
                                                              plate/static/js/lunr/lunr.fi.js on lines 56..62
                                                              plate/static/js/lunr/lunr.fr.js on lines 56..62
                                                              plate/static/js/lunr/lunr.hu.js on lines 56..62
                                                              plate/static/js/lunr/lunr.it.js on lines 56..62
                                                              plate/static/js/lunr/lunr.no.js on lines 56..62
                                                              plate/static/js/lunr/lunr.pt.js on lines 56..62
                                                              plate/static/js/lunr/lunr.ro.js on lines 56..62
                                                              plate/static/js/lunr/lunr.ru.js on lines 56..62
                                                              plate/static/js/lunr/lunr.sv.js on lines 56..62

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

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

                                                                  lunr.tr.stopWordFilter = function(token) {
                                                                    if (lunr.tr.stopWordFilter.stopWords.indexOf(token) === -1) {
                                                                      return token;
                                                                    }
                                                                  };
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 14 other locations - About 1 hr to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 257..261
                                                              plate/static/js/lunr/lunr.de.js on lines 357..361
                                                              plate/static/js/lunr/lunr.du.js on lines 421..425
                                                              plate/static/js/lunr/lunr.es.js on lines 572..576
                                                              plate/static/js/lunr/lunr.fi.js on lines 513..517
                                                              plate/static/js/lunr/lunr.fr.js on lines 675..679
                                                              plate/static/js/lunr/lunr.hu.js on lines 538..542
                                                              plate/static/js/lunr/lunr.it.js on lines 589..593
                                                              plate/static/js/lunr/lunr.jp.js on lines 102..106
                                                              plate/static/js/lunr/lunr.no.js on lines 230..234
                                                              plate/static/js/lunr/lunr.pt.js on lines 543..547
                                                              plate/static/js/lunr/lunr.ro.js on lines 531..535
                                                              plate/static/js/lunr/lunr.ru.js on lines 364..368
                                                              plate/static/js/lunr/lunr.sv.js on lines 229..233

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

                                                              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 (!sbp.eq_s_b(1, "d")) {
                                                                            sbp.cursor = sbp.limit - v_1;
                                                                            if (!sbp.eq_s_b(1, "g"))
                                                                              return;
                                                                          }
                                                              Severity: Minor
                                                              Found in plate/static/js/lunr/lunr.tr.js and 1 other location - About 55 mins to fix
                                                              plate/static/js/lunr/lunr.fr.js on lines 611..615

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

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

                                                                          a_3 = [
                                                                            new Among("in", -1, -1), new Among("un", -1, -1),
                                                                            new Among("\u00FCn", -1, -1), new Among("\u0131n", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_6 = [
                                                                            new Among("da", -1, -1), new Among("ta", -1, -1),
                                                                            new Among("de", -1, -1), new Among("te", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_2 = [
                                                                            new Among("ni", -1, -1), new Among("nu", -1, -1),
                                                                            new Among("n\u00FC", -1, -1), new Among("n\u0131", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_8 = [
                                                                            new Among("dan", -1, -1), new Among("tan", -1, -1),
                                                                            new Among("den", -1, -1), new Among("ten", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_14 = [
                                                                            new Among("iz", -1, -1), new Among("uz", -1, -1),
                                                                            new Among("\u00FCz", -1, -1), new Among("\u0131z", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_17 = [
                                                                            new Among("niz", -1, -1), new Among("nuz", -1, -1),
                                                                            new Among("n\u00FCz", -1, -1), new Among("n\u0131z", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_12 = [
                                                                            new Among("im", -1, -1), new Among("um", -1, -1),
                                                                            new Among("\u00FCm", -1, -1), new Among("\u0131m", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_15 = [
                                                                            new Among("siniz", -1, -1), new Among("sunuz", -1, -1),
                                                                            new Among("s\u00FCn\u00FCz", -1, -1),
                                                                            new Among("s\u0131n\u0131z", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

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

                                                                          a_22 = [
                                                                            new Among("mi\u015F", -1, -1), new Among("mu\u015F", -1, -1),
                                                                            new Among("m\u00FC\u015F", -1, -1),
                                                                            new Among("m\u0131\u015F", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 117..120
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136

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

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

                                                                          a_13 = [
                                                                            new Among("sin", -1, -1), new Among("sun", -1, -1),
                                                                            new Among("s\u00FCn", -1, -1), new Among("s\u0131n", -1, -1)
                                                                          ],
                                                              Severity: Major
                                                              Found in plate/static/js/lunr/lunr.tr.js and 11 other locations - About 45 mins to fix
                                                              plate/static/js/lunr/lunr.da.js on lines 87..90
                                                              plate/static/js/lunr/lunr.du.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 79..82
                                                              plate/static/js/lunr/lunr.tr.js on lines 83..86
                                                              plate/static/js/lunr/lunr.tr.js on lines 93..96
                                                              plate/static/js/lunr/lunr.tr.js on lines 100..103
                                                              plate/static/js/lunr/lunr.tr.js on lines 113..116
                                                              plate/static/js/lunr/lunr.tr.js on lines 121..124
                                                              plate/static/js/lunr/lunr.tr.js on lines 125..129
                                                              plate/static/js/lunr/lunr.tr.js on lines 133..136
                                                              plate/static/js/lunr/lunr.tr.js on lines 170..174

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

                                                              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