laboiteproject/lenuage

View on GitHub

Showing 384 of 384 total issues

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

    assert result['data'] == [{'type': 'text',
                               'width': 25,
                               'height': 8,
                               'x': 4,
                               'y': 1,
Severity: Major
Found in laboite/apps/time/tests.py and 2 other locations - About 45 mins to fix
laboite/apps/time/tests.py on lines 20..27
laboite/apps/time/tests.py on lines 49..56

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

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

        migrations.AddField(
            model_name='boite',
            name='sleep_time',
            field=models.TimeField(blank=True, default=None, help_text='Spécifiez une heure pour le début du mode veille (laissez vide si toujours allumée)', null=True, verbose_name='Début du mode veille'),
Severity: Minor
Found in boites/migrations/0016_auto_20180708_2327.py and 1 other location - About 45 mins to fix
boites/migrations/0016_auto_20180708_2327.py on lines 19..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 35.

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

                departure = dateparse.parse_datetime(records[1]['fields']['depart']) - now
Severity: Minor
Found in laboite/apps/bus/models.py and 1 other location - About 45 mins to fix
laboite/apps/bus/models.py on lines 49..49

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

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

        migrations.AddField(
            model_name='boite',
            name='wake_time',
            field=models.TimeField(blank=True, default=None, help_text='Spécifiez une heure pour le fin du mode veille (laissez vide si toujours allumée)', null=True, verbose_name='Fin du mode veille'),
Severity: Minor
Found in boites/migrations/0016_auto_20180708_2327.py and 1 other location - About 45 mins to fix
boites/migrations/0016_auto_20180708_2327.py on lines 14..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 35.

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

    assert result['data'] == [{'type': 'text',
                               'width': 25,
                               'height': 8,
                               'x': 4,
                               'y': 1,
Severity: Major
Found in laboite/apps/time/tests.py and 2 other locations - About 45 mins to fix
laboite/apps/time/tests.py on lines 35..42
laboite/apps/time/tests.py on lines 49..56

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

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

    return $e.attr('data-content')
      || (typeof o.content == 'function' ?
            o.content.call($e[0]) :
            o.content)
Severity: Minor
Found in static/dist/js/site-70bd78197e.js and 1 other location - About 40 mins to fix
static/dist/js/site-70bd78197e.js on lines 3008..3009

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

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

    title = $e.attr('data-original-title')
      || (typeof o.title == 'function' ? o.title.call($e[0]) :  o.title)
Severity: Minor
Found in static/dist/js/site-70bd78197e.js and 1 other location - About 40 mins to fix
static/dist/js/site-70bd78197e.js on lines 2217..2220

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

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

Consider simplifying this complex logical expression.
Open

            if ( matcher[ expando ] ) {
                // Find the next relative operator (if any) for proper handling
                j = ++i;
                for ( ; j < len; j++ ) {
                    if ( Expr.relative[ tokens[j].type ] ) {
Severity: Major
Found in static/dist/js/site-70bd78197e.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( delegateCount && cur.nodeType &&
                ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
    
                for ( ; cur !== this; cur = cur.parentNode || this ) {
    
    
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js - About 40 mins to fix

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

        $.fn.button.noConflict = function () {
          $.fn.button = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.collapse.noConflict = function () {
          $.fn.collapse = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.modal.noConflict = function () {
          $.fn.modal = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

      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

                  for ( i = 0, l = srcElements.length; i < l; i++ ) {
                      fixInput( srcElements[ i ], destElements[ i ] );
                  }
      Severity: Minor
      Found in static/dist/js/site-70bd78197e.js and 1 other location - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 8525..8527

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

      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

                      for ( i = 0, l = srcElements.length; i < l; i++ ) {
                          cloneCopyEvent( srcElements[ i ], destElements[ i ] );
                      }
      Severity: Minor
      Found in static/dist/js/site-70bd78197e.js and 1 other location - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 8514..8516

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

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

        $.fn.scrollspy.noConflict = function () {
          $.fn.scrollspy = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.alert.noConflict = function () {
          $.fn.alert = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.dropdown.noConflict = function () {
          $.fn.dropdown = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.carousel.noConflict = function () {
          $.fn.carousel = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.affix.noConflict = function () {
          $.fn.affix = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418
      static/dist/js/site-70bd78197e.js on lines 2570..2573

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

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

        $.fn.tab.noConflict = function () {
          $.fn.tab = old
          return this
        }
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js and 8 other locations - About 40 mins to fix
      static/dist/js/site-70bd78197e.js on lines 940..943
      static/dist/js/site-70bd78197e.js on lines 1048..1051
      static/dist/js/site-70bd78197e.js on lines 1161..1164
      static/dist/js/site-70bd78197e.js on lines 1387..1390
      static/dist/js/site-70bd78197e.js on lines 1618..1621
      static/dist/js/site-70bd78197e.js on lines 1790..1793
      static/dist/js/site-70bd78197e.js on lines 2121..2124
      static/dist/js/site-70bd78197e.js on lines 2415..2418

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

      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