fossasia/open-event-orga-server

View on GitHub

Showing 1,194 of 1,194 total issues

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

    event_sub_topics = Relationship(
        self_view='v1.event_topic_event_sub_topic',
        self_view_kwargs={'id': '<id>'},
        related_view='v1.event_sub_topic_list',
        related_view_kwargs={'event_topic_id': '<id>'},
Severity: Minor
Found in app/api/schema/event_topics.py and 1 other location - About 55 mins to fix
app/api/schema/groups.py on lines 41..45

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

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 send_email_for_monthly_fee_payment has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def send_email_for_monthly_fee_payment(
Severity: Major
Found in app/api/helpers/mail.py - About 50 mins to fix

Function upload_to_aws has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def upload_to_aws(
Severity: Major
Found in app/api/helpers/storage.py - About 50 mins to fix

Function send_email has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def send_email(to, action, subject, html, attachments=None, bcc=None, reply_to=None):
Severity: Major
Found in app/api/helpers/mail.py - About 50 mins to fix

Function convert_to_user_locale has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def convert_to_user_locale(
Severity: Major
Found in app/api/helpers/mail.py - About 50 mins to fix

Function create_save_pdf has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

def create_save_pdf(
Severity: Major
Found in app/api/helpers/files.py - About 50 mins to fix

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

Severity: Major
Found in migrations/versions/59a75a06249d_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/291bb44bb014_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/d04baaaca7b5_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/af9215895b80_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/81fe5a689259_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/274cf8742fb5_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/8e7f7864cb60_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/3458fec198e2_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/ecb671d1eb4b_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/35e6312c8b8f_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/3750bc39e4de_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/dc0f787c88ae_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/ca3156df9a12_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/848f6f918b3d_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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

Severity: Major
Found in migrations/versions/848f6f918b3d_.py and 45 other locations - About 50 mins to fix
migrations/versions/03d5a2b6ea24_.py on lines 0..22
migrations/versions/0e648fcb8ef6_.py on lines 0..22
migrations/versions/13aed5739978_.py on lines 0..22
migrations/versions/274cf8742fb5_.py on lines 0..22
migrations/versions/291bb44bb014_.py on lines 0..22
migrations/versions/3458fec198e2_.py on lines 0..22
migrations/versions/35e6312c8b8f_.py on lines 0..22
migrations/versions/3750bc39e4de_.py on lines 0..22
migrations/versions/41494520d7c0_.py on lines 0..22
migrations/versions/4541c9f0492b_.py on lines 0..22
migrations/versions/523742f2b632_.py on lines 0..22
migrations/versions/53500e542289_.py on lines 0..22
migrations/versions/59a75a06249d_.py on lines 0..22
migrations/versions/5bff18b52910_.py on lines 0..22
migrations/versions/6153d21347b9_.py on lines 0..22
migrations/versions/77df37e3e9ad_.py on lines 0..22
migrations/versions/7a110ca7061b_.py on lines 0..22
migrations/versions/81fe5a689259_.py on lines 0..22
migrations/versions/84b81dbc95df_.py on lines 0..22
migrations/versions/86fe7df8dca6_.py on lines 0..22
migrations/versions/898490456115_.py on lines 0..22
migrations/versions/8cdaeb567de4_.py on lines 0..22
migrations/versions/8e7f7864cb60_.py on lines 0..22
migrations/versions/9920a61bf875_.py on lines 0..22
migrations/versions/a643eb3f2bb4_.py on lines 0..22
migrations/versions/ab5e71976320_.py on lines 0..22
migrations/versions/af9215895b80_.py on lines 0..22
migrations/versions/b96384251d86_.py on lines 0..22
migrations/versions/c2e5de1111bd_.py on lines 0..22
migrations/versions/c5fe28ec7139_.py on lines 0..22
migrations/versions/c61a3c33adb5_.py on lines 0..22
migrations/versions/ca3156df9a12_.py on lines 0..22
migrations/versions/d04baaaca7b5_.py on lines 0..22
migrations/versions/d469443aed74_.py on lines 0..22
migrations/versions/d563f6eba95a_.py on lines 0..22
migrations/versions/da47a767f2ef_.py on lines 0..22
migrations/versions/dc0f787c88ae_.py on lines 0..22
migrations/versions/dd24d9e90809_.py on lines 0..22
migrations/versions/de59ac570231_.py on lines 0..22
migrations/versions/e9d070685a1b_.py on lines 0..22
migrations/versions/eba5ba85d240_.py on lines 0..22
migrations/versions/ecb671d1eb4b_.py on lines 0..22
migrations/versions/fb3114b70f3c_.py on lines 0..22
migrations/versions/fd0a931e7493_.py on lines 0..22
migrations/versions/ffbb4d4dad39_.py on lines 0..22

Duplicated Code

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

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

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

Tuning

This issue has a mass of 36.

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