laboiteproject/lenuage

View on GitHub

Showing 384 of 384 total issues

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

Severity: Major
Found in laboite/apps/airquality/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/messages/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/parking/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/calendar/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/cryptocurrency/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/metro/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/data/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/likes/urls.py on lines 0..10
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

Severity: Major
Found in laboite/apps/likes/urls.py and 16 other locations - About 3 hrs to fix
laboite/apps/airquality/urls.py on lines 0..10
laboite/apps/bitmap/urls.py on lines 0..10
laboite/apps/calendar/urls.py on lines 0..9
laboite/apps/coffees/urls.py on lines 0..10
laboite/apps/cryptocurrency/urls.py on lines 0..10
laboite/apps/data/urls.py on lines 0..10
laboite/apps/energy/urls.py on lines 0..9
laboite/apps/luftdaten/urls.py on lines 0..10
laboite/apps/messages/urls.py on lines 0..9
laboite/apps/metro/urls.py on lines 0..9
laboite/apps/parcel/urls.py on lines 0..10
laboite/apps/parking/urls.py on lines 0..10
laboite/apps/time/urls.py on lines 0..10
laboite/apps/traffic/urls.py on lines 0..10
laboite/apps/weather/urls.py on lines 0..9
laboite/apps/wifi/urls.py on lines 0..10

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

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

function Animation( elem, properties, options ) {
    var result,
        stopped,
        index = 0,
        length = Animation.prefilters.length,
Severity: Major
Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

    Function 12 has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring.
    Open

    },{}],12:[function(require,module,exports){
    /* ========================================================================
     * Bootstrap: tab.js v3.3.7
     * http://getbootstrap.com/javascript/#tabs
     * ========================================================================
    Severity: Minor
    Found in static/dist/js/site-70bd78197e.js - About 3 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 2 locations. Consider refactoring.
    Open

      function Plugin(option) {
        return this.each(function () {
          var $this = $(this)
          var data  = $this.data('bs.dropdown')
    
    
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js and 1 other location - About 3 hrs to fix
    static/dist/js/site-70bd78197e.js on lines 1029..1037

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

    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

      function Plugin(option) {
        return this.each(function () {
          var $this = $(this)
          var data  = $this.data('bs.alert')
    
    
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js and 1 other location - About 3 hrs to fix
    static/dist/js/site-70bd78197e.js on lines 1771..1779

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

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

        trigger: function( event, data, elem, onlyHandlers ) {
    
            var i, cur, tmp, bubbleType, ontype, handle, special,
                eventPath = [ elem || document ],
                type = hasOwn.call( event, "type" ) ? event.type : event,
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

      Function 11 has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
      Open

      },{}],11:[function(require,module,exports){
      /* ========================================================================
       * Bootstrap: scrollspy.js v3.3.7
       * http://getbootstrap.com/javascript/#scrollspy
       * ========================================================================
      Severity: Minor
      Found in static/dist/js/site-70bd78197e.js - About 3 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 18 locations. Consider refactoring.
      Open

      Severity: Major
      Found in laboite/apps/time/migrations/0007_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/calendar/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/data/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/parking/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/weather/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/wifi/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

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

      Severity: Major
      Found in laboite/apps/parking/migrations/0004_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/calendar/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/data/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/time/migrations/0007_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/weather/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/wifi/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

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

      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/data/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/parking/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/time/migrations/0007_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/weather/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/wifi/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

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

      Severity: Major
      Found in laboite/apps/data/migrations/0004_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/calendar/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/parking/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/time/migrations/0007_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/weather/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/wifi/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

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

      Severity: Major
      Found in laboite/apps/wifi/migrations/0004_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/calendar/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/data/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/parking/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/time/migrations/0007_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/weather/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

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

      Severity: Major
      Found in laboite/apps/weather/migrations/0004_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
      laboite/apps/bikes/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/bitmap/migrations/0002_auto_20180304_0414.py on lines 0..17
      laboite/apps/bus/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/calendar/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/coffees/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/cryptocurrency/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/data/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/energy/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/likes/migrations/0003_auto_20180304_0414.py on lines 0..17
      laboite/apps/messages/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/metro/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/parcel/migrations/0005_auto_20180304_0414.py on lines 0..17
      laboite/apps/parking/migrations/0004_auto_20180304_0414.py on lines 0..17
      laboite/apps/tasks/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/time/migrations/0007_auto_20180304_0414.py on lines 0..17
      laboite/apps/traffic/migrations/0006_auto_20180304_0414.py on lines 0..17
      laboite/apps/wifi/migrations/0004_auto_20180304_0414.py on lines 0..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 67.

      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