laboiteproject/lenuage

View on GitHub

Showing 384 of 384 total issues

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

    def get_context_data(self, **kwargs):
        context = super(AppCreateView, self).get_context_data(**kwargs)
        boite = get_object_or_404(Boite, pk=self.kwargs.get('boite_pk'), user=self.request.user)
        context['boite'] = boite
        context['boite_id'] = self.kwargs.get('boite_pk')
Severity: Major
Found in boites/views.py and 4 other locations - About 4 hrs to fix
boites/views.py on lines 178..184
boites/views.py on lines 248..253
boites/views.py on lines 339..345
boites/views.py on lines 385..391

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

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

    def get_context_data(self, **kwargs):
        context = super(AppDeleteView, self).get_context_data(**kwargs)
        boite = get_object_or_404(Boite, pk=self.kwargs.get('boite_pk'), user=self.request.user)
        context['boite'] = boite
        context['boite_id'] = self.kwargs.get('boite_pk')
Severity: Major
Found in boites/views.py and 4 other locations - About 4 hrs to fix
boites/views.py on lines 178..184
boites/views.py on lines 194..199
boites/views.py on lines 339..345
boites/views.py on lines 385..391

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

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 5 has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
Open

},{}],5:[function(require,module,exports){
/* ========================================================================
 * Bootstrap: button.js v3.3.7
 * http://getbootstrap.com/javascript/#buttons
 * ========================================================================
Severity: Minor
Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

Cognitive Complexity

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

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

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

Further reading

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

  function Plugin(option) {
    return this.each(function () {
      var $this   = $(this)
      var data    = $this.data('bs.scrollspy')
      var options = typeof option == 'object' && option
Severity: Major
Found in static/dist/js/site-70bd78197e.js and 1 other location - About 4 hrs to fix
static/dist/js/site-70bd78197e.js on lines 920..929

Duplicated Code

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

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

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

Tuning

This issue has a mass of 118.

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

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

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

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

Refactorings

Further Reading

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

  function Plugin(option) {
    return this.each(function () {
      var $this   = $(this)
      var data    = $this.data('bs.affix')
      var options = typeof option == 'object' && option
Severity: Major
Found in static/dist/js/site-70bd78197e.js and 1 other location - About 4 hrs to fix
static/dist/js/site-70bd78197e.js on lines 2395..2404

Duplicated Code

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

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

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

Tuning

This issue has a mass of 118.

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

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

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

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

Refactorings

Further Reading

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

    for(var y = 0; y <= bitmap.length/height+1; y++) {
        for(var x = 0; x <= width-1; x++) {
            if(bitmap[x+y*width]==1)
                drawPixel(x+x0, y+y0, color);
            else
Severity: Major
Found in laboite/static/js/gfx.js and 1 other location - About 4 hrs to fix
laboite/static/js/gfx.js on lines 63..70

Duplicated Code

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

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

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

Tuning

This issue has a mass of 117.

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

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

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

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

Refactorings

Further Reading

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

    for(var y = 0; y <= bitmap.length/height+1; y++) {
        for(var x = 0; x <= width-1; x++) {
            if(bitmap[x+y*width]==1)
                drawPixel(x+x0, y+y0, color);
            else
Severity: Major
Found in laboite/static/js/gfx.js and 1 other location - About 4 hrs to fix
laboite/static/js/gfx.js on lines 51..58

Duplicated Code

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

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

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

Tuning

This issue has a mass of 117.

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

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

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

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

Refactorings

Further Reading

Function 3 has 102 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"../../js/affix.js":3,"../../js/alert.js":4,"../../js/button.js":5,"../../js/carousel.js":6,"../../js/collapse.js":7,"../../js/dropdown.js":8,"../../js/modal.js":9,"../../js/popover.js":10,"../../js/scrollspy.js":11,"../../js/tab.js":12,"../../js/tooltip.js":13,"../../js/transition.js":14}],3:[function(require,module,exports){
/* ========================================================================
 * Bootstrap: affix.js v3.3.7
 * http://getbootstrap.com/javascript/#affix
 * ========================================================================
Severity: Major
Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

    Function 12 has 102 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    },{}],12:[function(require,module,exports){
    /* ========================================================================
     * Bootstrap: tab.js v3.3.7
     * http://getbootstrap.com/javascript/#tabs
     * ========================================================================
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

      Function 8 has 100 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      },{}],8:[function(require,module,exports){
      /* ========================================================================
       * Bootstrap: dropdown.js v3.3.7
       * http://getbootstrap.com/javascript/#dropdowns
       * ========================================================================
      Severity: Major
      Found in static/dist/js/site-70bd78197e.js - About 4 hrs to fix

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

        function defaultPrefilter( elem, props, opts ) {
            /* jshint validthis: true */
            var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
                anim = this,
                orig = {},
        Severity: Major
        Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

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

          Severity: Major
          Found in laboite/apps/energy/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/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/coffees/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/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/weather/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/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/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/time/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/parking/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/luftdaten/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/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/bitmap/urls.py and 16 other locations - About 3 hrs to fix
          laboite/apps/airquality/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/wifi/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/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

          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/parcel/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/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/traffic/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/parking/urls.py on lines 0..10
          laboite/apps/time/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

          Severity
          Category
          Status
          Source
          Language