phodal/congee

View on GitHub

Showing 421 of 421 total issues

Function tok has 92 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Parser.prototype.tok = function() {
  switch (this.token.type) {
    case 'space': {
      return '';
    }
Severity: Major
Found in ckeditor/plugins/markdown/js/marked.js - About 3 hrs to fix

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

        if ( n[i].text != null && n[i+1].text == null && n[i].row + 1 < o.length && o[ n[i].row + 1 ].text == null && 
             n[i+1] == o[ n[i].row + 1 ] ) {
          n[i+1] = { text: n[i+1], row: n[i].row + 1 };
          o[n[i].row+1] = { text: o[n[i].row+1], row: i + 1 };
        }
    Severity: Major
    Found in ckeditor/plugins/autosave/js/jsdiff.js and 1 other location - About 3 hrs to fix
    ckeditor/plugins/autosave/js/jsdiff.js on lines 152..156

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

    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 ( n[i].text != null && n[i-1].text == null && n[i].row > 0 && o[ n[i].row - 1 ].text == null && 
             n[i-1] == o[ n[i].row - 1 ] ) {
          n[i-1] = { text: n[i-1], row: n[i].row - 1 };
          o[n[i].row-1] = { text: o[n[i].row-1], row: i - 1 };
        }
    Severity: Major
    Found in ckeditor/plugins/autosave/js/jsdiff.js and 1 other location - About 3 hrs to fix
    ckeditor/plugins/autosave/js/jsdiff.js on lines 144..148

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

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

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

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

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

    Refactorings

    Further Reading

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

                makeRequire: function (relMap, options) {
                    options = options || {};
    
                    function localRequire(deps, callback, errback) {
                        var id, map, requireMod;
    Severity: Major
    Found in scripts/libs/require.js - About 3 hrs to fix

      File difflib.js has 310 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /***
      This is part of jsdifflib v1.0. <http://snowtide.com/jsdifflib>
      
      Copyright (c) 2007, Snowtide Informatics Systems, Inc.
      All rights reserved.
      Severity: Minor
      Found in ckeditor/plugins/autosave/js/difflib.js - About 3 hrs to fix

        Function init has 83 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                init: function(editor) {
                    // Source mode in inline editors is only available through the "sourcedialog" plugin.
                    if (editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE)
                        return;
        
        
        Severity: Major
        Found in ckeditor/plugins/markdown/plugin.js - About 3 hrs to fix

          Function setupDragAndDrop has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function setupDragAndDrop( widgetsRepo ) {
                  var editor = widgetsRepo.editor,
                      lineutils = CKEDITOR.plugins.lineutils;
          
                  // These listeners handle inline and block widgets drag and drop.
          Severity: Major
          Found in ckeditor/plugins/widget/plugin.js - About 3 hrs to fix

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

                        var stringBuffer, line,
                            encoding = "utf-8",
                            file = new java.io.File(url),
                            lineSeparator = java.lang.System.getProperty("line.separator"),
                            input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(file), encoding)),
            Severity: Major
            Found in scripts/libs/text.js and 1 other location - About 3 hrs to fix
            scripts/libs/rv.js on lines 163..167

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

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

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

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

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

            Refactorings

            Further Reading

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

                            var stringBuffer, line, encoding = 'utf-8',
                                file = new java.io.File( path ),
                                lineSeparator = java.lang.System.getProperty( 'line.separator' ),
                                input = new java.io.BufferedReader( new java.io.InputStreamReader( new java.io.FileInputStream( file ), encoding ) ),
                                content = '';
            Severity: Major
            Found in scripts/libs/rv.js and 1 other location - About 3 hrs to fix
            scripts/libs/text.js on lines 294..299

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

            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

                                {
                                    id: 'ok',
                                    type: 'button',
                                    label: editorInstance.lang.autosave.ok,
                                    'class': 'cke_dialog_ui_button_ok cke_dialog_autosave_ok',
            Severity: Major
            Found in ckeditor/plugins/autosave/plugin.js and 1 other location - About 3 hrs to fix
            ckeditor/plugins/autosave/plugin.js on lines 158..168

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

            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

                                {
                                    id: 'cancel',
                                    type: 'button',
                                    label: editorInstance.lang.autosave.no,
                                    'class': 'cke_dialog_ui_button_cancel',
            Severity: Major
            Found in ckeditor/plugins/autosave/plugin.js and 1 other location - About 3 hrs to fix
            ckeditor/plugins/autosave/plugin.js on lines 147..157

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

            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

            File plugin.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /**
             * @license Copyright (c) CKSource - Frederico Knabben. All rights reserved.
             * For licensing, see LICENSE.html or http://ckeditor.com/license
             */
            
            
            Severity: Minor
            Found in ckeditor/plugins/wordcount/plugin.js - About 3 hrs to fix

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["hr"] = {
                      cancelText: "Odustani",
                      chooseText: "Odaberi",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-hr.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["de"] = {
                      cancelText: "Abbrechen",
                      chooseText: "Wählen",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-de.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["zh-cn"] = {
                      cancelText: "取消",
                      chooseText: "选择",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-zh-cn.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["fr"] = {
                      cancelText: "Annuler",
                      chooseText: "Valider",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-fr.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["zh-tw"] = {
                      cancelText: "取消",
                      chooseText: "選擇",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-zh-tw.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["pl"] = {
                      cancelText: "Anuluj",
                      chooseText: "Wybierz",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-pl.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
              var localization = $.spectrum.localization["ar"] = {
                  cancelText: "إلغاء",
                  chooseText: "إختار",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-ar.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-gr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

              (function ( $ ) {
              
                  var localization = $.spectrum.localization["gr"] = {
                      cancelText: "Ακύρωση",
                      chooseText: "Επιλογή",
              Severity: Major
              Found in scripts/spectrum/i18n/jquery.spectrum-gr.js and 10 other locations - About 3 hrs to fix
              scripts/spectrum/i18n/jquery.spectrum-ar.js on lines 4..17
              scripts/spectrum/i18n/jquery.spectrum-de.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-es.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-fr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-he.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-hr.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pl.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-pt-br.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-cn.js on lines 5..18
              scripts/spectrum/i18n/jquery.spectrum-zh-tw.js on lines 5..18

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

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

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

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

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

              Refactorings

              Further Reading

              Severity
              Category
              Status
              Source
              Language