bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

Severity: Major
Found in agenda/templatetags/comment_field.py and 1 other location - About 5 hrs to fix
agenda/templatetags/participation_field.py on lines 0..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 89.

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

Severity: Major
Found in agenda/templatetags/participation_field.py and 1 other location - About 5 hrs to fix
agenda/templatetags/comment_field.py on lines 0..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 89.

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 processRelativeTime$1(number, withoutSuffix, key, isFuture) {
    var format = {
        'm': ['eine Minute', 'einer Minute'],
        'h': ['eine Stunde', 'einer Stunde'],
        'd': ['ein Tag', 'einem Tag'],
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 5 hrs to fix
core/static/vendor/moment/min/locales.js on lines 1772..1784

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

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 processRelativeTime$1(number, withoutSuffix, key, isFuture) {
    var format = {
        'm': ['eine Minute', 'einer Minute'],
        'h': ['eine Stunde', 'einer Stunde'],
        'd': ['ein Tag', 'einem Tag'],
Severity: Major
Found in core/static/vendor/moment/min/locales.js and 1 other location - About 5 hrs to fix
core/static/vendor/moment/min/moment-with-locales.js on lines 6062..6074

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

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

jQuery.parseXML = function( data ) {
    var xml;
    if ( !data || typeof data !== "string" ) {
        return null;
    }
Severity: Major
Found in core/static/vendor/jquery/src/ajax/parseXML.js and 1 other location - About 5 hrs to fix
core/static/vendor/jquery/dist/jquery.js on lines 8326..8344

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

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

jQuery.parseXML = function( data ) {
    var xml;
    if ( !data || typeof data !== "string" ) {
        return null;
    }
Severity: Major
Found in core/static/vendor/jquery/dist/jquery.js and 1 other location - About 5 hrs to fix
core/static/vendor/jquery/src/ajax/parseXML.js on lines 8..26

Duplicated Code

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

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

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

Tuning

This issue has a mass of 139.

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

        parseDate: function (vDate, vFormat) {
            var self = this, vFormatParts, vDateParts, i, vDateFlag = false, vTimeFlag = false, vDatePart, iDatePart,
                vSettings = self.dateSettings, vMonth, vMeriIndex, vMeriOffset, len, mer,
                out = {date: null, year: null, month: null, day: null, hour: 0, min: 0, sec: 0};
            if (!vDate) {
Severity: Major
Found in core/static/vendor/php-date-formatter/js/php-date-formatter.js - About 5 hrs to fix

    Function parseDate has 129 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            parseDate: function(date, format, language, assumeNearby){
                if (!date)
                    return undefined;
                if (date instanceof Date)
                    return date;
    Severity: Major
    Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 5 hrs to fix

      Function parseDate has 129 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              parseDate: function(date, format, language, assumeNearby){
                  if (!date)
                      return undefined;
                  if (date instanceof Date)
                      return date;

        Function Callbacks has 128 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jQuery.Callbacks = function( options ) {
        
          // Convert options from String-formatted to Object-formatted if needed
          // (we check in cache first)
          options = typeof options === "string" ?
        Severity: Major
        Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 5 hrs to fix

          File tooltip.js has 380 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /* ========================================================================
           * Bootstrap: tooltip.js v3.3.7
           * http://getbootstrap.com/javascript/#tooltip
           * Inspired by the original jQuery.tipsy by Jason Frame
           * ========================================================================
          Severity: Minor
          Found in core/static/vendor/bootstrap/js/tooltip.js - About 5 hrs to fix

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

            ;(function($){
                $.fn.datepicker.dates['en-GB'] = {
                    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
                    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
                    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['fr'] = {
                    days: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],
                    daysShort: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
                    daysMin: ["d", "l", "ma", "me", "j", "v", "s"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['es'] = {
                    days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
                    daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
                    daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

            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 11 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.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['fr'] = {
                    days: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
                    daysShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"],
                    daysMin: ["D", "L", "Ma", "Me", "J", "V", "S"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['lt'] = {
                    days: ["Sekmadienis", "Pirmadienis", "Antradienis", "Trečiadienis", "Ketvirtadienis", "Penktadienis", "Šeštadienis"],
                    daysShort: ["S", "Pr", "A", "T", "K", "Pn", "Š"],
                    daysMin: ["Sk", "Pr", "An", "Tr", "Ke", "Pn", "Št"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['de'] = {
                    days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
                    daysShort: ["Son", "Mon", "Die", "Mit", "Don", "Fre", "Sam"],
                    daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['ca'] = {
                    days: ["Diumenge", "Dilluns", "Dimarts", "Dimecres", "Dijous", "Divendres", "Dissabte"],
                    daysShort: ["Diu",  "Dil", "Dmt", "Dmc", "Dij", "Div", "Dis"],
                    daysMin: ["dg", "dl", "dt", "dc", "dj", "dv", "ds"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-AU.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

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

            ;(function($){
                $.fn.datepicker.dates['en-AU'] = {
                    days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
                    daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
                    daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.ca.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.de.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.en-GB.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.es.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr-CH.js on lines 8..21
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.fr.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.it.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.lt.js on lines 6..19
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl-BE.js on lines 5..18
            core/static/vendor/bootstrap-datepicker/js/locales/bootstrap-datepicker.nl.js on lines 5..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 137.

            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