phodal/congee

View on GitHub

Showing 421 of 421 total issues

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

        this.get_opcodes = function () {
            if (this.opcodes != null) return this.opcodes;
            var i = 0;
            var j = 0;
            var answer = [];
Severity: Minor
Found in ckeditor/plugins/autosave/js/difflib.js - About 1 hr to fix

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

            function applyOptions() {
    
                if (opts.showPaletteOnly) {
                    opts.showPalette = true;
                }
    Severity: Minor
    Found in scripts/spectrum/spectrum.js - About 1 hr to fix

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

          init: function (config) {
            var Grid = Ractive.extend({
              isolated: false,
              template: followTemplate,
              data: {
      Severity: Minor
      Found in scripts/views/followView.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

                    if (dragging) {
                        // Mouseup happened outside of window
                        if (IE && doc.documentMode < 9 && !e.button) {
                            return stop();
                        }
        Severity: Major
        Found in scripts/spectrum/spectrum.js - About 1 hr to fix

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

          CKEDITOR.plugins.setLang('wordcount', 'ca', {
              WordCount: 'Paraules:',
              CharCount: 'Caràcters:',
              CharCountWithHTML: 'Caràcters (including HTML):',
              Paragraphs: 'Paragraphs:',
          Severity: Major
          Found in ckeditor/plugins/wordcount/lang/ca.js and 14 other locations - About 1 hr to fix
          ckeditor/plugins/wordcount/lang/de.js on lines 5..13
          ckeditor/plugins/wordcount/lang/el.js on lines 5..13
          ckeditor/plugins/wordcount/lang/en.js on lines 5..13
          ckeditor/plugins/wordcount/lang/es.js on lines 5..13
          ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/it.js on lines 6..14
          ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
          ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
          ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
          ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
          ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 55.

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

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

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

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

          Refactorings

          Further Reading

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

          CKEDITOR.plugins.setLang('wordcount', 'sv', {
              WordCount: 'Ord:',
              CharCount: 'Tecken:',
              CharCountWithHTML: 'Tecken (inklusive HTML):',
              Paragraphs: 'Paragraphs:',
          Severity: Major
          Found in ckeditor/plugins/wordcount/lang/sv.js and 14 other locations - About 1 hr to fix
          ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
          ckeditor/plugins/wordcount/lang/de.js on lines 5..13
          ckeditor/plugins/wordcount/lang/el.js on lines 5..13
          ckeditor/plugins/wordcount/lang/en.js on lines 5..13
          ckeditor/plugins/wordcount/lang/es.js on lines 5..13
          ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/it.js on lines 6..14
          ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
          ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
          ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
          ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 55.

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

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

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

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

          Refactorings

          Further Reading

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

          CKEDITOR.plugins.setLang('wordcount', 'nl', {
              WordCount: 'Woorden:',
              CharCount: 'Tekens:',
              CharCountWithHTML: 'Tekens (inclusief HTML):',
              Paragraphs: 'Paragraphs:',
          Severity: Major
          Found in ckeditor/plugins/wordcount/lang/nl.js and 14 other locations - About 1 hr to fix
          ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
          ckeditor/plugins/wordcount/lang/de.js on lines 5..13
          ckeditor/plugins/wordcount/lang/el.js on lines 5..13
          ckeditor/plugins/wordcount/lang/en.js on lines 5..13
          ckeditor/plugins/wordcount/lang/es.js on lines 5..13
          ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/it.js on lines 6..14
          ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
          ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
          ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
          ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 55.

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

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

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

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

          Refactorings

          Further Reading

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

          CKEDITOR.plugins.setLang('wordcount', 'es', {
              WordCount: 'Palabras:',
              CharCount: 'Caràcteres:',
              CharCountWithHTML: 'Caràcteres (con HTML):',
              Paragraphs: 'Paragraphs:',
          Severity: Major
          Found in ckeditor/plugins/wordcount/lang/es.js and 14 other locations - About 1 hr to fix
          ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
          ckeditor/plugins/wordcount/lang/de.js on lines 5..13
          ckeditor/plugins/wordcount/lang/el.js on lines 5..13
          ckeditor/plugins/wordcount/lang/en.js on lines 5..13
          ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/it.js on lines 6..14
          ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
          ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
          ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
          ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
          ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 55.

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

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

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

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

          Refactorings

          Further Reading

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

          CKEDITOR.plugins.setLang('wordcount', 'en', {
              WordCount: 'Words:',
              CharCount: 'Characters:',
              CharCountWithHTML: ' (with HTML: %charCountHTML%)',
              Paragraphs: 'Paragraphs:',
          Severity: Major
          Found in ckeditor/plugins/wordcount/lang/en.js and 14 other locations - About 1 hr to fix
          ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
          ckeditor/plugins/wordcount/lang/de.js on lines 5..13
          ckeditor/plugins/wordcount/lang/el.js on lines 5..13
          ckeditor/plugins/wordcount/lang/es.js on lines 5..13
          ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/it.js on lines 6..14
          ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
          ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
          ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
          ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
          ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
          ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
          ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 55.

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

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

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

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

          Refactorings

          Further Reading

          Consider simplifying this complex logical expression.
          Open

                          if (contextSize && opcodes.length > 1 && ((idx > 0 && i == contextSize) || (idx == 0 && i == 0)) && change=="equal") {
                              var jump = rowcnt - ((idx == 0 ? 1 : 2) * contextSize);
                              if (jump > 1) {
                                  toprows.push(node = document.createElement("tr"));
                                  
          Severity: Major
          Found in ckeditor/plugins/autosave/js/diffview.js - About 1 hr to fix

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

            CKEDITOR.plugins.setLang('wordcount', 'tr', {
                WordCount: 'Kelime:',
                CharCount: 'Karakter:',
                CharCountWithHTML: 'Karakter (HTML dahil):',
                Paragraphs: 'Paragraf:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/tr.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'ru', {
                WordCount: 'Слов:',
                CharCount: 'Символов:',
                CharCountWithHTML: 'Символов (включая HTML):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/ru.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'it', {
                WordCount: 'Parole:',
                CharCount: 'Caratteri:',
                CharCountWithHTML: 'Caratteri (HTML incluso):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/it.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'hr', {
                WordCount: 'Riječi:',
                CharCount: 'Znakova:',
                CharCountWithHTML: 'Znakova (uključujući HTML):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/hr.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'jp', {
                WordCount: '単語数:',
                CharCount: '文字数:',
                CharCountWithHTML: ' (with HTML: %charCountHTML%)',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/jp.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'zh-cn', {
                WordCount: '词数:',
                CharCount: '字符:',
                CharCountWithHTML: ' (含HTML)',
                Paragraphs: '段落:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/zh-cn.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'el', {
                WordCount: 'Λέξεις:',
                CharCount: 'Χαρακτήρες:',
                CharCountWithHTML: 'Χαρακτήρες (μαζί με HTML):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/el.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'pt-br', {
                WordCount: 'Contagem de palavras:',
                CharCount: 'Contagem de caracteres:',
                CharCountWithHTML: 'Characters (including HTML):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/pt-br.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'de', {
                WordCount: 'Wörter:',
                CharCount: 'Zeichen:',
                CharCountWithHTML: 'Zeichen (inkl. HTML):',
                Paragraphs: 'Absätze:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/de.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

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

            CKEDITOR.plugins.setLang('wordcount', 'pl', {
                WordCount: 'Słów:',
                CharCount: 'Znaków:',
                CharCountWithHTML: 'Znaków (wraz z kodem HTML):',
                Paragraphs: 'Paragraphs:',
            Severity: Major
            Found in ckeditor/plugins/wordcount/lang/pl.js and 14 other locations - About 1 hr to fix
            ckeditor/plugins/wordcount/lang/ca.js on lines 5..13
            ckeditor/plugins/wordcount/lang/de.js on lines 5..13
            ckeditor/plugins/wordcount/lang/el.js on lines 5..13
            ckeditor/plugins/wordcount/lang/en.js on lines 5..13
            ckeditor/plugins/wordcount/lang/es.js on lines 5..13
            ckeditor/plugins/wordcount/lang/hr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/it.js on lines 6..14
            ckeditor/plugins/wordcount/lang/jp.js on lines 5..13
            ckeditor/plugins/wordcount/lang/nl.js on lines 5..13
            ckeditor/plugins/wordcount/lang/pt-br.js on lines 5..13
            ckeditor/plugins/wordcount/lang/ru.js on lines 5..13
            ckeditor/plugins/wordcount/lang/sv.js on lines 5..13
            ckeditor/plugins/wordcount/lang/tr.js on lines 5..13
            ckeditor/plugins/wordcount/lang/zh-cn.js on lines 5..13

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 55.

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

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

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

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

            Refactorings

            Further Reading

            Severity
            Category
            Status
            Source
            Language