laboiteproject/lenuage

View on GitHub

Showing 384 of 384 total issues

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

Severity: Major
Found in laboite/apps/energy/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/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

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/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/bus/migrations/0005_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/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
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/traffic/migrations/0006_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/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/coffees/migrations/0003_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/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/parcel/migrations/0005_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/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/tasks/migrations/0006_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/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/metro/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/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/likes/migrations/0003_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/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/bikes/migrations/0005_auto_20180304_0414.py and 17 other locations - About 3 hrs to fix
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
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/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/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/bitmap/migrations/0002_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/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
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 2 locations. Consider refactoring.
Open

    }, {
      key: 'offText',
      value: function offText(value) {
        if (typeof value === 'undefined') {
          return this.options.offText;
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 337..349

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

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

    }, {
      key: 'onText',
      value: function onText(value) {
        if (typeof value === 'undefined') {
          return this.options.onText;
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 349..361

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

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

@pytest.mark.django_db
def test_station_infos_ko_star(app, requests_mocker, settings):
    app.provider = 'star'
    app.save()
    with requests_mocker as m:
Severity: Major
Found in laboite/apps/bikes/tests.py and 1 other location - About 3 hrs to fix
laboite/apps/bikes/tests.py on lines 148..154

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

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

@pytest.mark.django_db
def test_station_infos_ko_velib(app, requests_mocker, settings):
    app.provider = 'velib'
    app.save()
    with requests_mocker as m:
Severity: Major
Found in laboite/apps/bikes/tests.py and 1 other location - About 3 hrs to fix
laboite/apps/bikes/tests.py on lines 93..99

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

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

function Sizzle( selector, context, results, seed ) {
    var m, i, elem, nid, nidselect, match, groups, newSelector,
        newContext = context && context.ownerDocument,

        // nodeType defaults to 9, since context defaults to document
Severity: Major
Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

    Function CHILD has 80 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            "CHILD": function( type, what, argument, first, last ) {
                var simple = type.slice( 0, 3 ) !== "nth",
                    forward = type.slice( -4 ) !== "last",
                    ofType = what === "of-type";
    
    
    Severity: Major
    Found in static/dist/js/site-70bd78197e.js - About 3 hrs to fix

      Function 5 has 80 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

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

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

            }, {
              key: 'onSwitchChange',
              value: function onSwitchChange(value) {
                if (typeof value === 'undefined') {
                  return this.options.onSwitchChange;
        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 426..438

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

        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