phodal/congee

View on GitHub

Showing 421 of 421 total issues

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

CKEDITOR.plugins.setLang( 'templates', 'sv', {
    button: 'Sidmallar',
    emptyListMsg: '(Ingen mall är vald)',
    insertOption: 'Ersätt aktuellt innehåll',
    options: 'Inställningar för mall',
Severity: Major
Found in ckeditor/plugins/templates/lang/sv.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/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', 'en', {
    button: 'Templates',
    emptyListMsg: '(No templates defined)',
    insertOption: 'Replace actual contents',
    options: 'Template Options',
Severity: Major
Found in ckeditor/plugins/templates/lang/en.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/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

Avoid deeply nested control flow statements.
Open

                        if (idx + 1 == opcodes.length) {
                            break;
                        } else {
                            continue;
                        }
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', 'nb', {
        button: 'Maler',
        emptyListMsg: '(Ingen maler definert)',
        insertOption: 'Erstatt gjeldende innhold',
        options: 'Alternativer for mal',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/nb.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/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', 'eu', {
        button: 'Txantiloiak',
        emptyListMsg: '(Ez dago definitutako txantiloirik)',
        insertOption: 'Ordeztu oraingo edukiak',
        options: 'Txantiloi Aukerak',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/eu.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/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', 'lt', {
        button: 'Šablonai',
        emptyListMsg: '(Šablonų sąrašas tuščias)',
        insertOption: 'Pakeisti dabartinį turinį pasirinktu šablonu',
        options: 'Template Options',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/lt.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/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', 'cs', {
        button: 'Šablony',
        emptyListMsg: '(Není definována žádná šablona)',
        insertOption: 'Nahradit aktuální obsah',
        options: 'Nastavení šablon',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/cs.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/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', 'th', {
        button: 'เทมเพลต',
        emptyListMsg: '(ยังไม่มีการกำหนดเทมเพลต)',
        insertOption: 'แทนที่เนื้อหาเว็บไซต์ที่เลือก',
        options: 'ตัวเลือกเกี่ยวกับเทมเพลท',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/th.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/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', 'et', {
        button: 'Mall',
        emptyListMsg: '(Ühtegi malli ei ole defineeritud)',
        insertOption: 'Praegune sisu asendatakse',
        options: 'Malli valikud',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/et.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/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', 'pl', {
        button: 'Szablony',
        emptyListMsg: '(Brak zdefiniowanych szablonów)',
        insertOption: 'Zastąp obecną zawartość',
        options: 'Opcje szablonów',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/pl.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/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', 'af', {
        button: 'Sjablone',
        emptyListMsg: '(Geen sjablone gedefineer nie)',
        insertOption: 'Vervang huidige inhoud',
        options: 'Sjabloon opsies',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/af.js and 53 other locations - About 45 mins to fix
    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-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

    Avoid deeply nested control flow statements.
    Open

                            if (!inline) node.appendChild(ctelt("td", "skip", ""));
    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', 'gu', {
          button: 'ટેમ્પ્લેટ',
          emptyListMsg: '(કોઈ ટેમ્પ્લેટ ડિફાઇન નથી)',
          insertOption: 'મૂળ શબ્દને બદલો',
          options: 'ટેમ્પ્લેટના વિકલ્પો',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/gu.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/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', 'fr-ca', {
          button: 'Modèles',
          emptyListMsg: '(Aucun modèle disponible)',
          insertOption: 'Remplacer tout le contenu actuel',
          options: 'Options de modèles',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/fr-ca.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.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', 'he', {
          button: 'תבניות',
          emptyListMsg: '(לא הוגדרו תבניות)',
          insertOption: 'החלפת תוכן ממשי',
          options: 'אפשרויות התבניות',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/he.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/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', 'nl', {
          button: 'Sjablonen',
          emptyListMsg: '(Geen sjablonen gedefinieerd)',
          insertOption: 'Vervang de huidige inhoud',
          options: 'Template opties',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/nl.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/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', 'fi', {
          button: 'Pohjat',
          emptyListMsg: '(Ei määriteltyjä pohjia)',
          insertOption: 'Korvaa koko sisältö',
          options: 'Sisältöpohjan ominaisuudet',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/fi.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/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', 'hr', {
          button: 'Predlošci',
          emptyListMsg: '(Nema definiranih predložaka)',
          insertOption: 'Zamijeni trenutne sadržaje',
          options: 'Opcije predložaka',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/hr.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/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', 'vi', {
          button: 'Mẫu dựng sẵn',
          emptyListMsg: '(Không có mẫu dựng sẵn nào được định nghĩa)',
          insertOption: 'Thay thế nội dung hiện tại',
          options: 'Tùy chọn mẫu dựng sẵn',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/vi.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/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', 'ug', {
          button: 'قېلىپ',
          emptyListMsg: '(قېلىپ يوق)',
          insertOption: 'نۆۋەتتىكى مەزمۇننى ئالماشتۇر',
          options: 'قېلىپ تاللانمىسى',
      Severity: Major
      Found in ckeditor/plugins/templates/lang/ug.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/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