masschallenge/django-accelerator

View on GitHub

Showing 127 of 161 total issues

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

Severity: Major
Found in accelerator/models/observer.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/nav_tree.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/program_partner.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/startup_attribute.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/partner.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/panel_type.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/scenario_judge.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/judging_round.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

Severity: Major
Found in accelerator/models/judging_round.py and 82 other locations - About 50 mins to fix
accelerator/models/allocator.py on lines 0..11
accelerator/models/application.py on lines 0..11
accelerator/models/application_answer.py on lines 0..11
accelerator/models/application_panel_assignment.py on lines 0..14
accelerator/models/bucket_state.py on lines 0..11
accelerator/models/category_header_page.py on lines 0..13
accelerator/models/clearance.py on lines 0..11
accelerator/models/criterion.py on lines 0..11
accelerator/models/criterion_option_spec.py on lines 0..13
accelerator/models/expert_category.py on lines 0..11
accelerator/models/expert_interest.py on lines 0..11
accelerator/models/expert_interest_type.py on lines 0..11
accelerator/models/file_page.py on lines 0..11
accelerator/models/gender_choices.py on lines 0..11
accelerator/models/interest_category.py on lines 0..11
accelerator/models/job_posting.py on lines 0..11
accelerator/models/judge_application_feedback.py on lines 0..12
accelerator/models/judge_availability.py on lines 0..11
accelerator/models/judge_feedback_component.py on lines 0..14
accelerator/models/judge_panel_assignment.py on lines 0..13
accelerator/models/judge_round_commitment.py on lines 0..11
accelerator/models/judging_form.py on lines 0..11
accelerator/models/judging_form_element.py on lines 0..11
accelerator/models/legal_check.py on lines 0..11
accelerator/models/location.py on lines 0..11
accelerator/models/mentor_program_office_hour.py on lines 0..14
accelerator/models/mentoring_specialties.py on lines 0..11
accelerator/models/model_change.py on lines 0..11
accelerator/models/named_group.py on lines 0..11
accelerator/models/nav_tree.py on lines 0..11
accelerator/models/nav_tree_item.py on lines 0..11
accelerator/models/newsletter.py on lines 0..11
accelerator/models/newsletter_receipt.py on lines 0..11
accelerator/models/node_published_for.py on lines 0..13
accelerator/models/observer.py on lines 0..11
accelerator/models/organization.py on lines 0..11
accelerator/models/panel.py on lines 0..11
accelerator/models/panel_location.py on lines 0..11
accelerator/models/panel_time.py on lines 0..11
accelerator/models/panel_type.py on lines 0..11
accelerator/models/partner.py on lines 0..11
accelerator/models/partner_judge_application_assignment.py on lines 0..12
accelerator/models/partner_judging_instructions.py on lines 0..12
accelerator/models/partner_team_member.py on lines 0..11
accelerator/models/paypal_refund.py on lines 0..11
accelerator/models/program.py on lines 0..11
accelerator/models/program_cycle.py on lines 0..11
accelerator/models/program_family.py on lines 0..11
accelerator/models/program_family_location.py on lines 0..13
accelerator/models/program_override.py on lines 0..11
accelerator/models/program_partner.py on lines 0..11
accelerator/models/program_partner_type.py on lines 0..11
accelerator/models/program_role.py on lines 0..11
accelerator/models/program_role_grant.py on lines 0..13
accelerator/models/program_startup_attribute.py on lines 0..14
accelerator/models/program_startup_status.py on lines 0..13
accelerator/models/question.py on lines 0..13
accelerator/models/refund_code.py on lines 0..11
accelerator/models/refund_code_redemption.py on lines 0..13
accelerator/models/scenario.py on lines 0..11
accelerator/models/scenario_application.py on lines 0..13
accelerator/models/scenario_judge.py on lines 0..11
accelerator/models/scenario_preference.py on lines 0..13
accelerator/models/section.py on lines 0..11
accelerator/models/site.py on lines 0..11
accelerator/models/site_program_authorization.py on lines 0..14
accelerator/models/site_redirect_page.py on lines 0..13
accelerator/models/startup.py on lines 0..11
accelerator/models/startup_attribute.py on lines 0..13
accelerator/models/startup_cycle_interest.py on lines 0..13
accelerator/models/startup_mentor_relationship.py on lines 0..14
accelerator/models/startup_mentor_tracking_record.py on lines 0..14
accelerator/models/startup_override_grant.py on lines 0..13
accelerator/models/startup_program_interest.py on lines 0..14
accelerator/models/startup_role.py on lines 0..11
accelerator/models/startup_status.py on lines 0..11
accelerator/models/startup_team_member.py on lines 0..13
accelerator/models/subnav_association.py on lines 0..12
accelerator/models/user_label.py on lines 0..11
accelerator/models/user_legal_check.py on lines 0..11
accelerator/models/user_role.py on lines 0..11
accelerator/models/user_role_menu.py on lines 0..11

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

    user_location = models.OneToOneField(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               'Location'),
        on_delete=models.CASCADE,
Severity: Minor
Found in accelerator_abstract/models/base_core_profile.py and 1 other location - About 40 mins to fix
accelerator_abstract/models/base_mentor_program_office_hour.py on lines 16..18

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

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

    program = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label, "Program"),
        on_delete=models.SET_NULL,
Severity: Minor
Found in accelerator_abstract/models/base_mentor_program_office_hour.py and 1 other location - About 40 mins to fix
accelerator_abstract/models/base_core_profile.py on lines 380..383

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

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

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

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

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

Refactorings

Further Reading

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

    default_application_type = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               "ApplicationType"),
        null=True,
        related_name="application_type_for",
Severity: Major
Found in accelerator_abstract/models/base_program_cycle.py and 2 other locations - About 40 mins to fix
accelerator_abstract/models/base_fluent_sub_nav_association.py on lines 20..26
accelerator_abstract/models/base_program.py on lines 45..50

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

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

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

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

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

Refactorings

Further Reading

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

    cycle = models.ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               "ProgramCycle"),
        null=True,
        related_name="programs",
Severity: Major
Found in accelerator_abstract/models/base_program.py and 2 other locations - About 40 mins to fix
accelerator_abstract/models/base_fluent_sub_nav_association.py on lines 20..26
accelerator_abstract/models/base_program_cycle.py on lines 24..29

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

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

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

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

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

Refactorings

Further Reading

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

    sub_nav_item = models.ForeignKey(swapper.get_model_name(
        AcceleratorModel.Meta.app_label, "NavTreeItem"),
        null=True,
        help_text=(
            'This is the sub navigation '
Severity: Major
Found in accelerator_abstract/models/base_fluent_sub_nav_association.py and 2 other locations - About 40 mins to fix
accelerator_abstract/models/base_program.py on lines 45..50
accelerator_abstract/models/base_program_cycle.py on lines 24..29

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

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

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

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

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

Refactorings

Further Reading

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

    startup_label = ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               'StartupLabel'),
Severity: Minor
Found in accelerator_abstract/models/base_judging_round.py and 2 other locations - About 35 mins to fix
accelerator_abstract/models/base_judging_round.py on lines 164..166
accelerator_abstract/models/base_judging_round.py on lines 228..230

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

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

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

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

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

Refactorings

Further Reading

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

    champion_partner_label = ForeignKey(
        swapper.get_model_name(AcceleratorModel.Meta.app_label,
                               'PartnerLabel'),
Severity: Minor
Found in accelerator_abstract/models/base_judging_round.py and 2 other locations - About 35 mins to fix
accelerator_abstract/models/base_judging_round.py on lines 164..166
accelerator_abstract/models/base_judging_round.py on lines 202..204

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

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in accelerator/models/partner_judging_round_challenge.py and 4 other locations - About 35 mins to fix
accelerator/models/deferrable_modal.py on lines 0..10
accelerator/models/ethno_racial_identity.py on lines 0..10
accelerator/models/partner_application_interest.py on lines 0..10
accelerator/models/user_deferrable_modal.py on lines 0..9

Duplicated Code

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

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

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

Tuning

This issue has a mass of 33.

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in accelerator/models/ethno_racial_identity.py and 4 other locations - About 35 mins to fix
accelerator/models/deferrable_modal.py on lines 0..10
accelerator/models/partner_application_interest.py on lines 0..10
accelerator/models/partner_judging_round_challenge.py on lines 0..10
accelerator/models/user_deferrable_modal.py on lines 0..9

Duplicated Code

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

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

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

Tuning

This issue has a mass of 33.

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

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

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

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

Refactorings

Further Reading

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

Severity: Major
Found in accelerator/models/deferrable_modal.py and 4 other locations - About 35 mins to fix
accelerator/models/ethno_racial_identity.py on lines 0..10
accelerator/models/partner_application_interest.py on lines 0..10
accelerator/models/partner_judging_round_challenge.py on lines 0..10
accelerator/models/user_deferrable_modal.py on lines 0..9

Duplicated Code

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

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

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

Tuning

This issue has a mass of 33.

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

    def __str__(self):
        return '%s for %s by %s' % (self.application_type.name,
                                    self.cycle.name,
                                    self.startup.organization.name)
Severity: Minor
Found in accelerator_abstract/models/base_application.py and 1 other location - About 35 mins to fix
accelerator_abstract/models/base_startup_override_grant.py on lines 23..27

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

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

    def __str__(self):
        return ("Override grant (%s) for %s for %s" %
                (self.program_override.name,
                 self.startup.name,
                 self.program_override.program.name))
Severity: Minor
Found in accelerator_abstract/models/base_startup_override_grant.py and 1 other location - About 35 mins to fix
accelerator_abstract/models/base_application.py on lines 72..75

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

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