Undev/redmine-stuff-to-do-plugin

View on GitHub

Showing 434 of 609 total issues

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

jQuery(function($){
    $.datepicker.regional['cs'] = {
        clearText: 'Vymazat', clearStatus: 'Vymaže zadané datum',
        closeText: 'Zavřít',  closeStatus: 'Zavře kalendář beze změny',
        prevText: '<Dříve', prevStatus: 'Přejít na předchozí měsí',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-cs.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

        if(this.options.custom && this.options.custom.refreshContainers) {
            this.options.custom.refreshContainers.call(this);
        } else {
            for (var i = this.containers.length - 1; i >= 0; i--){
                var p =this.containers[i].element.offset();
Severity: Major
Found in assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.sortable.js on lines 531..541

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

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

jQuery(function($){
    $.datepicker.regional['hu'] = {
        clearText: 'törlés', clearStatus: '',
        closeText: 'bezárás', closeStatus: '',
        prevText: '« vissza', prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-hu.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['uk'] = {
        clearText: 'Очистити', clearStatus: '',
        closeText: 'Закрити', closeStatus: '',
        prevText: '<',  prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-uk.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['sv'] = {
        clearText: 'Rensa', clearStatus: '',
        closeText: 'Stäng', closeStatus: '',
        prevText: '«Förra',  prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-sv.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['ru'] = {
        clearText: 'Очистить', clearStatus: '',
        closeText: 'Закрыть', closeStatus: '',
        prevText: '<Пред',  prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-ru.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['no'] = {
        clearText: 'Tøm', clearStatus: '',
        closeText: 'Lukk', closeStatus: '',
        prevText: '«Forrige',  prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-no.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['lt'] = {
        clearText: 'Išvalyti', clearStatus: '',
        closeText: 'Uždaryti', closeStatus: '',
        prevText: '<Atgal',  prevStatus: '',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-lt.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-fr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

jQuery(function($){
    $.datepicker.regional['fr'] = {
        clearText: 'Effacer', clearStatus: 'Effacer la date sélectionnée',
        closeText: 'Fermer', closeStatus: 'Fermer sans modifier',
        prevText: '<Préc', prevStatus: 'Voir le mois précédent',
Severity: Major
Found in assets/javascripts/ui/i18n/ui.datepicker-fr.js and 28 other locations - About 1 day to fix
assets/javascripts/ui/i18n/ui.datepicker-bg.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-cs.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-da.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-de.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-eo.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-he.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hu.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-hy.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-id.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-is.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-it.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ko.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lt.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-lv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-no.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pl.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-pt-BR.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ro.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-ru.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sq.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-sv.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-th.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-tr.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-uk.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-CN.js on lines 3..25
assets/javascripts/ui/i18n/ui.datepicker-zh-TW.js on lines 3..25

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

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

$.ui.plugin.add("draggable", "stack", {
    start: function(event, ui) {
        var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
            return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
        });
Severity: Major
Found in assets/javascripts/ui/ui.draggable.js and 1 other location - About 1 day to fix
assets/javascripts/jquery-ui.js on lines 1104..1116

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

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

$.ui.plugin.add("draggable", "stack", {
    start: function(e,ui) {
        var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
            return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
        });
Severity: Major
Found in assets/javascripts/jquery-ui.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.draggable.js on lines 671..683

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

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

        var position = {
            top: (
                event.pageY                                                                // The absolute mouse position
                - this.offset.click.top                                                    // Click offset (relative to the element)
                - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
Severity: Major
Found in assets/javascripts/ui/ui.draggable.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.sortable.js on lines 755..770

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

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

        var position = {
            top: (
                event.pageY                                                                // The absolute mouse position
                - this.offset.click.top                                                    // Click offset (relative to the element)
                - this.offset.relative.top                                                // Only for relative positioned nodes: Relative offset from element to offset parent
Severity: Major
Found in assets/javascripts/ui/ui.sortable.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.draggable.js on lines 289..304

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

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(o.axis != "vertical" && x !== undefined) {
            if(o.stepping.x) x = this._round(x / o.stepping.x) * o.stepping.x;
            x = this._translateValue(x, "x");
            x = this._translateLimits(x, "x");
            x = this._translateRange(x, "x");
Severity: Major
Found in assets/javascripts/ui/ui.slider.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.slider.js on lines 490..496

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

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(o.axis != "horizontal" && y !== undefined) {
            if(o.stepping.y) y = this._round(y / o.stepping.y) * o.stepping.y;
            y = this._translateValue(y, "y");
            y = this._translateLimits(y, "y");
            y = this._translateRange(y, "y");
Severity: Major
Found in assets/javascripts/ui/ui.slider.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.slider.js on lines 481..488

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

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

    adjustOffsetFromHelper: function(obj) {
        if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left;
        if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
        if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top;
        if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
Severity: Major
Found in assets/javascripts/jquery-ui.js and 2 other locations - About 1 day to fix
assets/javascripts/ui/ui.draggable.js on lines 185..190
assets/javascripts/ui/ui.sortable.js on lines 650..655

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

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

    _adjustOffsetFromHelper: function(obj) {
        if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left;
        if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
        if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top;
        if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
Severity: Major
Found in assets/javascripts/ui/ui.sortable.js and 2 other locations - About 1 day to fix
assets/javascripts/jquery-ui.js on lines 626..631
assets/javascripts/ui/ui.draggable.js on lines 185..190

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

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

    _adjustOffsetFromHelper: function(obj) {
        if(obj.left != undefined) this.offset.click.left = obj.left + this.margins.left;
        if(obj.right != undefined) this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;
        if(obj.top != undefined) this.offset.click.top = obj.top + this.margins.top;
        if(obj.bottom != undefined) this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;
Severity: Major
Found in assets/javascripts/ui/ui.draggable.js and 2 other locations - About 1 day to fix
assets/javascripts/jquery-ui.js on lines 626..631
assets/javascripts/ui/ui.sortable.js on lines 650..655

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

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

    width: function() {
        // handle IE 6
        if ($.browser.msie && $.browser.version < 7) {
            var scrollWidth = Math.max(
                document.documentElement.scrollWidth,
Severity: Major
Found in assets/javascripts/ui/ui.dialog.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.dialog.js on lines 542..569

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

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

    height: function() {
        // handle IE 6
        if ($.browser.msie && $.browser.version < 7) {
            var scrollHeight = Math.max(
                document.documentElement.scrollHeight,
Severity: Major
Found in assets/javascripts/ui/ui.dialog.js and 1 other location - About 1 day to fix
assets/javascripts/ui/ui.dialog.js on lines 571..598

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

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