bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

    DateFormatter = function (options) {
        var self = this, config = _extend(defaultSettings, options);
        self.dateSettings = config.dateSettings;
        self.separators = config.separators;
        self.validParts = config.validParts;
core/static/vendor/datetimepicker/build/jquery.datetimepicker.full.js on lines 68..76

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

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 diff( a, b ) {
    var result = a.slice();
    for ( var i = 0; i < result.length; i++ ) {
        for ( var j = 0; j < b.length; j++ ) {
            if ( result[i] === b[j] ) {
core/static/vendor/jquery-expander/test/qunit/qunit.js on lines 719..731

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

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

    DateFormatter = function (options) {
        var self = this, config = _extend(defaultSettings, options);
        self.dateSettings = config.dateSettings;
        self.separators = config.separators;
        self.validParts = config.validParts;
core/static/vendor/php-date-formatter/js/php-date-formatter.js on lines 79..87

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

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

Function defaultPrefilter has 105 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function defaultPrefilter( elem, props, opts ) {
  /* jshint validthis: true */
  var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
    anim = this,
    orig = {},
Severity: Major
Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 4 hrs to fix

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

    jQuery.each({
      slideDown: genFx("show"),
      slideUp: genFx("hide"),
      slideToggle: genFx("toggle"),
      fadeIn: { opacity: "show" },
    Severity: Major
    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js and 2 other locations - About 4 hrs to fix
    core/static/vendor/jquery/dist/jquery.js on lines 7341..7352
    core/static/vendor/jquery/src/effects.js on lines 620..631

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

    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/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 1708..1714
    core/static/vendor/moment/moment.js on lines 1714..1720

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

    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

    jQuery.each( {
        slideDown: genFx( "show" ),
        slideUp: genFx( "hide" ),
        slideToggle: genFx( "toggle" ),
        fadeIn: { opacity: "show" },
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.js and 2 other locations - About 4 hrs to fix
    core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7615..7626
    core/static/vendor/jquery/src/effects.js on lines 620..631

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

    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

    jQuery.each( {
        slideDown: genFx( "show" ),
        slideUp: genFx( "hide" ),
        slideToggle: genFx( "toggle" ),
        fadeIn: { opacity: "show" },
    Severity: Major
    Found in core/static/vendor/jquery/src/effects.js and 2 other locations - About 4 hrs to fix
    core/static/vendor/jquery-expander/test/jquery.1.11.3.js on lines 7615..7626
    core/static/vendor/jquery/dist/jquery.js on lines 7341..7352

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

    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 1708..1714
    core/static/vendor/moment/src/lib/units/hour.js on lines 106..112

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

    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 1714..1720
    core/static/vendor/moment/src/lib/units/hour.js on lines 106..112

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

    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

                    W: function () {
                        var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j() - fmt.N() + 3), b = new Date(a.getFullYear(), 0, 4);
                        return _lpad(1 + Math.round((a - b) / DAY / 7), 2);
                    },
    core/static/vendor/datetimepicker/build/jquery.datetimepicker.full.js on lines 317..320

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

    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

                    W: function () {
                        var a = new Date(fmt.Y(), fmt.n() - 1, fmt.j() - fmt.N() + 3), b = new Date(a.getFullYear(), 0, 4);
                        return _lpad(1 + Math.round((a - b) / DAY / 7), 2);
                    },
    core/static/vendor/php-date-formatter/js/php-date-formatter.js on lines 356..359

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

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

    ;(function($){
        $.fn.datepicker.dates['hr'] = {
            days: ["Nedjelja", "Ponedjeljak", "Utorak", "Srijeda", "Četvrtak", "Petak", "Subota"],
            daysShort: ["Ned", "Pon", "Uto", "Sri", "Čet", "Pet", "Sub"],
            daysMin: ["Ne", "Po", "Ut", "Sr", "Če", "Pe", "Su"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['cy'] = {
            days: ["Sul", "Llun", "Mawrth", "Mercher", "Iau", "Gwener", "Sadwrn"],
            daysShort: ["Sul", "Llu", "Maw", "Mer", "Iau", "Gwe", "Sad"],
            daysMin: ["Su", "Ll", "Ma", "Me", "Ia", "Gwe", "Sa"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['bg'] = {
            days: ["Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"],
            daysShort: ["Нед", "Пон", "Вто", "Сря", "Чет", "Пет", "Съб"],
            daysMin: ["Н", "П", "В", "С", "Ч", "П", "С"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['sq'] = {
            days: ["E Diel", "E Hënë", "E Martē", "E Mërkurë", "E Enjte", "E Premte", "E Shtunë"],
            daysShort: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Shtu"],
            daysMin: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sht"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['eu'] = {
            days: ['Igandea', 'Astelehena', 'Asteartea', 'Asteazkena', 'Osteguna', 'Ostirala', 'Larunbata'],
            daysShort: ['Ig', 'Al', 'Ar', 'Az', 'Og', 'Ol', 'Lr'],
            daysMin: ['Ig', 'Al', 'Ar', 'Az', 'Og', 'Ol', 'Lr'],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['is'] = {
            days: ["Sunnudagur", "Mánudagur", "Þriðjudagur", "Miðvikudagur", "Fimmtudagur", "Föstudagur", "Laugardagur"],
            daysShort: ["Sun", "Mán", "Þri", "Mið", "Fim", "Fös", "Lau"],
            daysMin: ["Su", "Má", "Þr", "Mi", "Fi", "Fö", "La"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['sl'] = {
            days: ["Nedelja", "Ponedeljek", "Torek", "Sreda", "Četrtek", "Petek", "Sobota"],
            daysShort: ["Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"],
            daysMin: ["Ne", "Po", "To", "Sr", "Če", "Pe", "So"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sw.js on lines 6..15

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

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

    ;(function($){
        $.fn.datepicker.dates['sw'] = {
            days: ["Jumapili", "Jumatatu", "Jumanne", "Jumatano", "Alhamisi", "Ijumaa", "Jumamosi"],
            daysShort: ["J2", "J3", "J4", "J5", "Alh", "Ij", "J1"],
            daysMin: ["2", "3", "4", "5", "A", "I", "1"],
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.bg.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.cy.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.eu.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.hr.js on lines 4..13
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.is.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sl.js on lines 5..14
    core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.sq.js on lines 5..14

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 117.

    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