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', 'sk', {
    button: 'Šablóny',
    emptyListMsg: '(Žiadne šablóny nedefinované)',
    insertOption: 'Nahradiť aktuálny obsah',
    options: 'Možnosti šablóny',
Severity: Major
Found in ckeditor/plugins/templates/lang/sk.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/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', 'ar', {
    button: 'القوالب',
    emptyListMsg: '(لم يتم تعريف أي قالب)',
    insertOption: 'استبدال المحتوى',
    options: 'خصائص القوالب',
Severity: Major
Found in ckeditor/plugins/templates/lang/ar.js and 53 other locations - About 45 mins to fix
ckeditor/plugins/templates/lang/af.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 (n < ne) addCellsInline(node2, null, n++, newTextLines, "insert");
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', 'de', {
        button: 'Vorlagen',
        emptyListMsg: '(Keine Vorlagen definiert)',
        insertOption: 'Aktuelle Inhalte ersetzen',
        options: 'Vorlagenoptionen',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/de.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/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', 'eo', {
        button: 'Ŝablonoj',
        emptyListMsg: '(Neniu ŝablono difinita)',
        insertOption: 'Anstataŭigi la nunan enhavon',
        options: 'Opcioj pri ŝablonoj',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/eo.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/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', 'tr', {
        button: 'Şablonlar',
        emptyListMsg: '(Belirli bir şablon seçilmedi)',
        insertOption: 'Mevcut içerik ile değiştir',
        options: 'Şablon Seçenekleri',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/tr.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/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', 'el', {
        button: 'Πρότυπα',
        emptyListMsg: '(Δεν έχουν καθοριστεί πρότυπα)',
        insertOption: 'Αντικατάσταση υπάρχοντων περιεχομένων',
        options: 'Επιλογές Προτύπου',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/el.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/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', 'fr', {
        button: 'Modèles',
        emptyListMsg: '(Aucun modèle disponible)',
        insertOption: 'Remplacer le contenu actuel',
        options: 'Options des modèles',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/fr.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/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', 'en-gb', {
        button: 'Templates',
        emptyListMsg: '(No templates defined)',
        insertOption: 'Replace actual contents',
        options: 'Template Options',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/en-gb.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.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', 'ro', {
        button: 'Template-uri (şabloane)',
        emptyListMsg: '(Niciun template (şablon) definit)',
        insertOption: 'Înlocuieşte cuprinsul actual',
        options: 'Opțiuni șabloane',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/ro.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/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', 'ca', {
        button: 'Plantilles',
        emptyListMsg: '(No hi ha plantilles definides)',
        insertOption: 'Reemplaça el contingut actual',
        options: 'Opcions de plantilla',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/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/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', 'da', {
        button: 'Skabeloner',
        emptyListMsg: '(Der er ikke defineret nogen skabelon)',
        insertOption: 'Erstat det faktiske indhold',
        options: 'Skabelon muligheder',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/da.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/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', 'ru', {
        button: 'Шаблоны',
        emptyListMsg: '(не определено ни одного шаблона)',
        insertOption: 'Заменить текущее содержимое',
        options: 'Параметры шаблона',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/ru.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/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', 'it', {
        button: 'Modelli',
        emptyListMsg: '(Nessun modello definito)',
        insertOption: 'Cancella il contenuto corrente',
        options: 'Opzioni del Modello',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/it.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/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', 'pt-br', {
        button: 'Modelos de layout',
        emptyListMsg: '(Não foram definidos modelos de layout)',
        insertOption: 'Substituir o conteúdo atual',
        options: 'Opções de Template',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/pt-br.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.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', 'ku', {
        button: 'ڕووکار',
        emptyListMsg: '(هیچ ڕووکارێك دیارینەکراوە)',
        insertOption: 'لە شوێن دانانی ئەم پێکهاتانەی ئێستا',
        options: 'هەڵبژاردەکانی ڕووکار',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/ku.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/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', 'gl', {
        button: 'Modelos',
        emptyListMsg: '(Non hai modelos definidos)',
        insertOption: 'Substituír o contido actual',
        options: 'Opcións de modelos',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/gl.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/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', 'lv', {
        button: 'Sagataves',
        emptyListMsg: '(Nav norādītas sagataves)',
        insertOption: 'Aizvietot pašreizējo saturu',
        options: 'Sagataves uzstādījumi',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/lv.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/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', 'cy', {
        button: 'Templedi',
        emptyListMsg: '(Dim templedi wedi\'u diffinio)',
        insertOption: 'Amnewid y cynnwys go iawn',
        options: 'Opsiynau Templedi',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/cy.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/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', 'hu', {
        button: 'Sablonok',
        emptyListMsg: '(Nincs sablon megadva)',
        insertOption: 'Kicseréli a jelenlegi tartalmat',
        options: 'Sablon opciók',
    Severity: Major
    Found in ckeditor/plugins/templates/lang/hu.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/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

    Severity
    Category
    Status
    Source
    Language