phodal/congee

View on GitHub

Showing 221 of 421 total issues

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

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

CKEDITOR.plugins.setLang( 'templates', 'pt', {
    button: 'Modelos',
    emptyListMsg: '(Sem modelos definidos)',
    insertOption: 'Substituir conteúdos atuais',
    options: 'Opções do modelo',
Severity: Major
Found in ckeditor/plugins/templates/lang/pt.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/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

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

  var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
Severity: Minor
Found in ckeditor/plugins/autosave/js/jsdiff.js and 1 other location - About 45 mins to fix
ckeditor/plugins/autosave/js/jsdiff.js on lines 28..28

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', 'sl', {
    button: 'Predloge',
    emptyListMsg: '(Ni pripravljenih predlog)',
    insertOption: 'Zamenjaj trenutno vsebino',
    options: 'Možnosti Predloge',
Severity: Major
Found in ckeditor/plugins/templates/lang/sl.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/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', 'zh', {
    button: '範本',
    emptyListMsg: '(尚未定義任何範本)',
    insertOption: '替代實際內容',
    options: '範本選項',
Severity: Major
Found in ckeditor/plugins/templates/lang/zh.js and 53 other locations - About 45 mins to fix
ckeditor/plugins/templates/lang/af.js on lines 5..12
ckeditor/plugins/templates/lang/ar.js on lines 5..12
ckeditor/plugins/templates/lang/bg.js on lines 5..12
ckeditor/plugins/templates/lang/ca.js on lines 5..12
ckeditor/plugins/templates/lang/cs.js on lines 5..12
ckeditor/plugins/templates/lang/cy.js on lines 5..12
ckeditor/plugins/templates/lang/da.js on lines 5..12
ckeditor/plugins/templates/lang/de.js on lines 5..12
ckeditor/plugins/templates/lang/el.js on lines 5..12
ckeditor/plugins/templates/lang/en-gb.js on lines 5..12
ckeditor/plugins/templates/lang/en.js on lines 5..12
ckeditor/plugins/templates/lang/eo.js on lines 5..12
ckeditor/plugins/templates/lang/es.js on lines 5..12
ckeditor/plugins/templates/lang/et.js on lines 5..12
ckeditor/plugins/templates/lang/eu.js on lines 5..12
ckeditor/plugins/templates/lang/fa.js on lines 5..12
ckeditor/plugins/templates/lang/fi.js on lines 5..12
ckeditor/plugins/templates/lang/fo.js on lines 5..12
ckeditor/plugins/templates/lang/fr-ca.js on lines 5..12
ckeditor/plugins/templates/lang/fr.js on lines 5..12
ckeditor/plugins/templates/lang/gl.js on lines 5..12
ckeditor/plugins/templates/lang/gu.js on lines 5..12
ckeditor/plugins/templates/lang/he.js on lines 5..12
ckeditor/plugins/templates/lang/hr.js on lines 5..12
ckeditor/plugins/templates/lang/hu.js on lines 5..12
ckeditor/plugins/templates/lang/id.js on lines 5..12
ckeditor/plugins/templates/lang/it.js on lines 5..12
ckeditor/plugins/templates/lang/ja.js on lines 5..12
ckeditor/plugins/templates/lang/ka.js on lines 5..12
ckeditor/plugins/templates/lang/km.js on lines 5..12
ckeditor/plugins/templates/lang/ko.js on lines 5..12
ckeditor/plugins/templates/lang/ku.js on lines 5..12
ckeditor/plugins/templates/lang/lt.js on lines 5..12
ckeditor/plugins/templates/lang/lv.js on lines 5..12
ckeditor/plugins/templates/lang/nb.js on lines 5..12
ckeditor/plugins/templates/lang/nl.js on lines 5..12
ckeditor/plugins/templates/lang/no.js on lines 5..12
ckeditor/plugins/templates/lang/pl.js on lines 5..12
ckeditor/plugins/templates/lang/pt-br.js on lines 5..12
ckeditor/plugins/templates/lang/pt.js on lines 5..12
ckeditor/plugins/templates/lang/ro.js on lines 5..12
ckeditor/plugins/templates/lang/ru.js on lines 5..12
ckeditor/plugins/templates/lang/si.js on lines 5..12
ckeditor/plugins/templates/lang/sk.js on lines 5..12
ckeditor/plugins/templates/lang/sl.js on lines 5..12
ckeditor/plugins/templates/lang/sq.js on lines 5..12
ckeditor/plugins/templates/lang/sv.js on lines 5..12
ckeditor/plugins/templates/lang/th.js on lines 5..12
ckeditor/plugins/templates/lang/tr.js on lines 5..12
ckeditor/plugins/templates/lang/ug.js on lines 5..12
ckeditor/plugins/templates/lang/uk.js on lines 5..12
ckeditor/plugins/templates/lang/vi.js on lines 5..12
ckeditor/plugins/templates/lang/zh-cn.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', 'fo', {
    button: 'Skabelónir',
    emptyListMsg: '(Ongar skabelónir tøkar)',
    insertOption: 'Yvirskriva núverandi innihald',
    options: 'Møguleikar fyri Template',
Severity: Major
Found in ckeditor/plugins/templates/lang/fo.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/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', 'km', {
    button: 'ពុម្ព​គំរូ',
    emptyListMsg: '(មិន​មាន​ពុម្ព​គំរូ​ត្រូវ​បាន​កំណត់)',
    insertOption: 'ជំនួស​ក្នុង​មាតិកា​បច្ចុប្បន្ន',
    options: 'ជម្រើស​ពុម្ព​គំរូ',
Severity: Major
Found in ckeditor/plugins/templates/lang/km.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/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', 'uk', {
    button: 'Шаблони',
    emptyListMsg: '(Не знайдено жодного шаблону)',
    insertOption: 'Замінити поточний вміст',
    options: 'Опції шаблону',
Severity: Major
Found in ckeditor/plugins/templates/lang/uk.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/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', 'si', {
    button: 'අච්චුව',
    emptyListMsg: 'කිසිම අච්චුවක් කලින් තීරණය කර ',
    insertOption: 'සත්‍ය අන්තර්ගතයන් ප්‍රතිස්ථාපනය කරන්න',
    options: 'අච්චු ',
Severity: Major
Found in ckeditor/plugins/templates/lang/si.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/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', 'no', {
    button: 'Maler',
    emptyListMsg: '(Ingen maler definert)',
    insertOption: 'Erstatt gjeldende innhold',
    options: 'Alternativer for mal',
Severity: Major
Found in ckeditor/plugins/templates/lang/no.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/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', 'es', {
    button: 'Plantillas',
    emptyListMsg: '(No hay plantillas definidas)',
    insertOption: 'Reemplazar el contenido actual',
    options: 'Opciones de plantillas',
Severity: Major
Found in ckeditor/plugins/templates/lang/es.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/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', 'ka', {
    button: 'თარგები',
    emptyListMsg: '(თარგი არაა განსაზღვრული)',
    insertOption: 'მიმდინარე შეგთავსის შეცვლა',
    options: 'თარგების პარამეტრები',
Severity: Major
Found in ckeditor/plugins/templates/lang/ka.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/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

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

  var out = diff(o == "" ? [] : o.split(/\s+/), n == "" ? [] : n.split(/\s+/) );
Severity: Minor
Found in ckeditor/plugins/autosave/js/jsdiff.js and 1 other location - About 45 mins to fix
ckeditor/plugins/autosave/js/jsdiff.js on lines 81..81

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

              "rgb("  + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
Severity: Minor
Found in scripts/spectrum/spectrum.js and 1 other location - About 40 mins to fix
scripts/spectrum/spectrum.js on lines 1325..1325

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

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

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

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

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

Refactorings

Further Reading

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

              "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
Severity: Minor
Found in scripts/spectrum/spectrum.js and 1 other location - About 40 mins to fix
scripts/spectrum/spectrum.js on lines 1324..1324

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

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

    Widget.isDomDragHandler = function( node ) {
        return node.type == CKEDITOR.NODE_ELEMENT && node.hasAttribute( 'data-cke-widget-drag-handler' );
    };
Severity: Major
Found in ckeditor/plugins/widget/plugin.js and 4 other locations - About 40 mins to fix
ckeditor/plugins/widget/plugin.js on lines 1527..1529
ckeditor/plugins/widget/plugin.js on lines 1541..1543
ckeditor/plugins/widget/plugin.js on lines 1553..1555
ckeditor/plugins/widget/plugin.js on lines 1565..1567

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

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

    Widget.isDomDragHandlerContainer = function( node ) {
        return node.type == CKEDITOR.NODE_ELEMENT && node.hasClass( 'cke_widget_drag_handler_container' );
    };
Severity: Major
Found in ckeditor/plugins/widget/plugin.js and 4 other locations - About 40 mins to fix
ckeditor/plugins/widget/plugin.js on lines 1515..1517
ckeditor/plugins/widget/plugin.js on lines 1541..1543
ckeditor/plugins/widget/plugin.js on lines 1553..1555
ckeditor/plugins/widget/plugin.js on lines 1565..1567

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

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