phodal/congee

View on GitHub

Showing 421 of 421 total issues

Avoid deeply nested control flow statements.
Open

                            if (req.onResourceLoad) {
                                req.onResourceLoad(context, this.map, this.depMaps);
                            }
Severity: Major
Found in scripts/libs/require.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                    if ( dist < sorted[ i ].dist ) {
                                        sorted.splice( i, 0, { uid: +uid, type: type, dist: dist } );
                                        break;
                                    }
    Severity: Major
    Found in ckeditor/plugins/lineutils/plugin.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                  if ((this.events.error && this.map.isDefine) ||
                                      req.onError !== defaultOnError) {
                                      try {
                                          exports = context.execCb(id, factory, depExports, exports);
                                      } catch (e) {
      Severity: Major
      Found in scripts/libs/require.js - About 45 mins to fix

        Function __ntuplecomp has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
        Open

            __ntuplecomp: function (a, b) {
                var mlen = Math.max(a.length, b.length);
                for (var i = 0; i < mlen; i++) {
                    if (a[i] < b[i]) return -1;
                    if (a[i] > b[i]) return 1;
        Severity: Minor
        Found in ckeditor/plugins/autosave/js/difflib.js - About 45 mins to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Avoid deeply nested control flow statements.
        Open

                            if (headers.hasOwnProperty(header)) {
                                xhr.setRequestHeader(header.toLowerCase(), headers[header]);
                            }
        Severity: Major
        Found in scripts/libs/text.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                  if (context_data_position == bitsPerChar - 1) {
                                      context_data_position = 0;
                                      context_data.push(getCharFromInt(context_data_val));
                                      context_data_val = 0;
                                  } else {
          Severity: Major
          Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                            if ( !groupStarted ) {
                                                output.push( '<span class="cke_toolgroup" role="presentation">' );
                                                groupStarted = 1;
                                            }
            Severity: Major
            Found in ckeditor/plugins/floating-tools/plugin.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      for (i = 0 ; i < 16 ; i++) {
                                          context_data_val = (context_data_val << 1) | (value & 1);
                                          if (context_data_position == bitsPerChar - 1) {
                                              context_data_position = 0;
                                              context_data.push(getCharFromInt(context_data_val));
              Severity: Major
              Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        for (i = 0 ; i < 8 ; i++) {
                                            context_data_val = (context_data_val << 1) | (value & 1);
                                            if (context_data_position == bitsPerChar - 1) {
                                                context_data_position = 0;
                                                context_data.push(getCharFromInt(context_data_val));
                Severity: Major
                Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                          if (context_data_position == bitsPerChar - 1) {
                                              context_data_position = 0;
                                              context_data.push(getCharFromInt(context_data_val));
                                              context_data_val = 0;
                                          } else {
                  Severity: Major
                  Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for (i = 0 ; i < context_numBits ; i++) {
                                                context_data_val = (context_data_val << 1);
                                                if (context_data_position == bitsPerChar - 1) {
                                                    context_data_position = 0;
                                                    context_data.push(getCharFromInt(context_data_val));
                    Severity: Major
                    Found in ckeditor/plugins/autosave/js/lz-string-1.3.3.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (b < be) addCellsInline(node, b++, null, baseTextLines, "delete");
                      Severity: Major
                      Found in ckeditor/plugins/autosave/js/diffview.js - About 45 mins to fix

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

                        CKEDITOR.plugins.setLang( 'templates', 'bg', {
                            button: 'Шаблони',
                            emptyListMsg: '(Няма дефинирани шаблони)',
                            insertOption: 'Препокрива актуалното съдържание',
                            options: 'Опции за шаблона',
                        Severity: Major
                        Found in ckeditor/plugins/templates/lang/bg.js and 53 other locations - About 45 mins to fix
                        ckeditor/plugins/templates/lang/af.js on lines 5..12
                        ckeditor/plugins/templates/lang/ar.js on lines 5..12
                        ckeditor/plugins/templates/lang/ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/cs.js on lines 5..12
                        ckeditor/plugins/templates/lang/cy.js on lines 5..12
                        ckeditor/plugins/templates/lang/da.js on lines 5..12
                        ckeditor/plugins/templates/lang/de.js on lines 5..12
                        ckeditor/plugins/templates/lang/el.js on lines 5..12
                        ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                        ckeditor/plugins/templates/lang/en.js on lines 5..12
                        ckeditor/plugins/templates/lang/eo.js on lines 5..12
                        ckeditor/plugins/templates/lang/es.js on lines 5..12
                        ckeditor/plugins/templates/lang/et.js on lines 5..12
                        ckeditor/plugins/templates/lang/eu.js on lines 5..12
                        ckeditor/plugins/templates/lang/fa.js on lines 5..12
                        ckeditor/plugins/templates/lang/fi.js on lines 5..12
                        ckeditor/plugins/templates/lang/fo.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr.js on lines 5..12
                        ckeditor/plugins/templates/lang/gl.js on lines 5..12
                        ckeditor/plugins/templates/lang/gu.js on lines 5..12
                        ckeditor/plugins/templates/lang/he.js on lines 5..12
                        ckeditor/plugins/templates/lang/hr.js on lines 5..12
                        ckeditor/plugins/templates/lang/hu.js on lines 5..12
                        ckeditor/plugins/templates/lang/id.js on lines 5..12
                        ckeditor/plugins/templates/lang/it.js on lines 5..12
                        ckeditor/plugins/templates/lang/ja.js on lines 5..12
                        ckeditor/plugins/templates/lang/ka.js on lines 5..12
                        ckeditor/plugins/templates/lang/km.js on lines 5..12
                        ckeditor/plugins/templates/lang/ko.js on lines 5..12
                        ckeditor/plugins/templates/lang/ku.js on lines 5..12
                        ckeditor/plugins/templates/lang/lt.js on lines 5..12
                        ckeditor/plugins/templates/lang/lv.js on lines 5..12
                        ckeditor/plugins/templates/lang/nb.js on lines 5..12
                        ckeditor/plugins/templates/lang/nl.js on lines 5..12
                        ckeditor/plugins/templates/lang/no.js on lines 5..12
                        ckeditor/plugins/templates/lang/pl.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt.js on lines 5..12
                        ckeditor/plugins/templates/lang/ro.js on lines 5..12
                        ckeditor/plugins/templates/lang/ru.js on lines 5..12
                        ckeditor/plugins/templates/lang/si.js on lines 5..12
                        ckeditor/plugins/templates/lang/sk.js on lines 5..12
                        ckeditor/plugins/templates/lang/sl.js on lines 5..12
                        ckeditor/plugins/templates/lang/sq.js on lines 5..12
                        ckeditor/plugins/templates/lang/sv.js on lines 5..12
                        ckeditor/plugins/templates/lang/th.js on lines 5..12
                        ckeditor/plugins/templates/lang/tr.js on lines 5..12
                        ckeditor/plugins/templates/lang/ug.js on lines 5..12
                        ckeditor/plugins/templates/lang/uk.js on lines 5..12
                        ckeditor/plugins/templates/lang/vi.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh.js on lines 5..12

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

                        CKEDITOR.plugins.setLang( 'templates', 'fa', {
                            button: 'الگوها',
                            emptyListMsg: '(الگوئی تعریف نشده است)',
                            insertOption: 'محتویات کنونی جایگزین شوند',
                            options: 'گزینه‌های الگو',
                        Severity: Major
                        Found in ckeditor/plugins/templates/lang/fa.js and 53 other locations - About 45 mins to fix
                        ckeditor/plugins/templates/lang/af.js on lines 5..12
                        ckeditor/plugins/templates/lang/ar.js on lines 5..12
                        ckeditor/plugins/templates/lang/bg.js on lines 5..12
                        ckeditor/plugins/templates/lang/ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/cs.js on lines 5..12
                        ckeditor/plugins/templates/lang/cy.js on lines 5..12
                        ckeditor/plugins/templates/lang/da.js on lines 5..12
                        ckeditor/plugins/templates/lang/de.js on lines 5..12
                        ckeditor/plugins/templates/lang/el.js on lines 5..12
                        ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                        ckeditor/plugins/templates/lang/en.js on lines 5..12
                        ckeditor/plugins/templates/lang/eo.js on lines 5..12
                        ckeditor/plugins/templates/lang/es.js on lines 5..12
                        ckeditor/plugins/templates/lang/et.js on lines 5..12
                        ckeditor/plugins/templates/lang/eu.js on lines 5..12
                        ckeditor/plugins/templates/lang/fi.js on lines 5..12
                        ckeditor/plugins/templates/lang/fo.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr.js on lines 5..12
                        ckeditor/plugins/templates/lang/gl.js on lines 5..12
                        ckeditor/plugins/templates/lang/gu.js on lines 5..12
                        ckeditor/plugins/templates/lang/he.js on lines 5..12
                        ckeditor/plugins/templates/lang/hr.js on lines 5..12
                        ckeditor/plugins/templates/lang/hu.js on lines 5..12
                        ckeditor/plugins/templates/lang/id.js on lines 5..12
                        ckeditor/plugins/templates/lang/it.js on lines 5..12
                        ckeditor/plugins/templates/lang/ja.js on lines 5..12
                        ckeditor/plugins/templates/lang/ka.js on lines 5..12
                        ckeditor/plugins/templates/lang/km.js on lines 5..12
                        ckeditor/plugins/templates/lang/ko.js on lines 5..12
                        ckeditor/plugins/templates/lang/ku.js on lines 5..12
                        ckeditor/plugins/templates/lang/lt.js on lines 5..12
                        ckeditor/plugins/templates/lang/lv.js on lines 5..12
                        ckeditor/plugins/templates/lang/nb.js on lines 5..12
                        ckeditor/plugins/templates/lang/nl.js on lines 5..12
                        ckeditor/plugins/templates/lang/no.js on lines 5..12
                        ckeditor/plugins/templates/lang/pl.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt.js on lines 5..12
                        ckeditor/plugins/templates/lang/ro.js on lines 5..12
                        ckeditor/plugins/templates/lang/ru.js on lines 5..12
                        ckeditor/plugins/templates/lang/si.js on lines 5..12
                        ckeditor/plugins/templates/lang/sk.js on lines 5..12
                        ckeditor/plugins/templates/lang/sl.js on lines 5..12
                        ckeditor/plugins/templates/lang/sq.js on lines 5..12
                        ckeditor/plugins/templates/lang/sv.js on lines 5..12
                        ckeditor/plugins/templates/lang/th.js on lines 5..12
                        ckeditor/plugins/templates/lang/tr.js on lines 5..12
                        ckeditor/plugins/templates/lang/ug.js on lines 5..12
                        ckeditor/plugins/templates/lang/uk.js on lines 5..12
                        ckeditor/plugins/templates/lang/vi.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh.js on lines 5..12

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

                        CKEDITOR.plugins.setLang( 'templates', 'ja', {
                            button: 'テンプレート',
                            emptyListMsg: '(テンプレートが定義されていません)',
                            insertOption: '現在のエディタの内容と置き換えます',
                            options: 'テンプレートオプション',
                        Severity: Major
                        Found in ckeditor/plugins/templates/lang/ja.js and 53 other locations - About 45 mins to fix
                        ckeditor/plugins/templates/lang/af.js on lines 5..12
                        ckeditor/plugins/templates/lang/ar.js on lines 5..12
                        ckeditor/plugins/templates/lang/bg.js on lines 5..12
                        ckeditor/plugins/templates/lang/ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/cs.js on lines 5..12
                        ckeditor/plugins/templates/lang/cy.js on lines 5..12
                        ckeditor/plugins/templates/lang/da.js on lines 5..12
                        ckeditor/plugins/templates/lang/de.js on lines 5..12
                        ckeditor/plugins/templates/lang/el.js on lines 5..12
                        ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                        ckeditor/plugins/templates/lang/en.js on lines 5..12
                        ckeditor/plugins/templates/lang/eo.js on lines 5..12
                        ckeditor/plugins/templates/lang/es.js on lines 5..12
                        ckeditor/plugins/templates/lang/et.js on lines 5..12
                        ckeditor/plugins/templates/lang/eu.js on lines 5..12
                        ckeditor/plugins/templates/lang/fa.js on lines 5..12
                        ckeditor/plugins/templates/lang/fi.js on lines 5..12
                        ckeditor/plugins/templates/lang/fo.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr.js on lines 5..12
                        ckeditor/plugins/templates/lang/gl.js on lines 5..12
                        ckeditor/plugins/templates/lang/gu.js on lines 5..12
                        ckeditor/plugins/templates/lang/he.js on lines 5..12
                        ckeditor/plugins/templates/lang/hr.js on lines 5..12
                        ckeditor/plugins/templates/lang/hu.js on lines 5..12
                        ckeditor/plugins/templates/lang/id.js on lines 5..12
                        ckeditor/plugins/templates/lang/it.js on lines 5..12
                        ckeditor/plugins/templates/lang/ka.js on lines 5..12
                        ckeditor/plugins/templates/lang/km.js on lines 5..12
                        ckeditor/plugins/templates/lang/ko.js on lines 5..12
                        ckeditor/plugins/templates/lang/ku.js on lines 5..12
                        ckeditor/plugins/templates/lang/lt.js on lines 5..12
                        ckeditor/plugins/templates/lang/lv.js on lines 5..12
                        ckeditor/plugins/templates/lang/nb.js on lines 5..12
                        ckeditor/plugins/templates/lang/nl.js on lines 5..12
                        ckeditor/plugins/templates/lang/no.js on lines 5..12
                        ckeditor/plugins/templates/lang/pl.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt.js on lines 5..12
                        ckeditor/plugins/templates/lang/ro.js on lines 5..12
                        ckeditor/plugins/templates/lang/ru.js on lines 5..12
                        ckeditor/plugins/templates/lang/si.js on lines 5..12
                        ckeditor/plugins/templates/lang/sk.js on lines 5..12
                        ckeditor/plugins/templates/lang/sl.js on lines 5..12
                        ckeditor/plugins/templates/lang/sq.js on lines 5..12
                        ckeditor/plugins/templates/lang/sv.js on lines 5..12
                        ckeditor/plugins/templates/lang/th.js on lines 5..12
                        ckeditor/plugins/templates/lang/tr.js on lines 5..12
                        ckeditor/plugins/templates/lang/ug.js on lines 5..12
                        ckeditor/plugins/templates/lang/uk.js on lines 5..12
                        ckeditor/plugins/templates/lang/vi.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh.js on lines 5..12

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

                        CKEDITOR.plugins.setLang( 'templates', 'sq', {
                            button: 'Shabllonet',
                            emptyListMsg: '(Asnjë shabllon nuk është paradefinuar)',
                            insertOption: 'Zëvendëso përmbajtjen aktuale',
                            options: 'Opsionet e Shabllonit',
                        Severity: Major
                        Found in ckeditor/plugins/templates/lang/sq.js and 53 other locations - About 45 mins to fix
                        ckeditor/plugins/templates/lang/af.js on lines 5..12
                        ckeditor/plugins/templates/lang/ar.js on lines 5..12
                        ckeditor/plugins/templates/lang/bg.js on lines 5..12
                        ckeditor/plugins/templates/lang/ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/cs.js on lines 5..12
                        ckeditor/plugins/templates/lang/cy.js on lines 5..12
                        ckeditor/plugins/templates/lang/da.js on lines 5..12
                        ckeditor/plugins/templates/lang/de.js on lines 5..12
                        ckeditor/plugins/templates/lang/el.js on lines 5..12
                        ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                        ckeditor/plugins/templates/lang/en.js on lines 5..12
                        ckeditor/plugins/templates/lang/eo.js on lines 5..12
                        ckeditor/plugins/templates/lang/es.js on lines 5..12
                        ckeditor/plugins/templates/lang/et.js on lines 5..12
                        ckeditor/plugins/templates/lang/eu.js on lines 5..12
                        ckeditor/plugins/templates/lang/fa.js on lines 5..12
                        ckeditor/plugins/templates/lang/fi.js on lines 5..12
                        ckeditor/plugins/templates/lang/fo.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr.js on lines 5..12
                        ckeditor/plugins/templates/lang/gl.js on lines 5..12
                        ckeditor/plugins/templates/lang/gu.js on lines 5..12
                        ckeditor/plugins/templates/lang/he.js on lines 5..12
                        ckeditor/plugins/templates/lang/hr.js on lines 5..12
                        ckeditor/plugins/templates/lang/hu.js on lines 5..12
                        ckeditor/plugins/templates/lang/id.js on lines 5..12
                        ckeditor/plugins/templates/lang/it.js on lines 5..12
                        ckeditor/plugins/templates/lang/ja.js on lines 5..12
                        ckeditor/plugins/templates/lang/ka.js on lines 5..12
                        ckeditor/plugins/templates/lang/km.js on lines 5..12
                        ckeditor/plugins/templates/lang/ko.js on lines 5..12
                        ckeditor/plugins/templates/lang/ku.js on lines 5..12
                        ckeditor/plugins/templates/lang/lt.js on lines 5..12
                        ckeditor/plugins/templates/lang/lv.js on lines 5..12
                        ckeditor/plugins/templates/lang/nb.js on lines 5..12
                        ckeditor/plugins/templates/lang/nl.js on lines 5..12
                        ckeditor/plugins/templates/lang/no.js on lines 5..12
                        ckeditor/plugins/templates/lang/pl.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt.js on lines 5..12
                        ckeditor/plugins/templates/lang/ro.js on lines 5..12
                        ckeditor/plugins/templates/lang/ru.js on lines 5..12
                        ckeditor/plugins/templates/lang/si.js on lines 5..12
                        ckeditor/plugins/templates/lang/sk.js on lines 5..12
                        ckeditor/plugins/templates/lang/sl.js on lines 5..12
                        ckeditor/plugins/templates/lang/sv.js on lines 5..12
                        ckeditor/plugins/templates/lang/th.js on lines 5..12
                        ckeditor/plugins/templates/lang/tr.js on lines 5..12
                        ckeditor/plugins/templates/lang/ug.js on lines 5..12
                        ckeditor/plugins/templates/lang/uk.js on lines 5..12
                        ckeditor/plugins/templates/lang/vi.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh.js on lines 5..12

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

                        CKEDITOR.plugins.setLang( 'templates', 'zh-cn', {
                            button: '模板',
                            emptyListMsg: '(没有模板)',
                            insertOption: '替换当前内容',
                            options: '模板选项',
                        Severity: Major
                        Found in ckeditor/plugins/templates/lang/zh-cn.js and 53 other locations - About 45 mins to fix
                        ckeditor/plugins/templates/lang/af.js on lines 5..12
                        ckeditor/plugins/templates/lang/ar.js on lines 5..12
                        ckeditor/plugins/templates/lang/bg.js on lines 5..12
                        ckeditor/plugins/templates/lang/ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/cs.js on lines 5..12
                        ckeditor/plugins/templates/lang/cy.js on lines 5..12
                        ckeditor/plugins/templates/lang/da.js on lines 5..12
                        ckeditor/plugins/templates/lang/de.js on lines 5..12
                        ckeditor/plugins/templates/lang/el.js on lines 5..12
                        ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                        ckeditor/plugins/templates/lang/en.js on lines 5..12
                        ckeditor/plugins/templates/lang/eo.js on lines 5..12
                        ckeditor/plugins/templates/lang/es.js on lines 5..12
                        ckeditor/plugins/templates/lang/et.js on lines 5..12
                        ckeditor/plugins/templates/lang/eu.js on lines 5..12
                        ckeditor/plugins/templates/lang/fa.js on lines 5..12
                        ckeditor/plugins/templates/lang/fi.js on lines 5..12
                        ckeditor/plugins/templates/lang/fo.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                        ckeditor/plugins/templates/lang/fr.js on lines 5..12
                        ckeditor/plugins/templates/lang/gl.js on lines 5..12
                        ckeditor/plugins/templates/lang/gu.js on lines 5..12
                        ckeditor/plugins/templates/lang/he.js on lines 5..12
                        ckeditor/plugins/templates/lang/hr.js on lines 5..12
                        ckeditor/plugins/templates/lang/hu.js on lines 5..12
                        ckeditor/plugins/templates/lang/id.js on lines 5..12
                        ckeditor/plugins/templates/lang/it.js on lines 5..12
                        ckeditor/plugins/templates/lang/ja.js on lines 5..12
                        ckeditor/plugins/templates/lang/ka.js on lines 5..12
                        ckeditor/plugins/templates/lang/km.js on lines 5..12
                        ckeditor/plugins/templates/lang/ko.js on lines 5..12
                        ckeditor/plugins/templates/lang/ku.js on lines 5..12
                        ckeditor/plugins/templates/lang/lt.js on lines 5..12
                        ckeditor/plugins/templates/lang/lv.js on lines 5..12
                        ckeditor/plugins/templates/lang/nb.js on lines 5..12
                        ckeditor/plugins/templates/lang/nl.js on lines 5..12
                        ckeditor/plugins/templates/lang/no.js on lines 5..12
                        ckeditor/plugins/templates/lang/pl.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                        ckeditor/plugins/templates/lang/pt.js on lines 5..12
                        ckeditor/plugins/templates/lang/ro.js on lines 5..12
                        ckeditor/plugins/templates/lang/ru.js on lines 5..12
                        ckeditor/plugins/templates/lang/si.js on lines 5..12
                        ckeditor/plugins/templates/lang/sk.js on lines 5..12
                        ckeditor/plugins/templates/lang/sl.js on lines 5..12
                        ckeditor/plugins/templates/lang/sq.js on lines 5..12
                        ckeditor/plugins/templates/lang/sv.js on lines 5..12
                        ckeditor/plugins/templates/lang/th.js on lines 5..12
                        ckeditor/plugins/templates/lang/tr.js on lines 5..12
                        ckeditor/plugins/templates/lang/ug.js on lines 5..12
                        ckeditor/plugins/templates/lang/uk.js on lines 5..12
                        ckeditor/plugins/templates/lang/vi.js on lines 5..12
                        ckeditor/plugins/templates/lang/zh.js on lines 5..12

                        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

                        Avoid deeply nested control flow statements.
                        Open

                                            } else if (change == "delete") {
                                                addCellsInline(node, b++, null, baseTextLines, change);
                                            } else {
                                                // equal
                                                addCellsInline(node, b++, n++, baseTextLines, change);
                        Severity: Major
                        Found in ckeditor/plugins/autosave/js/diffview.js - About 45 mins to fix

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

                          CKEDITOR.plugins.setLang( 'templates', 'ko', {
                              button: '템플릿',
                              emptyListMsg: '(템플릿이 없습니다)',
                              insertOption: '현재 내용 바꾸기',
                              options: '템플릿 옵션',
                          Severity: Major
                          Found in ckeditor/plugins/templates/lang/ko.js and 53 other locations - About 45 mins to fix
                          ckeditor/plugins/templates/lang/af.js on lines 5..12
                          ckeditor/plugins/templates/lang/ar.js on lines 5..12
                          ckeditor/plugins/templates/lang/bg.js on lines 5..12
                          ckeditor/plugins/templates/lang/ca.js on lines 5..12
                          ckeditor/plugins/templates/lang/cs.js on lines 5..12
                          ckeditor/plugins/templates/lang/cy.js on lines 5..12
                          ckeditor/plugins/templates/lang/da.js on lines 5..12
                          ckeditor/plugins/templates/lang/de.js on lines 5..12
                          ckeditor/plugins/templates/lang/el.js on lines 5..12
                          ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                          ckeditor/plugins/templates/lang/en.js on lines 5..12
                          ckeditor/plugins/templates/lang/eo.js on lines 5..12
                          ckeditor/plugins/templates/lang/es.js on lines 5..12
                          ckeditor/plugins/templates/lang/et.js on lines 5..12
                          ckeditor/plugins/templates/lang/eu.js on lines 5..12
                          ckeditor/plugins/templates/lang/fa.js on lines 5..12
                          ckeditor/plugins/templates/lang/fi.js on lines 5..12
                          ckeditor/plugins/templates/lang/fo.js on lines 5..12
                          ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                          ckeditor/plugins/templates/lang/fr.js on lines 5..12
                          ckeditor/plugins/templates/lang/gl.js on lines 5..12
                          ckeditor/plugins/templates/lang/gu.js on lines 5..12
                          ckeditor/plugins/templates/lang/he.js on lines 5..12
                          ckeditor/plugins/templates/lang/hr.js on lines 5..12
                          ckeditor/plugins/templates/lang/hu.js on lines 5..12
                          ckeditor/plugins/templates/lang/id.js on lines 5..12
                          ckeditor/plugins/templates/lang/it.js on lines 5..12
                          ckeditor/plugins/templates/lang/ja.js on lines 5..12
                          ckeditor/plugins/templates/lang/ka.js on lines 5..12
                          ckeditor/plugins/templates/lang/km.js on lines 5..12
                          ckeditor/plugins/templates/lang/ku.js on lines 5..12
                          ckeditor/plugins/templates/lang/lt.js on lines 5..12
                          ckeditor/plugins/templates/lang/lv.js on lines 5..12
                          ckeditor/plugins/templates/lang/nb.js on lines 5..12
                          ckeditor/plugins/templates/lang/nl.js on lines 5..12
                          ckeditor/plugins/templates/lang/no.js on lines 5..12
                          ckeditor/plugins/templates/lang/pl.js on lines 5..12
                          ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                          ckeditor/plugins/templates/lang/pt.js on lines 5..12
                          ckeditor/plugins/templates/lang/ro.js on lines 5..12
                          ckeditor/plugins/templates/lang/ru.js on lines 5..12
                          ckeditor/plugins/templates/lang/si.js on lines 5..12
                          ckeditor/plugins/templates/lang/sk.js on lines 5..12
                          ckeditor/plugins/templates/lang/sl.js on lines 5..12
                          ckeditor/plugins/templates/lang/sq.js on lines 5..12
                          ckeditor/plugins/templates/lang/sv.js on lines 5..12
                          ckeditor/plugins/templates/lang/th.js on lines 5..12
                          ckeditor/plugins/templates/lang/tr.js on lines 5..12
                          ckeditor/plugins/templates/lang/ug.js on lines 5..12
                          ckeditor/plugins/templates/lang/uk.js on lines 5..12
                          ckeditor/plugins/templates/lang/vi.js on lines 5..12
                          ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                          ckeditor/plugins/templates/lang/zh.js on lines 5..12

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

                          CKEDITOR.plugins.setLang( 'templates', 'id', {
                              button: 'Contoh',
                              emptyListMsg: '(Tidak ada contoh didefinisikan)',
                              insertOption: 'Ganti konten sebenarnya',
                              options: 'Opsi Contoh',
                          Severity: Major
                          Found in ckeditor/plugins/templates/lang/id.js and 53 other locations - About 45 mins to fix
                          ckeditor/plugins/templates/lang/af.js on lines 5..12
                          ckeditor/plugins/templates/lang/ar.js on lines 5..12
                          ckeditor/plugins/templates/lang/bg.js on lines 5..12
                          ckeditor/plugins/templates/lang/ca.js on lines 5..12
                          ckeditor/plugins/templates/lang/cs.js on lines 5..12
                          ckeditor/plugins/templates/lang/cy.js on lines 5..12
                          ckeditor/plugins/templates/lang/da.js on lines 5..12
                          ckeditor/plugins/templates/lang/de.js on lines 5..12
                          ckeditor/plugins/templates/lang/el.js on lines 5..12
                          ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
                          ckeditor/plugins/templates/lang/en.js on lines 5..12
                          ckeditor/plugins/templates/lang/eo.js on lines 5..12
                          ckeditor/plugins/templates/lang/es.js on lines 5..12
                          ckeditor/plugins/templates/lang/et.js on lines 5..12
                          ckeditor/plugins/templates/lang/eu.js on lines 5..12
                          ckeditor/plugins/templates/lang/fa.js on lines 5..12
                          ckeditor/plugins/templates/lang/fi.js on lines 5..12
                          ckeditor/plugins/templates/lang/fo.js on lines 5..12
                          ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
                          ckeditor/plugins/templates/lang/fr.js on lines 5..12
                          ckeditor/plugins/templates/lang/gl.js on lines 5..12
                          ckeditor/plugins/templates/lang/gu.js on lines 5..12
                          ckeditor/plugins/templates/lang/he.js on lines 5..12
                          ckeditor/plugins/templates/lang/hr.js on lines 5..12
                          ckeditor/plugins/templates/lang/hu.js on lines 5..12
                          ckeditor/plugins/templates/lang/it.js on lines 5..12
                          ckeditor/plugins/templates/lang/ja.js on lines 5..12
                          ckeditor/plugins/templates/lang/ka.js on lines 5..12
                          ckeditor/plugins/templates/lang/km.js on lines 5..12
                          ckeditor/plugins/templates/lang/ko.js on lines 5..12
                          ckeditor/plugins/templates/lang/ku.js on lines 5..12
                          ckeditor/plugins/templates/lang/lt.js on lines 5..12
                          ckeditor/plugins/templates/lang/lv.js on lines 5..12
                          ckeditor/plugins/templates/lang/nb.js on lines 5..12
                          ckeditor/plugins/templates/lang/nl.js on lines 5..12
                          ckeditor/plugins/templates/lang/no.js on lines 5..12
                          ckeditor/plugins/templates/lang/pl.js on lines 5..12
                          ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
                          ckeditor/plugins/templates/lang/pt.js on lines 5..12
                          ckeditor/plugins/templates/lang/ro.js on lines 5..12
                          ckeditor/plugins/templates/lang/ru.js on lines 5..12
                          ckeditor/plugins/templates/lang/si.js on lines 5..12
                          ckeditor/plugins/templates/lang/sk.js on lines 5..12
                          ckeditor/plugins/templates/lang/sl.js on lines 5..12
                          ckeditor/plugins/templates/lang/sq.js on lines 5..12
                          ckeditor/plugins/templates/lang/sv.js on lines 5..12
                          ckeditor/plugins/templates/lang/th.js on lines 5..12
                          ckeditor/plugins/templates/lang/tr.js on lines 5..12
                          ckeditor/plugins/templates/lang/ug.js on lines 5..12
                          ckeditor/plugins/templates/lang/uk.js on lines 5..12
                          ckeditor/plugins/templates/lang/vi.js on lines 5..12
                          ckeditor/plugins/templates/lang/zh-cn.js on lines 5..12
                          ckeditor/plugins/templates/lang/zh.js on lines 5..12

                          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

                          Severity
                          Category
                          Status
                          Source
                          Language