phodal/congee

View on GitHub

Showing 221 of 421 total issues

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

CKEDITOR.plugins.setLang('autosave', 'zh-cn', {
    dateFormat: 'LLL',
    autoSaveMessage: '自动保存',
    loadSavedContent: '已经存在这个内容之前保存的版本 "{0}". 你希望比较两个不同的版本并从中选择你想要加载的那个么?',
    title: '比较自动保存的版本',
Severity: Major
Found in ckeditor/plugins/autosave/lang/zh-cn.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'zh', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto Saved',
    loadSavedContent: 'An auto-saved version of this content from "{0}" has been found. Would you like to compare content versions and choose which one to load?',
    title: 'Compare auto-saved content with that loaded from the website',
Severity: Major
Found in ckeditor/plugins/autosave/lang/zh.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'es', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto guardado',
    loadSavedContent: 'Se ha encontrado una versión auto-guardada de este contenido de "{0}". Queréis comparar el contenido de las versiones y elegir cual cargar?',
    title: 'Compara el contenido auto-guardado con el cargado del sitio web',
Severity: Major
Found in ckeditor/plugins/autosave/lang/es.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["ja"] = {
        cancelText: "中止",
        chooseText: "選択"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-ja.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

CKEDITOR.plugins.setLang('autosave', 'cs', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Automaticky uloženo',
    loadSavedContent: 'byla nalezena automaticky uložená verze obsahu ze dne "{0}". Chcete porovnat obsah a zvolit si s kterým obsahem chete pracovat?',
    title: 'Porovnejre automaticky uložený obsah s obsahem nahraným z webové stránky',
Severity: Major
Found in ckeditor/plugins/autosave/lang/cs.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'pt-br', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto Saved',
    loadSavedContent: 'An auto-saved version of this content from "{0}" has been found. Would you like to compare content versions and choose which one to load?',
    title: 'Compare auto-saved content with that loaded from the website',
Severity: Major
Found in ckeditor/plugins/autosave/lang/pt-br.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/ca.js on lines 5..17
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

CKEDITOR.plugins.setLang('autosave', 'ca', {
    dateFormat: 'LLL',
    autoSaveMessage: 'Auto desat',
    loadSavedContent: 'S\'ha trobat una versió auto-desada d\'aquest contingut de "{0}". Voleu comparar les versions del contingut i escollir quina carregar?',
    title: 'Compareu el contingut auto-desat amb el contingut carregat del lloc web',
Severity: Major
Found in ckeditor/plugins/autosave/lang/ca.js and 10 other locations - About 2 hrs to fix
ckeditor/plugins/autosave/lang/cs.js on lines 5..17
ckeditor/plugins/autosave/lang/de.js on lines 5..17
ckeditor/plugins/autosave/lang/en.js on lines 5..17
ckeditor/plugins/autosave/lang/es.js on lines 5..17
ckeditor/plugins/autosave/lang/fr.js on lines 5..17
ckeditor/plugins/autosave/lang/ja.js on lines 5..17
ckeditor/plugins/autosave/lang/pl.js on lines 5..17
ckeditor/plugins/autosave/lang/pt-br.js on lines 5..17
ckeditor/plugins/autosave/lang/zh-cn.js on lines 5..17
ckeditor/plugins/autosave/lang/zh.js on lines 5..17

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["fa"] = {
        cancelText: "لغو",
        chooseText: "انتخاب"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-fa.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["ru"] = {
        cancelText: "отмена",
        chooseText: "выбрать"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-ru.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["sv"] = {
        cancelText: "Avbryt",
        chooseText: "Välj"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-sv.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fi.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

(function ( $ ) {

    var localization = $.spectrum.localization["fi"] = {
        cancelText: "Kumoa",
        chooseText: "Valitse"
Severity: Major
Found in scripts/spectrum/i18n/jquery.spectrum-fi.js and 6 other locations - About 2 hrs to fix
scripts/spectrum/i18n/jquery.spectrum-dk.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-fa.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ja.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-ru.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-sv.js on lines 5..14
scripts/spectrum/i18n/jquery.spectrum-tr.js on lines 5..14

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

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

            if (config.wordCountGreaterThanMaxLengthEvent && config.wordCountLessThanMaxLengthEvent) {
                if (wordCount > config.maxWordCount && config.maxWordCount > -1) {
                    config.wordCountGreaterThanMaxLengthEvent(wordCount, config.maxWordCount);

                } else {
Severity: Major
Found in ckeditor/plugins/wordcount/plugin.js and 1 other location - About 1 hr to fix
ckeditor/plugins/wordcount/plugin.js on lines 284..290

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

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

            if (config.charCountGreaterThanMaxLengthEvent && config.charCountLessThanMaxLengthEvent) {
                if (charCount > config.maxCharCount && config.maxCharCount > -1) {
                    config.charCountGreaterThanMaxLengthEvent(charCount, config.maxCharCount);
                } else {
                    config.charCountLessThanMaxLengthEvent(charCount, config.maxCharCount);
Severity: Major
Found in ckeditor/plugins/wordcount/plugin.js and 1 other location - About 1 hr to fix
ckeditor/plugins/wordcount/plugin.js on lines 292..299

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

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

    case 'loose_item_start': {
      var body = '';

      while (this.next().type !== 'list_item_end') {
        body += this.tok();
Severity: Major
Found in ckeditor/plugins/markdown/js/marked.js and 1 other location - About 1 hr to fix
ckeditor/plugins/markdown/js/marked.js on lines 1018..1026

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

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

    case 'blockquote_start': {
      var body = '';

      while (this.next().type !== 'blockquote_end') {
        body += this.tok();
Severity: Major
Found in ckeditor/plugins/markdown/js/marked.js and 1 other location - About 1 hr to fix
ckeditor/plugins/markdown/js/marked.js on lines 1048..1056

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

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

        hideLine: function( line ) {
            var uid = line.getUniqueId();

            line.hide();

Severity: Major
Found in ckeditor/plugins/lineutils/plugin.js and 1 other location - About 1 hr to fix
ckeditor/plugins/lineutils/plugin.js on lines 750..757

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

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

        showLine: function( line ) {
            var uid = line.getUniqueId();

            line.show();

Severity: Major
Found in ckeditor/plugins/lineutils/plugin.js and 1 other location - About 1 hr to fix
ckeditor/plugins/lineutils/plugin.js on lines 736..743

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

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

        if ((match = matchers.rgba.exec(color))) {
            return { r: match[1], g: match[2], b: match[3], a: match[4] };
        }
Severity: Major
Found in scripts/spectrum/spectrum.js and 2 other locations - About 1 hr to fix
scripts/spectrum/spectrum.js on lines 2270..2272
scripts/spectrum/spectrum.js on lines 2276..2278

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

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

        if ((match = matchers.hsla.exec(color))) {
            return { h: match[1], s: match[2], l: match[3], a: match[4] };
        }
Severity: Major
Found in scripts/spectrum/spectrum.js and 2 other locations - About 1 hr to fix
scripts/spectrum/spectrum.js on lines 2264..2266
scripts/spectrum/spectrum.js on lines 2276..2278

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

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

        if ((match = matchers.hsva.exec(color))) {
            return { h: match[1], s: match[2], v: match[3], a: match[4] };
        }
Severity: Major
Found in scripts/spectrum/spectrum.js and 2 other locations - About 1 hr to fix
scripts/spectrum/spectrum.js on lines 2264..2266
scripts/spectrum/spectrum.js on lines 2270..2272

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

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