airbnb/caravel

View on GitHub

Showing 3,672 of 6,072 total issues

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

class BaseColumnMixin:
    id = Column(Integer, primary_key=True)
    column_name = Column(String(255))
    description = Column(Text)
    type = Column(String(32))
superset/migrations/versions/2018-07-19_23-41_c617da68de7d_form_nullable.py on lines 39..44
superset/migrations/versions/2019-03-21_10-22_d94d33dbe938_form_strip.py on lines 39..44

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

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

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

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

Refactorings

Further Reading

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

class BaseColumnMixin:
    id = Column(Integer, primary_key=True)
    column_name = Column(String(255))
    description = Column(Text)
    type = Column(String(32))
superset/migrations/versions/2019-03-21_10-22_d94d33dbe938_form_strip.py on lines 39..44
superset/migrations/versions/2019-09-19_13-40_258b5280a45e_form_strip_leading_and_trailing_whitespace.py on lines 37..42

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

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

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

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

Refactorings

Further Reading

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

class BaseColumnMixin:
    id = Column(Integer, primary_key=True)
    column_name = Column(String(255))
    description = Column(Text)
    type = Column(String(32))
superset/migrations/versions/2018-07-19_23-41_c617da68de7d_form_nullable.py on lines 39..44
superset/migrations/versions/2019-09-19_13-40_258b5280a45e_form_strip_leading_and_trailing_whitespace.py on lines 37..42

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41
superset/migrations/versions/2023-06-29_18-38_240d23c7f86f_update_tag_model_w_description.py on lines 0..38

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

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

superset/migrations/versions/2015-10-05_22-11_1e2841a4128_.py on lines 0..38
superset/migrations/versions/2015-12-13_08-38_55179c7f25c7_sqla_descr.py on lines 0..38
superset/migrations/versions/2015-12-14_13-37_12d55656cbca_is_featured.py on lines 0..38
superset/migrations/versions/2016-01-17_22-00_7dbf98566af7_slice_description.py on lines 0..38
superset/migrations/versions/2016-01-18_23-43_43df8de3a5f4_dash_json.py on lines 0..38
superset/migrations/versions/2016-03-25_14-35_1d2ddd543133_log_dt.py on lines 0..38
superset/migrations/versions/2016-04-03_15-23_867bf4f117f9_adding_extra_field_to_database_model.py on lines 0..38
superset/migrations/versions/2016-08-18_14-06_3c3ffe173e4f_add_sql_string_to_table.py on lines 0..38
superset/migrations/versions/2016-09-30_18-01_ab3d66c4246e_add_cache_timeout_to_druid_cluster.py on lines 0..38
superset/migrations/versions/2016-11-02_17-36_c611f2b591b8_dim_spec.py on lines 0..38
superset/migrations/versions/2017-07-26_20-09_ca69c70ec99b_tracking_url.py on lines 0..38
superset/migrations/versions/2017-08-31_17-35_a9c47e2c1547_add_impersonate_user_to_dbs.py on lines 0..38
superset/migrations/versions/2018-08-29_14-35_55e910a74826_add_metadata_column_to_annotation_model_.py on lines 0..38
superset/migrations/versions/2019-10-09_15-05_cca2f5d568c8_add_encrypted_extra_to_dbs.py on lines 0..38
superset/migrations/versions/2020-08-08_18-10_f2672aa8350a_add_slack_to_alerts.py on lines 0..41

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

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

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

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

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

Refactorings

Further Reading

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

  it('edits', async () => {
    expect(wrapper.find(PropertiesModal)).not.toExist();
    wrapper.find('[data-test="edit-alt"]').first().simulate('click');
    await waitForComponentToPaint(wrapper);
    expect(wrapper.find(PropertiesModal)).toExist();
Severity: Major
Found in superset-frontend/src/pages/ChartList/ChartList.test.jsx and 1 other location - About 3 hrs to fix
superset-frontend/src/pages/DashboardList/DashboardList.test.jsx on lines 178..183

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

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

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

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

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

Refactorings

Further Reading

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

  it('edits', async () => {
    expect(wrapper.find(PropertiesModal)).not.toExist();
    wrapper.find('[data-test="edit-alt"]').first().simulate('click');
    await waitForComponentToPaint(wrapper);
    expect(wrapper.find(PropertiesModal)).toExist();
superset-frontend/src/pages/ChartList/ChartList.test.jsx on lines 183..188

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

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

        [
          {
            name: 'left_margin',
            config: {
              type: 'SelectControl',
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 160..184
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 185..209
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 189..213

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

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

        [
          {
            name: 'left_margin',
            config: {
              type: 'SelectControl',
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 185..209
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 164..188
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 189..213

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

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

        [
          {
            name: 'bottom_margin',
            config: {
              type: 'SelectControl',
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 160..184
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 185..209
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 164..188

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

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

        [
          {
            name: 'bottom_margin',
            config: {
              type: 'SelectControl',
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/controlPanel.tsx on lines 160..184
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 164..188
superset-frontend/plugins/plugin-chart-echarts/src/Heatmap/controlPanel.tsx on lines 189..213

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

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

        formData={{
          allColumnsX: 'source',
          allColumnsY: 'target',
          bottomMargin: 'auto',
          canvasImageRendering: 'pixelated',
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-heatmap/Heatmap.stories.tsx on lines 36..54
superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-heatmap/Heatmap.stories.tsx on lines 110..128

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

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

test('Next - click when the button is enabled', () => {
  const click = jest.fn();
  render(<Next onClick={click} />);
  expect(click).toBeCalledTimes(0);
  userEvent.click(screen.getByRole('button'));
Severity: Major
Found in superset-frontend/src/components/Pagination/Next.test.tsx and 2 other locations - About 3 hrs to fix
superset-frontend/src/components/Pagination/Ellipsis.test.tsx on lines 24..30
superset-frontend/src/components/Pagination/Prev.test.tsx on lines 24..30

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

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