bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

function translateFuture(output) {
    var time = output;
    time = (output.indexOf('jaj') !== -1) ?
    time.slice(0, -3) + 'leS' :
    (output.indexOf('jar') !== -1) ?
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 7 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/tlh.js on lines 15..25
core/static/vendor/moment/locale/tlh.js on lines 27..37
core/static/vendor/moment/min/locales.js on lines 7605..7615
core/static/vendor/moment/min/locales.js on lines 7617..7627
core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
core/static/vendor/moment/src/locale/tlh.js on lines 9..19
core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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 translateFuture(output) {
    var time = output;
    time = (output.indexOf('jaj') !== -1) ?
    time.slice(0, -3) + 'leS' :
    (output.indexOf('jar') !== -1) ?
Severity: Major
Found in core/static/vendor/moment/locale/tlh.js and 7 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/tlh.js on lines 27..37
core/static/vendor/moment/min/locales.js on lines 7605..7615
core/static/vendor/moment/min/locales.js on lines 7617..7627
core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
core/static/vendor/moment/src/locale/tlh.js on lines 9..19
core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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 translatePast(output) {
    var time = output;
    time = (output.indexOf('jaj') !== -1) ?
    time.slice(0, -3) + 'Hu’' :
    (output.indexOf('jar') !== -1) ?
Severity: Major
Found in core/static/vendor/moment/locale/tlh.js and 7 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/tlh.js on lines 15..25
core/static/vendor/moment/min/locales.js on lines 7605..7615
core/static/vendor/moment/min/locales.js on lines 7617..7627
core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
core/static/vendor/moment/src/locale/tlh.js on lines 9..19
core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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 translateFuture(output) {
    var time = output;
    time = (output.indexOf('jaj') !== -1) ?
    time.slice(0, -3) + 'leS' :
    (output.indexOf('jar') !== -1) ?
Severity: Major
Found in core/static/vendor/moment/min/locales.js and 7 other locations - About 5 hrs to fix
core/static/vendor/moment/locale/tlh.js on lines 15..25
core/static/vendor/moment/locale/tlh.js on lines 27..37
core/static/vendor/moment/min/locales.js on lines 7617..7627
core/static/vendor/moment/min/moment-with-locales.js on lines 11891..11901
core/static/vendor/moment/min/moment-with-locales.js on lines 11903..11913
core/static/vendor/moment/src/locale/tlh.js on lines 9..19
core/static/vendor/moment/src/locale/tlh.js on lines 21..31

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

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

module('Mouse Navigation 2011', {
    setup: function(){
        /*
            Tests start with picker on March 31, 2011.
        */
core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2011.js on lines 1..19
core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2012.js on lines 1..21
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2012.js on lines 1..21

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

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

module('Keyboard Navigation 2011', {
    setup: function(){
        /*
            Tests start with picker on March 31, 2011.  Fun facts:

core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2012.js on lines 1..21
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2011.js on lines 1..16
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2012.js on lines 1..21

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

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

module('Keyboard Navigation 2012', {
    setup: function(){
        /*
            Tests start with picker on March 31, 2012.  Fun facts:

core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2011.js on lines 1..19
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2011.js on lines 1..16
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2012.js on lines 1..21

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

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

module('Mouse Navigation 2012', {
    setup: function(){
        /*
            Tests start with picker on March 31, 2012.  Fun facts:

core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2011.js on lines 1..19
core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/2012.js on lines 1..21
core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/2011.js on lines 1..16

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

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

File tests.js has 372 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*global module:false, test:false, equal:false, ok:false, asyncTest:false,start:false, expect: false */

/* SINGLE BLOCK BASICS */
module('single block', {
  setup: function() {
Severity: Minor
Found in core/static/vendor/jquery-expander/test/tests.js - About 4 hrs to fix

    Function configFromISO has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
    Open

    export function configFromISO(config) {
        var i, l,
            string = config._i,
            match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
            allowTime, dateFormat, timeFormat, tzFormat;
    Severity: Minor
    Found in core/static/vendor/moment/src/lib/create/from-string.js - About 4 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

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

    module('Events', {
        setup: function(){
            this.input = $('<input type="text" value="31-03-2011">')
                            .appendTo('#qunit-fixture')
                            .datepicker({format: "dd-mm-yyyy"})
    core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/all.js on lines 1..13
    core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/all.js on lines 1..13

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

    module('Keyboard Navigation (All)', {
        setup: function(){
            this.input = $('<input type="text">')
                            .appendTo('#qunit-fixture')
                            .datepicker({format: "dd-mm-yyyy"})
    core/static/vendor/bootstrap-datepicker/tests/suites/events.js on lines 1..13
    core/static/vendor/bootstrap-datepicker/tests/suites/mouse_navigation/all.js on lines 1..13

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

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

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

    module('Mouse Navigation (All)', {
        setup: function(){
            this.input = $('<input type="text">')
                            .appendTo('#qunit-fixture')
                            .datepicker({format: "dd-mm-yyyy"})
    core/static/vendor/bootstrap-datepicker/tests/suites/events.js on lines 1..13
    core/static/vendor/bootstrap-datepicker/tests/suites/keyboard_navigation/all.js on lines 1..13

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

    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 122 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function defaultPrefilter( elem, props, opts ) {
        var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
            isBox = "width" in props || "height" in props,
            anim = this,
            orig = {},
    Severity: Major
    Found in core/static/vendor/jquery/dist/jquery.js - About 4 hrs to fix

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

      function defaultPrefilter( elem, props, opts ) {
          var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
              isBox = "width" in props || "height" in props,
              anim = this,
              orig = {},
      Severity: Major
      Found in core/static/vendor/jquery/src/effects.js - About 4 hrs to fix

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

        ;(function($){
            $.fn.datepicker.dates['et'] = {
                days: ["Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev"],
                daysShort: ["Pühap", "Esmasp", "Teisip", "Kolmap", "Neljap", "Reede", "Laup"],
                daysMin: ["P", "E", "T", "K", "N", "R", "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.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["sk"] = {
                days: ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"],
                daysShort: ["Ned", "Pon", "Uto", "Str", "Štv", "Pia", "Sob"],
                daysMin: ["Ne", "Po", "Ut", "St", "Št", "Pia", "So"],
        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.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['zh-TW'] = {
                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.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

        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['no'] = {
            days: ['Søndag', 'Mandag', 'Tirsdag', 'Onsdag', 'Torsdag', 'Fredag', 'Lørdag'],
            daysShort: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
            daysMin: ['Sø', 'Ma', '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.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['gl'] = {
                days: ["Domingo", "Luns", "Martes", "Mércores", "Xoves", "Venres", "Sábado"],
                daysShort: ["Dom", "Lun", "Mar", "Mér", "Xov", "Ven", "Sáb"],
                daysMin: ["Do", "Lu", "Ma", "Me", "Xo", "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.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

        Severity
        Category
        Status
        Source
        Language