bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

addParseToken('hmmss', function (input, array, config) {
    var pos1 = input.length - 4;
    var pos2 = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos1));
    array[MINUTE] = toInt(input.substr(pos1, 2));
Severity: Major
Found in core/static/vendor/moment/src/lib/units/hour.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 1695..1702
core/static/vendor/moment/moment.js on lines 1701..1708

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

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

;(function($){
    $.fn.datepicker.dates['ka'] = {
        days: ["კვირა", "ორშაბათი", "სამშაბათი", "ოთხშაბათი", "ხუთშაბათი", "პარასკევი", "შაბათი"],
        daysShort: ["კვი", "ორშ", "სამ", "ოთხ", "ხუთ", "პარ", "შაბ"],
        daysMin: ["კვ", "ორ", "სა", "ოთ", "ხუ", "პა", "შა"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

;(function($){
  $.fn.datepicker.dates['el'] = {
    days: ["Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"],
    daysShort: ["Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"],
    daysMin: ["Κυ", "Δε", "Τρ", "Τε", "Πε", "Πα", "Σα"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

;(function($){
    $.fn.datepicker.dates['fi'] = {
        days: ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"],
        daysShort: ["sun", "maa", "tii", "kes", "tor", "per", "lau"],
        daysMin: ["su", "ma", "ti", "ke", "to", "pe", "la"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

;(function($){
    $.fn.datepicker.dates['it'] = {
        days: ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
        daysShort: ["Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"],
        daysMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

addParseToken('hmmss', function (input, array, config) {
    var pos1 = input.length - 4;
    var pos2 = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos1));
    array[MINUTE] = toInt(input.substr(pos1, 2));
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/moment.js on lines 1701..1708
core/static/vendor/moment/src/lib/units/hour.js on lines 93..100

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

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

;(function($){
    $.fn.datepicker.dates['cs'] = {
        days: ["Neděle", "Pondělí", "Úterý", "Středa", "Čtvrtek", "Pátek", "Sobota"],
        daysShort: ["Ned", "Pon", "Úte", "Stř", "Čtv", "Pát", "Sob"],
        daysMin: ["Ne", "Po", "Út", "St", "Čt", "Pá", "So"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

if (Array.prototype.some) {
    some = Array.prototype.some;
} else {
    some = function (fun) {
        var t = Object(this);
Severity: Major
Found in core/static/vendor/moment/moment.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 106..121
core/static/vendor/moment/src/lib/utils/some.js on lines 2..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

if (Array.prototype.some) {
    some = Array.prototype.some;
} else {
    some = function (fun) {
        var t = Object(this);
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/moment.js on lines 112..127
core/static/vendor/moment/src/lib/utils/some.js on lines 2..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

;(function($){
    $.fn.datepicker.dates['sv'] = {
        days: ["Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"],
        daysShort: ["Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"],
        daysMin: ["Sö", "Må", "Ti", "On", "To", "Fr", "Lö"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

;(function($){
    $.fn.datepicker.dates['eo'] = {
        days: ["dimanĉo", "lundo", "mardo", "merkredo", "ĵaŭdo", "vendredo", "sabato"],
        daysShort: ["dim.", "lun.", "mar.", "mer.", "ĵaŭ.", "ven.", "sam."],
        daysMin: ["d", "l", "ma", "me", "ĵ", "v", "s"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.tr.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

;(function($){
    $.fn.datepicker.dates['tr'] = {
        days: ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"],
        daysShort: ["Pz", "Pzt", "Sal", "Çrş", "Prş", "Cu", "Cts"],
        daysMin: ["Pz", "Pzt", "Sa", "Çr", "Pr", "Cu", "Ct"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cs.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.el.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eo.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.et.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fi.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.gl.js on lines 1..13
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it-CH.js on lines 8..20
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ka.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.no.js on lines 4..16
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sk.js on lines 6..18
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sv.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-TW.js on lines 6..18

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

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

addParseToken('hmmss', function (input, array, config) {
    var pos1 = input.length - 4;
    var pos2 = input.length - 2;
    array[HOUR] = toInt(input.substr(0, pos1));
    array[MINUTE] = toInt(input.substr(pos1, 2));
Severity: Major
Found in core/static/vendor/moment/moment.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 1695..1702
core/static/vendor/moment/src/lib/units/hour.js on lines 93..100

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

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

if (Array.prototype.some) {
    some = Array.prototype.some;
} else {
    some = function (fun) {
        var t = Object(this);
Severity: Major
Found in core/static/vendor/moment/src/lib/utils/some.js and 2 other locations - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 106..121
core/static/vendor/moment/moment.js on lines 112..127

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

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

;(function($){
    $.fn.datepicker.dates['uk'] = {
        days: ["Неділя", "Понеділок", "Вівторок", "Середа", "Четвер", "П'ятниця", "Субота"],
        daysShort: ["Нед", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб"],
        daysMin: ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hy.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mn.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ru.js on lines 5..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

;(function($){
    $.fn.datepicker.dates['mn'] = {
        days: ["Ням", "Даваа", "Мягмар", "Лхагва", "Пүрэв", "Баасан", "Бямба"],
        daysShort: ["Ням", "Дав", "Мяг", "Лха", "Пүр", "Баа", "Бям"],
        daysMin: ["Ня", "Да", "Мя", "Лх", "Пү", "Ба", "Бя"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hy.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ru.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.uk.js on lines 5..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

;(function($){
    $.fn.datepicker.dates['hy'] = {
        days: ["Կիրակի", "Երկուշաբթի", "Երեքշաբթի", "Չորեքշաբթի", "Հինգշաբթի", "Ուրբաթ", "Շաբաթ"],
        daysShort: ["Կրկ", "Երկ", "Երք", "Չրք", "Հնգ", "Ուր", "Շբթ"],
        daysMin: ["Կրկ", "Երկ", "Երք", "Չրք", "Հնգ", "Ուր", "Շբթ"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mn.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ru.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.uk.js on lines 5..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

;(function($){
    $.fn.datepicker.dates['ru'] = {
        days: ["Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"],
        daysShort: ["Вск", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Суб"],
        daysMin: ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"],
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hy.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.mn.js on lines 5..17
core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.uk.js on lines 5..17

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 132.

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

function Moment(config) {
    copyConfig(this, config);
    this._d = new Date(config._d != null ? config._d.getTime() : NaN);
    if (!this.isValid()) {
        this._d = new Date(NaN);
Severity: Major
Found in core/static/vendor/moment/moment.js and 1 other location - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 228..241

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

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

function getSetDayOfWeek (input) {
    if (!this.isValid()) {
        return input != null ? this : NaN;
    }
    var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
Severity: Major
Found in core/static/vendor/moment/moment.js and 1 other location - About 4 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 1474..1485

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

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