wikimedia/mediawiki-core

View on GitHub

Showing 2,068 of 11,779 total issues

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

jQuery(function($){
    $.datepicker.regional['hu'] = {
        closeText: 'bezár',
        prevText: 'vissza',
        nextText: 'előre',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js and 59 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cy-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js on lines 5..25
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js on lines 3..23

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

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

jQuery(function($){
    $.datepicker.regional['nl-BE'] = {
        closeText: 'Sluiten',
        prevText: '←',
        nextText: '→',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js and 59 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cy-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js on lines 5..25
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js on lines 3..23

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

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

jQuery(function($){
    $.datepicker.regional['ko'] = {
        closeText: '닫기',
        prevText: '이전달',
        nextText: '다음달',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js and 59 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cy-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js on lines 5..25
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js on lines 3..23

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

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

jQuery(function($){
    $.datepicker.regional['he'] = {
        closeText: 'סגור',
        prevText: '<הקודם',
        nextText: 'הבא>',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-he.js and 59 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-af.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ar-DZ.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-az.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-bs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ca.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cs.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-cy-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-da.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-el.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-AU.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-GB.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-en-NZ.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-es.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-et.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-eu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fo.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr-CH.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-fr.js on lines 5..25
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-gl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hu.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-hy.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-id.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-is.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-it.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ja.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ka.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-kk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-km.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ko.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lb.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lt.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-lv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-mk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ml.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ms.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-nl-BE.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-no.js on lines 4..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pl.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt-BR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-rm.js on lines 3..21
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ru.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sk.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sq.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr-SR.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-sv.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ta.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-th.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tj.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-tr.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-vi.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-CN.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-HK.js on lines 3..23
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-zh-TW.js on lines 3..23

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

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

jQuery(function($){
    $.datepicker.regional['pt'] = {
        closeText: 'Fechar',
        prevText: '<Anterior',
        nextText: 'Seguinte',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js and 3 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js on lines 6..26

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

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

jQuery(function($){
    $.datepicker.regional['de-CH'] = {
        closeText: 'schliessen',
        prevText: '<zurück',
        nextText: 'Vor>',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js and 3 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js on lines 6..26

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

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

jQuery(function($){
    $.datepicker.regional['ro'] = {
        closeText: 'Închide',
        prevText: '« Luna precedentă',
        nextText: 'Luna următoare »',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js and 3 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js on lines 2..22

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

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

jQuery(function($){
    $.datepicker.regional['de-AT'] = {
        closeText: 'schließen',
        prevText: '<zurück',
        nextText: 'Vor>',
Severity: Major
Found in resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-AT.js and 3 other locations - About 7 hrs to fix
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-de-CH.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-pt.js on lines 2..22
resources/lib/jquery.ui/i18n/jquery.ui.datepicker-ro.js on lines 6..26

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

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

OO.ui.mixin.IconElement.prototype.setIconElement = function ( $icon ) {
    if ( this.$icon ) {
        this.$icon
            .removeClass( 'oo-ui-iconElement-icon oo-ui-icon-' + this.icon )
            .removeAttr( 'title' );
Severity: Major
Found in resources/lib/ooui/oojs-ui-core.js and 1 other location - About 7 hrs to fix
resources/lib/ooui/oojs-ui-core.js on lines 3253..3269

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

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 || o.axis != 'y') {
                if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
                    i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;
                else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity)
                    i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed;
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 701..706

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

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 || o.axis != 'x') {
                if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)
                    i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed;
                else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)
                    i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 708..713

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

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", "opacity", {
    start: function(event, ui) {
        var t = $(ui.helper), o = $(this).data('draggable').options;
        if(t.css("opacity")) o._opacity = t.css("opacity");
        t.css('opacity', o.opacity);
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 828..838

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

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", "zIndex", {
    start: function(event, ui) {
        var t = $(ui.helper), o = $(this).data("draggable").options;
        if(t.css("zIndex")) o._zIndex = t.css("zIndex");
        t.css('zIndex', o.zIndex);
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 678..688

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

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

OO.ui.mixin.IndicatorElement.prototype.setIndicatorElement = function ( $indicator ) {
    if ( this.$indicator ) {
        this.$indicator
            .removeClass( 'oo-ui-indicatorElement-indicator oo-ui-indicator-' + this.indicator )
            .removeAttr( 'title' );
Severity: Major
Found in resources/lib/ooui/oojs-ui-core.js and 1 other location - About 7 hrs to fix
resources/lib/ooui/oojs-ui-core.js on lines 3113..3129

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

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 ( !this.fullMonthNames ) {
            this.fullMonthNames = {
                1: mw.msg( 'january' ),
                2: mw.msg( 'february' ),
                3: mw.msg( 'march' ),
resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js on lines 218..233

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

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 ( !this.shortMonthNames ) {
            this.shortMonthNames = {
                1: mw.msg( 'jan' ),
                2: mw.msg( 'feb' ),
                3: mw.msg( 'mar' ),
resources/src/mediawiki.widgets.datetime/ProlepticGregorianDateTimeFormatter.js on lines 202..217

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

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

    public function incrementResolvedStats( User $user = null ) {
        $namespace = 'n/a';
        $userBucket = 'n/a';
        $statsdMetrics = [ 'edit.failures.conflict.resolved' ];

Severity: Major
Found in includes/editpage/TextConflictHelper.php and 1 other location - About 7 hrs to fix
includes/editpage/TextConflictHelper.php on lines 139..171

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

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

    public function incrementConflictStats( User $user = null ) {
        $namespace = 'n/a';
        $userBucket = 'n/a';
        $statsdMetrics = [ 'edit.failures.conflict' ];

Severity: Major
Found in includes/editpage/TextConflictHelper.php and 1 other location - About 7 hrs to fix
includes/editpage/TextConflictHelper.php on lines 177..211

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

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 || o.axis != 'y') {
                if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
                    scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
                else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
                    scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 717..722

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

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 || o.axis != 'x') {
                if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
                    scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
                else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
                    scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
Severity: Major
Found in resources/lib/jquery.ui/jquery.ui.draggable.js and 1 other location - About 7 hrs to fix
resources/lib/jquery.ui/jquery.ui.draggable.js on lines 724..729

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

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