debian-mirror-gitlab/.rubocop_todo/rails/squished_sql_heredocs.yml
2022-08-13 15:12:31 +05:30

216 lines
15 KiB
YAML

---
# Cop supports --auto-correct.
Rails/SquishedSQLHeredocs:
# Offense count: 356
# Temporarily disabled due to too many offenses
Enabled: false
Exclude:
- 'app/finders/members_finder.rb'
- 'app/models/analytics/cycle_analytics/stage_event_hash.rb'
- 'app/models/ci/resource_group.rb'
- 'app/models/clusters/clusters_hierarchy.rb'
- 'app/models/concerns/analytics/cycle_analytics/stage_event_model.rb'
- 'app/models/concerns/has_environment_scope.rb'
- 'app/models/customer_relations/contact.rb'
- 'app/models/customer_relations/organization.rb'
- 'app/models/deployment.rb'
- 'app/models/issue/metrics.rb'
- 'app/models/merge_request/metrics.rb'
- 'app/models/namespace/traversal_hierarchy.rb'
- 'app/models/namespaces/traversal/linear.rb'
- 'app/models/project.rb'
- 'app/models/user.rb'
- 'app/services/issuable/destroy_label_links_service.rb'
- 'app/services/issues/relative_position_rebalancing_service.rb'
- 'app/services/projects/fetch_statistics_increment_service.rb'
- 'app/services/todos/destroy/destroyed_issuable_service.rb'
- 'app/workers/users/deactivate_dormant_users_worker.rb'
- 'db/migrate/20210323155010_populate_dismissal_information_for_vulnerabilities.rb'
- 'db/migrate/20210601080039_group_protected_environments_add_index_and_constraint.rb'
- 'db/migrate/20210611100359_rebuild_index_for_cadence_iterations_automation.rb'
- 'db/migrate/20210617022324_create_incident_management_pending_alert_escalations.rb'
- 'db/migrate/20210621043337_rename_services_to_integrations.rb'
- 'db/migrate/20210621044000_rename_services_indexes_to_integrations.rb'
- 'db/migrate/20210706152139_add_index_type_to_postgres_indexes_view.rb'
- 'db/migrate/20210719145532_add_foreign_keys_view.rb'
- 'db/migrate/20210721135638_add_triggers_to_integrations_type_new.rb'
- 'db/migrate/20210721174453_remove_schedule_and_status_null_constraints_from_pending_escalations_alert.rb'
- 'db/migrate/20210722150102_operations_feature_flags_correct_flexible_rollout_values.rb'
- 'db/migrate/20210730194555_create_incident_management_pending_issue_escalations.rb'
- 'db/migrate/20210818175949_update_integrations_trigger_type_new_on_insert.rb'
- 'db/migrate/20210825104656_create_analytics_cycle_analytics_merge_request_stage_events.rb'
- 'db/migrate/20210825110016_create_analytics_cycle_analytics_issue_stage_events.rb'
- 'db/migrate/20210826122748_create_loose_foreign_keys_deleted_records.rb'
- 'db/migrate/20210826145509_add_function_for_inserting_deleted_records.rb'
- 'db/migrate/20210903054158_recreate_stage_issue_events_table_with_bigints.rb'
- 'db/migrate/20210906100021_delete_project_namespace_trigger.rb'
- 'db/migrate/20210929032555_create_verification_codes.rb'
- 'db/migrate/20211005092428_drop_time_range_partitioned_loose_fk.rb'
- 'db/migrate/20211005093558_add_range_partitioned_loose_fk_table.rb'
- 'db/migrate/20211005100112_recreate_loose_fk_insert_function.rb'
- 'db/migrate/20211007090229_create_issue_search_table.rb'
- 'db/migrate/20211011141242_create_namespaces_sync_trigger.rb'
- 'db/migrate/20211011141243_create_projects_sync_trigger.rb'
- 'db/migrate/20211012015903_next_traversal_ids_sibling_function.rb'
- 'db/migrate/20211018161447_fix_double_entries_in_postgres_index_view.rb'
- 'db/migrate/20211112155416_populate_default_value_for_personal_access_tokens_prefix.rb'
- 'db/migrate/20211118103439_remove_hardcoded_partition_from_loose_fk_trigger_function.rb'
- 'db/migrate/20211123135255_create_batched_background_migration_job_transition_logs.rb'
- 'db/migrate/20220106111958_add_insert_or_update_vulnerability_reads_trigger.rb'
- 'db/migrate/20220106112043_add_update_vulnerability_reads_trigger.rb'
- 'db/migrate/20220106112085_add_update_vulnerability_reads_location_trigger.rb'
- 'db/migrate/20220106163326_add_has_issues_on_vulnerability_reads_trigger.rb'
- 'db/migrate/20220208171826_update_default_scan_method_of_dast_site_profile.rb'
- 'db/migrate/20220211214605_update_integrations_trigger_type_new_on_insert_null_safe.rb'
- 'db/migrate/20220213100000_remove_integration_type_triggers.rb'
- 'db/migrate/20220304052335_remove_not_null_contraint_on_title_from_sprints.rb'
- 'db/migrate/20220321234317_remove_all_issuable_escalation_statuses.rb'
- 'db/migrate/20220329110630_add_ci_namespace_mirrors_unnest_index_on_traversal_ids.rb'
- 'db/migrate/20220412060931_add_nullify_build_data_trigger_on_merge_request_metrics.rb'
- 'db/migrate/20220413124200_add_view_for_per_table_autovacuum_status.rb'
- 'db/migrate/20220415015143_replace_iterations_cadence_date_range_constraint.rb'
- 'db/migrate/20220422200633_fix_view_for_per_table_autovacuum_status.rb'
- 'db/migrate/20220422220507_remove_tmp_index_supporting_leaky_regex_cleanup.rb'
- 'db/post_migrate/20210302074524_backfill_namespace_statistics_with_wiki_size.rb'
- 'db/post_migrate/20210311045138_set_traversal_ids_for_gitlab_org_group_staging.rb'
- 'db/post_migrate/20210311045139_set_traversal_ids_for_gitlab_org_group_com.rb'
- 'db/post_migrate/20210311093723_add_partial_index_on_ci_pipelines_by_cancelable_status_and_users.rb'
- 'db/post_migrate/20210317104032_set_iteration_cadence_automatic_to_false.rb'
- 'db/post_migrate/20210331105335_drop_non_partitioned_audit_events.rb'
- 'db/post_migrate/20210430134202_copy_adoption_snapshot_namespace.rb'
- 'db/post_migrate/20210430135954_copy_adoption_segments_namespace.rb'
- 'db/post_migrate/20210525075724_clean_up_pending_builds_table.rb'
- 'db/post_migrate/20210609125005_drop_non_partitioned_web_hook_logs.rb'
- 'db/post_migrate/20210610102413_migrate_protected_attribute_to_pending_builds.rb'
- 'db/post_migrate/20210610141711_disable_expiration_policies_linked_to_no_container_images.rb'
- 'db/post_migrate/20210708011426_finalize_ci_builds_metadata_bigint_conversion.rb'
- 'db/post_migrate/20210721174521_add_non_null_constraint_for_escalation_rule_on_pending_alert_escalations.rb'
- 'db/post_migrate/20210812013042_remove_duplicate_project_authorizations.rb'
- 'db/post_migrate/20210907211557_finalize_ci_builds_bigint_conversion.rb'
- 'db/post_migrate/20210910194952_update_report_type_for_existing_approval_project_rules.rb'
- 'db/post_migrate/20211105135157_drop_ci_build_trace_sections.rb'
- 'db/post_migrate/20211112113300_remove_ci_pipeline_chat_data_fk_on_chat_names.rb'
- 'db/post_migrate/20211130165043_backfill_sequence_column_for_sprints_table.rb'
- 'db/post_migrate/20211206161271_add_indexes_for_primary_email_cleanup_migration.rb'
- 'db/post_migrate/20211220064757_drop_temporary_indexes_for_primary_email_migration.rb'
- 'db/post_migrate/20220128155251_remove_dangling_running_builds.rb'
- 'db/post_migrate/20220204095121_backfill_namespace_statistics_with_dependency_proxy_size.rb'
- 'db/post_migrate/20220204110725_backfill_cycle_analytics_aggregations.rb'
- 'db/post_migrate/20220213103859_remove_integrations_type.rb'
- 'db/post_migrate/20220309084954_remove_leftover_external_pull_request_deletions.rb'
- 'db/post_migrate/20220318111040_add_indexes_for_primary_email_second_cleanup_migration.rb'
- 'db/post_migrate/20220318111949_drop_temporary_indexes_for_primary_email_migration_second_cleanup.rb'
- 'db/post_migrate/20220329175119_remove_leftover_ci_job_artifact_deletions.rb'
- 'db/post_migrate/20220420135946_update_batched_background_migration_arguments.rb'
- 'ee/app/models/dora/daily_metrics.rb'
- 'ee/app/models/ee/group.rb'
- 'ee/app/models/ee/issue.rb'
- 'ee/app/models/iterations/cadence.rb'
- 'ee/app/models/vulnerabilities/statistic.rb'
- 'ee/app/services/analytics/cycle_analytics/consistency_check_service.rb'
- 'ee/app/services/security/ingestion/tasks/ingest_vulnerability_statistics.rb'
- 'ee/app/services/vulnerabilities/historical_statistics/adjustment_service.rb'
- 'ee/app/services/vulnerabilities/statistics/adjustment_service.rb'
- 'ee/app/services/vulnerabilities/statistics/update_service.rb'
- 'ee/db/geo/migrate/20170906174622_remove_duplicates_from_project_registry.rb'
- 'ee/db/geo/migrate/20180510223634_set_resync_flag_for_retried_projects.rb'
- 'ee/db/geo/post_migrate/20210217020154_add_unique_index_on_container_repository_registry.rb'
- 'ee/db/geo/post_migrate/20210217020156_add_unique_index_on_terraform_state_version_registry.rb'
- 'ee/lib/ee/gitlab/background_migration/backfill_iteration_cadence_id_for_boards.rb'
- 'ee/lib/ee/gitlab/background_migration/create_security_setting.rb'
- 'ee/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids.rb'
- 'ee/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column.rb'
- 'ee/lib/ee/gitlab/background_migration/populate_status_column_of_security_scans.rb'
- 'ee/lib/ee/gitlab/background_migration/populate_test_reports_issue_id.rb'
- 'ee/lib/ee/gitlab/background_migration/update_vulnerability_occurrences_location.rb'
- 'ee/lib/ee/gitlab/usage_data.rb'
- 'ee/lib/gitlab/geo/base_batcher.rb'
- 'ee/spec/models/ee/user_spec.rb'
- 'lib/gitlab/background_migration/backfill_ci_namespace_mirrors.rb'
- 'lib/gitlab/background_migration/backfill_ci_project_mirrors.rb'
- 'lib/gitlab/background_migration/backfill_group_features.rb'
- 'lib/gitlab/background_migration/backfill_integrations_type_new.rb'
- 'lib/gitlab/background_migration/backfill_issue_search_data.rb'
- 'lib/gitlab/background_migration/backfill_namespace_id_for_project_route.rb'
- 'lib/gitlab/background_migration/backfill_namespace_traversal_ids_children.rb'
- 'lib/gitlab/background_migration/backfill_project_settings.rb'
- 'lib/gitlab/background_migration/backfill_projects_with_coverage.rb'
- 'lib/gitlab/background_migration/backfill_upvotes_count_on_issues.rb'
- 'lib/gitlab/background_migration/copy_ci_builds_columns_to_security_scans.rb'
- 'lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images.rb'
- 'lib/gitlab/background_migration/encrypt_static_object_token.rb'
- 'lib/gitlab/background_migration/fix_duplicate_project_name_and_path.rb'
- 'lib/gitlab/background_migration/fix_first_mentioned_in_commit_at.rb'
- 'lib/gitlab/background_migration/fix_projects_without_project_feature.rb'
- 'lib/gitlab/background_migration/fix_projects_without_prometheus_service.rb'
- 'lib/gitlab/background_migration/move_container_registry_enabled_to_project_feature.rb'
- 'lib/gitlab/background_migration/populate_container_repository_migration_plan.rb'
- 'lib/gitlab/background_migration/populate_topics_non_private_projects_count.rb'
- 'lib/gitlab/background_migration/populate_topics_total_projects_count_cache.rb'
- 'lib/gitlab/background_migration/populate_vulnerability_reads.rb'
- 'lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb'
- 'lib/gitlab/background_migration/update_timelogs_null_spent_at.rb'
- 'lib/gitlab/background_migration/update_timelogs_project_id.rb'
- 'lib/gitlab/background_migration/update_users_where_two_factor_auth_required_from_group.rb'
- 'lib/gitlab/database/bulk_update.rb'
- 'lib/gitlab/database/count/tablesample_count_strategy.rb'
- 'lib/gitlab/database/load_balancing/load_balancer.rb'
- 'lib/gitlab/database/migration_helpers.rb'
- 'lib/gitlab/database/migration_helpers/loose_foreign_key_helpers.rb'
- 'lib/gitlab/database/migration_helpers/v2.rb'
- 'lib/gitlab/database/migrations/batched_background_migration_helpers.rb'
- 'lib/gitlab/database/migrations/observers/query_statistics.rb'
- 'lib/gitlab/database/partitioning/replace_table.rb'
- 'lib/gitlab/database/partitioning/single_numeric_list_partition.rb'
- 'lib/gitlab/database/partitioning/sliding_list_strategy.rb'
- 'lib/gitlab/database/partitioning/time_partition.rb'
- 'lib/gitlab/database/partitioning_migration_helpers/backfill_partitioned_table.rb'
- 'lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb'
- 'lib/gitlab/database/postgres_hll/batch_distinct_counter.rb'
- 'lib/gitlab/database/schema_helpers.rb'
- 'lib/gitlab/database/schema_migrations/migrations.rb'
- 'lib/gitlab/database/unidirectional_copy_trigger.rb'
- 'lib/gitlab/graphql/pagination/keyset/conditions/not_null_condition.rb'
- 'lib/gitlab/graphql/pagination/keyset/conditions/null_condition.rb'
- 'lib/gitlab/pagination/keyset/in_operator_optimization/query_builder.rb'
- 'lib/gitlab/sql/glob.rb'
- 'lib/tasks/dev.rake'
- 'qa/qa/service/praefect_manager.rb'
- 'spec/db/schema_spec.rb'
- 'spec/initializers/00_rails_disable_joins_spec.rb'
- 'spec/lib/gitlab/background_migration/copy_column_using_background_migration_job_spec.rb'
- 'spec/lib/gitlab/database/migration_helpers/restrict_gitlab_schema_spec.rb'
- 'spec/lib/gitlab/database/migration_helpers_spec.rb'
- 'spec/lib/gitlab/database/migrations/observers/query_statistics_spec.rb'
- 'spec/lib/gitlab/database/partitioning/detached_partition_dropper_spec.rb'
- 'spec/lib/gitlab/database/partitioning/monthly_strategy_spec.rb'
- 'spec/lib/gitlab/database/partitioning/partition_manager_spec.rb'
- 'spec/lib/gitlab/database/partitioning/replace_table_spec.rb'
- 'spec/lib/gitlab/database/partitioning/sliding_list_strategy_spec.rb'
- 'spec/lib/gitlab/database/partitioning/time_partition_spec.rb'
- 'spec/lib/gitlab/database/partitioning_migration_helpers/backfill_partitioned_table_spec.rb'
- 'spec/lib/gitlab/database/partitioning_migration_helpers/foreign_key_helpers_spec.rb'
- 'spec/lib/gitlab/database/partitioning_migration_helpers/index_helpers_spec.rb'
- 'spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb'
- 'spec/lib/gitlab/database/partitioning_spec.rb'
- 'spec/lib/gitlab/database/postgres_foreign_key_spec.rb'
- 'spec/lib/gitlab/database/postgres_index_bloat_estimate_spec.rb'
- 'spec/lib/gitlab/database/postgres_index_spec.rb'
- 'spec/lib/gitlab/database/postgres_partition_spec.rb'
- 'spec/lib/gitlab/database/postgres_partitioned_table_spec.rb'
- 'spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb'
- 'spec/lib/gitlab/database/reindexing_spec.rb'
- 'spec/lib/gitlab/database/schema_migrations/migrations_spec.rb'
- 'spec/lib/gitlab/database/similarity_score_spec.rb'
- 'spec/lib/gitlab/database/unidirectional_copy_trigger_spec.rb'
- 'spec/lib/gitlab/graphql/pagination/keyset/conditions/not_null_condition_spec.rb'
- 'spec/lib/gitlab/graphql/pagination/keyset/conditions/null_condition_spec.rb'
- 'spec/lib/gitlab/pagination/keyset/in_operator_optimization/strategies/record_loader_strategy_spec.rb'
- 'spec/lib/gitlab/pagination/keyset/order_spec.rb'
- 'spec/models/application_record_spec.rb'
- 'spec/models/concerns/after_commit_queue_spec.rb'
- 'spec/support/db_cleaner.rb'
- 'spec/support/helpers/database/partitioning_helpers.rb'
- 'spec/support/helpers/database/table_schema_helpers.rb'
- 'spec/support/helpers/database/trigger_helpers.rb'
- 'spec/support/shared_examples/loose_foreign_keys/have_loose_foreign_key.rb'