diff options
136 files changed, 3212 insertions, 3599 deletions
diff --git a/.rubocop_todo/cop/user_admin.yml b/.rubocop_todo/cop/user_admin.yml index 653865e3d43..6f8cc5429c2 100644 --- a/.rubocop_todo/cop/user_admin.yml +++ b/.rubocop_todo/cop/user_admin.yml @@ -1,63 +1,57 @@ --- Cop/UserAdmin: Exclude: - - app/controllers/admin/impersonations_controller.rb - - app/controllers/sessions_controller.rb - - app/finders/autocomplete/routes_finder.rb - - app/finders/ci/jobs_finder.rb - - app/finders/ci/runners_finder.rb - - app/finders/personal_access_tokens_finder.rb - - app/finders/users_finder.rb - - app/graphql/mutations/admin/sidekiq_queues/delete_jobs.rb - - app/graphql/resolvers/admin/analytics/usage_trends/measurements_resolver.rb - - app/helpers/application_helper.rb - - app/helpers/import_helper.rb - - app/helpers/nav_helper.rb - - app/helpers/projects_helper.rb - - app/helpers/search_helper.rb - - app/helpers/users/callouts_helper.rb - - app/helpers/users_helper.rb - - app/helpers/visibility_level_helper.rb - - app/models/concerns/protected_ref_access.rb - - app/models/concerns/spammable.rb - - app/models/issue_collection.rb - - app/models/merge_requests_closing_issues.rb - - app/models/protected_branch.rb - - app/models/user.rb - - app/policies/note_policy.rb - - app/services/auth/container_registry_authentication_service.rb - - app/services/emails/create_service.rb - - app/services/projects/enable_deploy_key_service.rb - - app/services/projects/fork_service.rb - - app/services/users/build_service.rb - - ee/app/controllers/ee/projects_controller.rb - - ee/app/helpers/ee/dashboard_helper.rb - - ee/app/helpers/ee/import_helper.rb - - ee/app/helpers/ee/subscribable_banner_helper.rb - - ee/app/helpers/ee/users/callouts_helper.rb - - ee/app/helpers/license_monitoring_helper.rb - - ee/app/helpers/push_rules_helper.rb - - ee/app/models/concerns/ee/protected_ref_access.rb - - ee/app/models/ee/user.rb - - ee/app/models/protected_environment/deploy_access_level.rb - - ee/app/policies/ee/group_policy.rb - - ee/app/policies/ee/project_policy.rb - - ee/app/services/ee/groups/create_service.rb - - ee/app/services/ee/groups/update_service.rb - - ee/app/services/ee/projects/update_service.rb - - ee/lib/ee/api/helpers.rb - - ee/lib/ee/gitlab/git_access.rb - - lib/api/award_emoji.rb - - lib/api/ci/runners.rb - - lib/api/entities/ci/runner_details.rb - - lib/api/groups.rb - - lib/api/helpers.rb - - lib/api/users.rb - - lib/api/v3/github.rb - - lib/constraints/admin_constrainer.rb - - lib/gitlab/auth.rb - - lib/gitlab/ci/runner_instructions.rb - - lib/gitlab/import_export/members_mapper.rb - - lib/gitlab/performance_bar.rb - - lib/gitlab/visibility_level.rb - - qa/qa/runtime/api/client.rb + - 'app/controllers/admin/impersonations_controller.rb' + - 'app/controllers/sessions_controller.rb' + - 'app/finders/autocomplete/routes_finder.rb' + - 'app/finders/ci/jobs_finder.rb' + - 'app/finders/ci/runners_finder.rb' + - 'app/finders/personal_access_tokens_finder.rb' + - 'app/finders/users_finder.rb' + - 'app/graphql/mutations/admin/sidekiq_queues/delete_jobs.rb' + - 'app/graphql/resolvers/admin/analytics/usage_trends/measurements_resolver.rb' + - 'app/helpers/application_helper.rb' + - 'app/helpers/import_helper.rb' + - 'app/helpers/projects_helper.rb' + - 'app/helpers/search_helper.rb' + - 'app/helpers/users/callouts_helper.rb' + - 'app/helpers/users_helper.rb' + - 'app/helpers/visibility_level_helper.rb' + - 'app/models/concerns/protected_ref_access.rb' + - 'app/models/concerns/spammable.rb' + - 'app/models/issue_collection.rb' + - 'app/models/merge_requests_closing_issues.rb' + - 'app/models/protected_branch.rb' + - 'app/models/user.rb' + - 'app/policies/note_policy.rb' + - 'app/services/auth/container_registry_authentication_service.rb' + - 'app/services/emails/create_service.rb' + - 'app/services/projects/enable_deploy_key_service.rb' + - 'app/services/projects/fork_service.rb' + - 'app/services/users/build_service.rb' + - 'ee/app/controllers/ee/projects_controller.rb' + - 'ee/app/helpers/ee/dashboard_helper.rb' + - 'ee/app/helpers/ee/import_helper.rb' + - 'ee/app/helpers/ee/subscribable_banner_helper.rb' + - 'ee/app/helpers/ee/users/callouts_helper.rb' + - 'ee/app/helpers/license_monitoring_helper.rb' + - 'ee/app/helpers/push_rules_helper.rb' + - 'ee/app/models/concerns/ee/protected_ref_access.rb' + - 'ee/app/models/ee/user.rb' + - 'ee/app/policies/ee/group_policy.rb' + - 'ee/app/services/ee/groups/create_service.rb' + - 'ee/app/services/ee/groups/update_service.rb' + - 'ee/app/services/ee/projects/update_service.rb' + - 'ee/lib/ee/api/helpers.rb' + - 'ee/lib/ee/gitlab/git_access.rb' + - 'lib/api/award_emoji.rb' + - 'lib/api/ci/runners.rb' + - 'lib/api/groups.rb' + - 'lib/api/helpers.rb' + - 'lib/api/users.rb' + - 'lib/api/v3/github.rb' + - 'lib/constraints/admin_constrainer.rb' + - 'lib/gitlab/auth.rb' + - 'lib/gitlab/import_export/members_mapper.rb' + - 'lib/gitlab/performance_bar.rb' + - 'lib/gitlab/visibility_level.rb' diff --git a/.rubocop_todo/database/multiple_databases.yml b/.rubocop_todo/database/multiple_databases.yml index 86db4e0c91f..ed4370a6d6a 100644 --- a/.rubocop_todo/database/multiple_databases.yml +++ b/.rubocop_todo/database/multiple_databases.yml @@ -1,18 +1,15 @@ --- Database/MultipleDatabases: Exclude: - - 'config/initializers/active_record_data_types.rb' - 'db/post_migrate/20210317104032_set_iteration_cadence_automatic_to_false.rb' - 'db/post_migrate/20210811122206_update_external_project_bots.rb' - 'db/post_migrate/20210812013042_remove_duplicate_project_authorizations.rb' - 'ee/spec/services/ee/merge_requests/update_service_spec.rb' - - 'lib/gitlab/background_migration/backfill_projects_with_coverage.rb' - 'spec/db/schema_spec.rb' - 'spec/initializers/database_config_spec.rb' - 'spec/lib/gitlab/database_spec.rb' - 'spec/lib/gitlab/metrics/subscribers/active_record_spec.rb' - 'spec/lib/gitlab/profiler_spec.rb' - - 'spec/lib/gitlab/usage/metrics/names_suggestions/relation_parsers/constraints_spec.rb' - 'spec/lib/gitlab/usage/metrics/names_suggestions/relation_parsers/joins_spec.rb' - 'spec/support/caching.rb' - 'spec/support/gitlab/usage/metrics_instrumentation_shared_examples.rb' diff --git a/.rubocop_todo/database/rescue_query_canceled.yml b/.rubocop_todo/database/rescue_query_canceled.yml index 76635ca4018..324ab498dd9 100644 --- a/.rubocop_todo/database/rescue_query_canceled.yml +++ b/.rubocop_todo/database/rescue_query_canceled.yml @@ -6,4 +6,3 @@ Database/RescueQueryCanceled: - 'lib/gitlab/background_migration/backfill_work_item_type_id_for_issues.rb' - 'lib/gitlab/database/batch_counter.rb' - 'lib/gitlab/issuables_count_for_state.rb' - - 'lib/tasks/gitlab/db/lock_writes.rake' diff --git a/.rubocop_todo/fips/md5.yml b/.rubocop_todo/fips/md5.yml index ef9e8fdde62..fc9cee17653 100644 --- a/.rubocop_todo/fips/md5.yml +++ b/.rubocop_todo/fips/md5.yml @@ -8,8 +8,6 @@ Fips/MD5: - 'app/services/packages/go/create_package_service.rb' - 'app/services/packages/maven/metadata/append_package_file_service.rb' - 'app/services/packages/rubygems/create_gemspec_service.rb' - - 'config/application.rb' - - 'config/initializers/wikicloth_redos_patch.rb' - 'ee/app/models/license.rb' - 'ee/spec/lib/ee/gitlab/usage_data_spec.rb' - 'lib/tasks/migrate/setup_postgresql.rake' @@ -19,7 +17,6 @@ Fips/MD5: - 'spec/lib/gitlab/ci/trace/remote_checksum_spec.rb' - 'spec/models/concerns/checksummable_spec.rb' - 'spec/services/gravatar_service_spec.rb' - - 'spec/support/matchers/match_file.rb' - 'spec/support/shared_examples/services/packages/debian/generate_distribution_shared_examples.rb' - 'spec/tooling/rspec_flaky/example_spec.rb' - 'tooling/rspec_flaky/example.rb' diff --git a/.rubocop_todo/fips/sha1.yml b/.rubocop_todo/fips/sha1.yml index 934805c86d4..35221d9d3ff 100644 --- a/.rubocop_todo/fips/sha1.yml +++ b/.rubocop_todo/fips/sha1.yml @@ -37,7 +37,6 @@ Fips/SHA1: - 'ee/spec/models/vulnerabilities/finding_spec.rb' - 'ee/spec/services/alert_management/process_prometheus_alert_service_spec.rb' - 'ee/spec/services/merge_trains/check_status_service_spec.rb' - - 'ee/spec/services/projects/alerting/notify_service_spec.rb' - 'ee/spec/services/security/ingestion/tasks/ingest_identifiers_spec.rb' - 'ee/spec/services/security/override_uuids_service_spec.rb' - 'ee/spec/services/vulnerabilities/manually_create_service_spec.rb' @@ -85,8 +84,6 @@ Fips/SHA1: - 'spec/lib/gitlab/ci/reports/security/locations/secret_detection_spec.rb' - 'spec/lib/gitlab/diff/file_spec.rb' - 'spec/lib/gitlab/diff/position_spec.rb' - - 'spec/lib/gitlab/diff/position_tracer/image_strategy_spec.rb' - - 'spec/lib/gitlab/diff/position_tracer/line_strategy_spec.rb' - 'spec/lib/gitlab/git/branch_spec.rb' - 'spec/lib/gitlab/git/tag_spec.rb' - 'spec/migrations/20220107064845_populate_vulnerability_reads_spec.rb' diff --git a/.rubocop_todo/gitlab/delegate_predicate_methods.yml b/.rubocop_todo/gitlab/delegate_predicate_methods.yml index 44d603b3206..eb96914796f 100644 --- a/.rubocop_todo/gitlab/delegate_predicate_methods.yml +++ b/.rubocop_todo/gitlab/delegate_predicate_methods.yml @@ -1,4 +1,4 @@ --- Gitlab/DelegatePredicateMethods: Exclude: - - app/models/clusters/cluster.rb + - 'app/models/clusters/cluster.rb' diff --git a/.rubocop_todo/gitlab/deprecate_track_redis_hll_event.yml b/.rubocop_todo/gitlab/deprecate_track_redis_hll_event.yml index 06651a0f60a..ce2190c980c 100644 --- a/.rubocop_todo/gitlab/deprecate_track_redis_hll_event.yml +++ b/.rubocop_todo/gitlab/deprecate_track_redis_hll_event.yml @@ -1,29 +1,14 @@ --- Gitlab/DeprecateTrackRedisHLLEvent: Exclude: - - 'app/controllers/admin/dev_ops_report_controller.rb' - - 'app/controllers/admin/usage_trends_controller.rb' - 'app/controllers/concerns/snippets_actions.rb' - 'app/controllers/concerns/wiki_actions.rb' - 'app/controllers/projects/blob_controller.rb' - - 'app/controllers/projects/cycle_analytics_controller.rb' - - 'app/controllers/projects/graphs_controller.rb' - 'app/controllers/projects/pipelines_controller.rb' - 'ee/app/controllers/admin/audit_logs_controller.rb' - 'ee/app/controllers/admin/credentials_controller.rb' - - 'ee/app/controllers/ee/admin/dev_ops_report_controller.rb' - 'ee/app/controllers/groups/analytics/ci_cd_analytics_controller.rb' - - 'ee/app/controllers/groups/analytics/devops_adoption_controller.rb' - - 'ee/app/controllers/groups/analytics/productivity_analytics_controller.rb' - 'ee/app/controllers/groups/audit_events_controller.rb' - - 'ee/app/controllers/groups/contribution_analytics_controller.rb' - 'ee/app/controllers/groups/epic_boards_controller.rb' - - 'ee/app/controllers/groups/insights_controller.rb' - - 'ee/app/controllers/groups/issues_analytics_controller.rb' - 'ee/app/controllers/groups/security/compliance_dashboards_controller.rb' - - 'ee/app/controllers/projects/analytics/code_reviews_controller.rb' - - 'ee/app/controllers/projects/analytics/issues_analytics_controller.rb' - - 'ee/app/controllers/projects/analytics/merge_request_analytics_controller.rb' - - 'ee/app/controllers/projects/insights_controller.rb' - - 'ee/app/controllers/projects/integrations/jira/issues_controller.rb' - 'spec/controllers/concerns/redis_tracking_spec.rb' diff --git a/.rubocop_todo/gitlab/feature_available_usage.yml b/.rubocop_todo/gitlab/feature_available_usage.yml index 0daacdfe2b1..26800923393 100644 --- a/.rubocop_todo/gitlab/feature_available_usage.yml +++ b/.rubocop_todo/gitlab/feature_available_usage.yml @@ -1,152 +1,116 @@ --- Gitlab/FeatureAvailableUsage: Exclude: - - app/controllers/projects/application_controller.rb - - app/graphql/types/project_type.rb - - app/helpers/events_helper.rb - - app/helpers/labels_helper.rb - - app/policies/project_policy.rb - - ee/app/controllers/concerns/description_diff_actions.rb - - ee/app/controllers/concerns/ee/boards_actions.rb - - ee/app/controllers/concerns/security_dashboards_permissions.rb - - ee/app/controllers/ee/boards/lists_controller.rb - - ee/app/controllers/ee/projects/autocomplete_sources_controller.rb - - ee/app/controllers/ee/projects/issues_controller.rb - - ee/app/controllers/ee/projects/security/configuration_controller.rb - - ee/app/controllers/ee/projects/settings/ci_cd_controller.rb - - ee/app/controllers/ee/projects/settings/operations_controller.rb - - ee/app/controllers/ee/projects/settings/repository_controller.rb - - ee/app/controllers/projects/audit_events_controller.rb - - ee/app/controllers/projects/iterations_controller.rb - - ee/app/controllers/projects/path_locks_controller.rb - - ee/app/controllers/projects/subscriptions_controller.rb - - ee/app/finders/autocomplete/vulnerabilities_autocomplete_finder.rb - - ee/app/finders/ee/alert_management/http_integrations_finder.rb - - ee/app/graphql/ee/types/group_type.rb - - ee/app/graphql/mutations/dast/profiles/create.rb - - ee/app/graphql/mutations/dast/profiles/run.rb - - ee/app/graphql/mutations/dast/profiles/update.rb - - ee/app/graphql/mutations/instance_security_dashboard/remove_project.rb - - ee/app/helpers/ee/application_helper.rb - - ee/app/helpers/ee/boards_helper.rb - - ee/app/helpers/ee/dashboard_helper.rb - - ee/app/helpers/ee/form_helper.rb - - ee/app/helpers/ee/graph_helper.rb - - ee/app/helpers/ee/issues_helper.rb - - ee/app/helpers/ee/lock_helper.rb - - ee/app/helpers/ee/operations_helper.rb - - ee/app/helpers/ee/projects/incidents_helper.rb - - ee/app/helpers/ee/projects_helper.rb - - ee/app/helpers/ee/releases_helper.rb - - ee/app/helpers/ee/search_helper.rb - - ee/app/helpers/ee/tree_helper.rb - - ee/app/models/approval_state.rb - - ee/app/models/concerns/ee/approvable.rb - - ee/app/models/concerns/ee/project_security_scanners_information.rb - - ee/app/models/concerns/ee/protected_ref_access.rb - - ee/app/models/concerns/insights_feature.rb - - ee/app/models/ee/board.rb - - ee/app/models/ee/ci/build.rb - - ee/app/models/ee/ci/build_dependencies.rb - - ee/app/models/ee/ci/pipeline.rb - - ee/app/models/ee/group.rb - - ee/app/models/ee/group_member.rb - - ee/app/models/ee/issue.rb - - ee/app/models/ee/list.rb - - ee/app/models/ee/merge_request.rb - - ee/app/models/ee/milestone_release.rb - - ee/app/models/ee/namespace.rb - - ee/app/models/ee/namespace_setting.rb - - ee/app/models/ee/project.rb - - ee/app/models/ee/project_ci_cd_setting.rb - - ee/app/models/project_security_setting.rb - - ee/app/policies/compliance_management/framework_policy.rb - - ee/app/policies/ee/group_policy.rb - - ee/app/policies/ee/project_policy.rb - - ee/app/policies/ee/protected_branch_policy.rb - - ee/app/presenters/ee/label_presenter.rb - - ee/app/presenters/merge_request_approver_presenter.rb - - ee/app/serializers/dashboard_operations_project_entity.rb - - ee/app/serializers/ee/environment_entity.rb - - ee/app/serializers/ee/evidences/release_entity.rb - - ee/app/serializers/ee/note_entity.rb - - ee/app/services/boards/epic_boards/update_service.rb - - ee/app/services/ci/audit_variable_change_service.rb - - ee/app/services/dashboard/projects/create_service.rb - - ee/app/services/dashboard/projects/list_service.rb - - ee/app/services/ee/alert_management/http_integrations/create_service.rb - - ee/app/services/ee/audit_event_service.rb - - ee/app/services/ee/boards/issues/list_service.rb - - ee/app/services/ee/boards/lists/create_service.rb - - ee/app/services/ee/boards/update_service.rb - - ee/app/services/ee/ide/schemas_config_service.rb - - ee/app/services/ee/issuable_base_service.rb - - ee/app/services/ee/issue_links/create_service.rb - - ee/app/services/ee/issues/build_service.rb - - ee/app/services/ee/lfs/lock_file_service.rb - - ee/app/services/ee/lfs/unlock_file_service.rb - - ee/app/services/ee/merge_requests/approval_service.rb - - ee/app/services/ee/merge_requests/build_service.rb - - ee/app/services/ee/merge_requests/merge_base_service.rb - - ee/app/services/ee/merge_requests/refresh_service.rb - - ee/app/services/ee/merge_requests/update_service.rb - - ee/app/services/ee/projects/create_service.rb - - ee/app/services/ee/protected_branches/create_service.rb - - ee/app/services/ee/releases/create_evidence_service.rb - - ee/app/services/iterations/create_service.rb - - ee/app/services/iterations/update_service.rb - - ee/app/services/merge_requests/sync_report_approver_approval_rules.rb - - ee/app/services/merge_requests/update_blocks_service.rb - - ee/app/services/projects/mark_for_deletion_service.rb - - ee/app/services/quality_management/test_cases/create_service.rb - - ee/app/services/requirements_management/process_test_reports_service.rb - - ee/app/services/security/store_scans_service.rb - - ee/app/views/projects/_merge_request_approvals_settings.html.haml - - ee/app/views/projects/_merge_request_settings.html.haml - - ee/app/views/projects/_merge_request_settings_description_text.html.haml - - ee/app/views/projects/audit_events/index.html.haml - - ee/app/views/projects/blob/_header_file_locks.html.haml - - ee/app/views/projects/issues/_related_issues.html.haml - - ee/app/views/projects/merge_requests/show.html.haml - - ee/app/views/projects/pipelines/_tabs_content.html.haml - - ee/app/views/projects/protected_branches/ee/_code_owner_approval_form.html.haml - - ee/app/views/projects/protected_branches/ee/_code_owner_approval_table.html.haml - - ee/app/views/projects/protected_branches/ee/_code_owner_approval_table_head.html.haml - - ee/app/views/projects/push_rules/_index.html.haml - - ee/app/views/projects/settings/_default_issue_template.html.haml - - ee/app/views/projects/settings/_marked_for_removal.html.haml - - ee/app/views/projects/settings/_restore.html.haml - - ee/app/views/projects/settings/ci_cd/_auto_rollback.html.haml - - ee/app/views/projects/settings/ci_cd/_pipeline_subscriptions.html.haml - - ee/app/views/projects/settings/operations/_status_page.html.haml - - ee/app/views/projects/settings/repository/_protected_branches.html.haml - - ee/app/views/shared/issuable/_group_bulk_update_sidebar.html.haml - - ee/app/views/shared/issuable/form/_default_templates.html.haml - - ee/app/views/shared/labels/_create_label_help_text.html.haml - - ee/app/views/shared/promotions/_promote_mr_features.html.haml - - ee/app/views/shared/promotions/_promote_repository_features.html.haml - - ee/app/workers/analytics/code_review_metrics_worker.rb - - ee/app/workers/group_saml_group_sync_worker.rb - - ee/lib/ee/api/entities/approval_state.rb - - ee/lib/ee/api/entities/board.rb - - ee/lib/ee/api/entities/issue.rb - - ee/lib/ee/api/entities/project.rb - - ee/lib/ee/api/helpers.rb - - ee/lib/ee/api/internal/kubernetes.rb - - ee/lib/ee/api/projects.rb - - ee/lib/ee/gitlab/alert_management/payload/generic.rb - - ee/lib/ee/gitlab/checks/diff_check.rb - - ee/lib/ee/gitlab/gon_helper.rb - - ee/lib/ee/gitlab/tree_summary.rb - - ee/lib/gitlab/alert_management.rb - - ee/lib/gitlab/ci/pipeline/chain/config/content/compliance.rb - - ee/lib/gitlab/ci/project_config/compliance.rb - - ee/lib/gitlab/code_owners.rb - - ee/lib/gitlab/incident_management.rb - - ee/lib/gitlab/path_locks_finder.rb - - ee/lib/incident_management/incident_sla.rb - - ee/spec/models/instance_security_dashboard_spec.rb - - ee/spec/models/license_spec.rb - - ee/spec/models/project_spec.rb - - lib/api/helpers/related_resources_helpers.rb - - spec/models/concerns/featurable_spec.rb + - 'app/controllers/projects/application_controller.rb' + - 'app/graphql/types/project_type.rb' + - 'app/helpers/events_helper.rb' + - 'app/helpers/labels_helper.rb' + - 'ee/app/controllers/concerns/description_diff_actions.rb' + - 'ee/app/controllers/concerns/ee/boards_actions.rb' + - 'ee/app/controllers/concerns/security_dashboards_permissions.rb' + - 'ee/app/controllers/ee/projects/autocomplete_sources_controller.rb' + - 'ee/app/controllers/ee/projects/issues_controller.rb' + - 'ee/app/controllers/ee/projects/security/configuration_controller.rb' + - 'ee/app/controllers/ee/projects/settings/ci_cd_controller.rb' + - 'ee/app/controllers/ee/projects/settings/operations_controller.rb' + - 'ee/app/controllers/ee/projects/settings/repository_controller.rb' + - 'ee/app/controllers/projects/audit_events_controller.rb' + - 'ee/app/controllers/projects/iterations_controller.rb' + - 'ee/app/controllers/projects/path_locks_controller.rb' + - 'ee/app/controllers/projects/subscriptions_controller.rb' + - 'ee/app/finders/autocomplete/vulnerabilities_autocomplete_finder.rb' + - 'ee/app/finders/ee/alert_management/http_integrations_finder.rb' + - 'ee/app/graphql/ee/types/group_type.rb' + - 'ee/app/graphql/mutations/instance_security_dashboard/remove_project.rb' + - 'ee/app/helpers/ee/application_helper.rb' + - 'ee/app/helpers/ee/boards_helper.rb' + - 'ee/app/helpers/ee/dashboard_helper.rb' + - 'ee/app/helpers/ee/form_helper.rb' + - 'ee/app/helpers/ee/graph_helper.rb' + - 'ee/app/helpers/ee/issues_helper.rb' + - 'ee/app/helpers/ee/lock_helper.rb' + - 'ee/app/helpers/ee/operations_helper.rb' + - 'ee/app/helpers/ee/projects/incidents_helper.rb' + - 'ee/app/helpers/ee/projects_helper.rb' + - 'ee/app/helpers/ee/releases_helper.rb' + - 'ee/app/helpers/ee/search_helper.rb' + - 'ee/app/helpers/ee/tree_helper.rb' + - 'ee/app/models/approval_state.rb' + - 'ee/app/models/concerns/ee/approvable.rb' + - 'ee/app/models/concerns/ee/project_security_scanners_information.rb' + - 'ee/app/models/concerns/ee/protected_ref_access.rb' + - 'ee/app/models/concerns/insights_feature.rb' + - 'ee/app/models/ee/board.rb' + - 'ee/app/models/ee/ci/build.rb' + - 'ee/app/models/ee/ci/build_dependencies.rb' + - 'ee/app/models/ee/ci/pipeline.rb' + - 'ee/app/models/ee/group.rb' + - 'ee/app/models/ee/group_member.rb' + - 'ee/app/models/ee/issue.rb' + - 'ee/app/models/ee/list.rb' + - 'ee/app/models/ee/merge_request.rb' + - 'ee/app/models/ee/milestone_release.rb' + - 'ee/app/models/ee/namespace.rb' + - 'ee/app/models/ee/namespace_setting.rb' + - 'ee/app/models/ee/project.rb' + - 'ee/app/models/ee/project_ci_cd_setting.rb' + - 'ee/app/models/project_security_setting.rb' + - 'ee/app/policies/compliance_management/framework_policy.rb' + - 'ee/app/policies/ee/group_policy.rb' + - 'ee/app/policies/ee/project_policy.rb' + - 'ee/app/policies/ee/protected_branch_policy.rb' + - 'ee/app/presenters/ee/label_presenter.rb' + - 'ee/app/presenters/merge_request_approver_presenter.rb' + - 'ee/app/serializers/dashboard_operations_project_entity.rb' + - 'ee/app/serializers/ee/environment_entity.rb' + - 'ee/app/serializers/ee/evidences/release_entity.rb' + - 'ee/app/serializers/ee/note_entity.rb' + - 'ee/app/services/boards/epic_boards/update_service.rb' + - 'ee/app/services/ci/audit_variable_change_service.rb' + - 'ee/app/services/dashboard/projects/create_service.rb' + - 'ee/app/services/dashboard/projects/list_service.rb' + - 'ee/app/services/ee/alert_management/http_integrations/create_service.rb' + - 'ee/app/services/ee/audit_event_service.rb' + - 'ee/app/services/ee/boards/issues/list_service.rb' + - 'ee/app/services/ee/boards/lists/create_service.rb' + - 'ee/app/services/ee/boards/update_service.rb' + - 'ee/app/services/ee/ide/schemas_config_service.rb' + - 'ee/app/services/ee/issuable_base_service.rb' + - 'ee/app/services/ee/issue_links/create_service.rb' + - 'ee/app/services/ee/issues/build_service.rb' + - 'ee/app/services/ee/lfs/lock_file_service.rb' + - 'ee/app/services/ee/lfs/unlock_file_service.rb' + - 'ee/app/services/ee/merge_requests/build_service.rb' + - 'ee/app/services/ee/merge_requests/merge_base_service.rb' + - 'ee/app/services/ee/merge_requests/refresh_service.rb' + - 'ee/app/services/ee/projects/create_service.rb' + - 'ee/app/services/ee/protected_branches/create_service.rb' + - 'ee/app/services/ee/releases/create_evidence_service.rb' + - 'ee/app/services/iterations/create_service.rb' + - 'ee/app/services/iterations/update_service.rb' + - 'ee/app/services/merge_requests/update_blocks_service.rb' + - 'ee/app/services/projects/mark_for_deletion_service.rb' + - 'ee/app/services/requirements_management/process_test_reports_service.rb' + - 'ee/app/services/security/store_scans_service.rb' + - 'ee/app/workers/analytics/code_review_metrics_worker.rb' + - 'ee/app/workers/group_saml_group_sync_worker.rb' + - 'ee/lib/ee/api/entities/approval_state.rb' + - 'ee/lib/ee/api/entities/board.rb' + - 'ee/lib/ee/api/entities/issue.rb' + - 'ee/lib/ee/api/entities/project.rb' + - 'ee/lib/ee/api/helpers.rb' + - 'ee/lib/ee/api/projects.rb' + - 'ee/lib/ee/gitlab/alert_management/payload/generic.rb' + - 'ee/lib/ee/gitlab/checks/diff_check.rb' + - 'ee/lib/ee/gitlab/gon_helper.rb' + - 'ee/lib/ee/gitlab/tree_summary.rb' + - 'ee/lib/gitlab/alert_management.rb' + - 'ee/lib/gitlab/ci/project_config/compliance.rb' + - 'ee/lib/gitlab/code_owners.rb' + - 'ee/lib/gitlab/path_locks_finder.rb' + - 'ee/lib/incident_management/incident_sla.rb' + - 'ee/spec/models/instance_security_dashboard_spec.rb' + - 'ee/spec/models/license_spec.rb' + - 'ee/spec/models/project_spec.rb' + - 'lib/api/helpers/related_resources_helpers.rb' + - 'spec/models/concerns/featurable_spec.rb' diff --git a/.rubocop_todo/gitlab/json.yml b/.rubocop_todo/gitlab/json.yml deleted file mode 100644 index 190778a3de7..00000000000 --- a/.rubocop_todo/gitlab/json.yml +++ /dev/null @@ -1,465 +0,0 @@ ---- -# Cop supports --autocorrect. -Gitlab/Json: - Exclude: - - 'app/controllers/admin/application_settings_controller.rb' - - 'app/controllers/concerns/authenticates_with_two_factor.rb' - - 'app/controllers/projects/commit_controller.rb' - - 'app/controllers/projects/google_cloud/configuration_controller.rb' - - 'app/controllers/projects/google_cloud/databases_controller.rb' - - 'app/controllers/projects/google_cloud/deployments_controller.rb' - - 'app/controllers/projects/google_cloud/gcp_regions_controller.rb' - - 'app/controllers/projects/google_cloud/service_accounts_controller.rb' - - 'app/controllers/projects/graphs_controller.rb' - - 'app/controllers/projects/merge_requests_controller.rb' - - 'app/controllers/projects/notes_controller.rb' - - 'app/controllers/projects/settings/ci_cd_controller.rb' - - 'app/controllers/projects/templates_controller.rb' - - 'app/controllers/projects_controller.rb' - - 'app/controllers/search_controller.rb' - - 'app/helpers/access_tokens_helper.rb' - - 'app/helpers/application_settings_helper.rb' - - 'app/helpers/breadcrumbs_helper.rb' - - 'app/helpers/ci/builds_helper.rb' - - 'app/helpers/ci/pipelines_helper.rb' - - 'app/helpers/compare_helper.rb' - - 'app/helpers/emails_helper.rb' - - 'app/helpers/environment_helper.rb' - - 'app/helpers/groups_helper.rb' - - 'app/helpers/ide_helper.rb' - - 'app/helpers/integrations_helper.rb' - - 'app/helpers/invite_members_helper.rb' - - 'app/helpers/issuables_description_templates_helper.rb' - - 'app/helpers/issuables_helper.rb' - - 'app/helpers/jira_connect_helper.rb' - - 'app/helpers/learn_gitlab_helper.rb' - - 'app/helpers/namespaces_helper.rb' - - 'app/helpers/notes_helper.rb' - - 'app/helpers/operations_helper.rb' - - 'app/helpers/packages_helper.rb' - - 'app/helpers/projects/project_members_helper.rb' - - 'app/helpers/projects_helper.rb' - - 'app/helpers/search_helper.rb' - - 'app/helpers/terms_helper.rb' - - 'app/helpers/users_helper.rb' - - 'app/mailers/emails/members.rb' - - 'app/presenters/packages/composer/packages_presenter.rb' - - 'app/presenters/projects/security/configuration_presenter.rb' - - 'app/workers/google_cloud/create_cloudsql_instance_worker.rb' - - 'config/initializers/rack_multipart_patch.rb' - - 'ee/app/controllers/admin/geo/nodes_controller.rb' - - 'ee/app/controllers/ee/admin/application_settings_controller.rb' - - 'ee/app/controllers/ee/search_controller.rb' - - 'ee/app/controllers/subscriptions_controller.rb' - - 'ee/app/graphql/types/json_string_type.rb' - - 'ee/app/helpers/billing_plans_helper.rb' - - 'ee/app/helpers/ee/environments_helper.rb' - - 'ee/app/helpers/ee/geo_helper.rb' - - 'ee/app/helpers/ee/groups/analytics/cycle_analytics_helper.rb' - - 'ee/app/helpers/ee/invite_members_helper.rb' - - 'ee/app/helpers/ee/operations_helper.rb' - - 'ee/app/helpers/ee/projects/pipeline_helper.rb' - - 'ee/app/helpers/ee/projects_helper.rb' - - 'ee/app/helpers/ee/security_orchestration_helper.rb' - - 'ee/app/helpers/groups/ldap_sync_helper.rb' - - 'ee/app/helpers/groups/security_features_helper.rb' - - 'ee/app/helpers/incident_management/oncall_schedule_helper.rb' - - 'ee/app/helpers/projects/on_demand_scans_helper.rb' - - 'ee/app/helpers/projects/security/dast_profiles_helper.rb' - - 'ee/app/helpers/security_helper.rb' - - 'ee/app/helpers/subscriptions_helper.rb' - - 'ee/app/helpers/users/identity_verification_helper.rb' - - 'ee/app/helpers/vulnerabilities_helper.rb' - - 'ee/app/models/product_analytics/jitsu_authentication.rb' - - 'ee/app/presenters/epic_presenter.rb' - - 'ee/app/services/arkose/blocked_users_report_service.rb' - - 'ee/app/services/elastic/indexing_control_service.rb' - - 'ee/app/services/elastic/process_bookkeeping_service.rb' - - 'ee/app/services/security/token_revocation_service.rb' - - 'ee/app/services/status_page/publish_base_service.rb' - - 'ee/app/services/upcoming_reconciliations/update_service.rb' - - 'ee/app/services/vulnerabilities/create_service_base.rb' - - 'ee/app/workers/concerns/elastic/migration_state.rb' - - 'ee/app/workers/sync_seat_link_request_worker.rb' - - 'ee/db/fixtures/development/20_vulnerabilities.rb' - - 'ee/lib/api/analytics/product_analytics.rb' - - 'ee/lib/ee/gitlab/background_migration/update_vulnerability_occurrences_location.rb' - - 'ee/lib/gitlab/elastic/indexer.rb' - - 'ee/lib/gitlab/geo/signed_data.rb' - - 'ee/lib/gitlab/subscription_portal/clients/graphql.rb' - - 'ee/lib/gitlab/subscription_portal/clients/rest.rb' - - 'ee/lib/slack/api.rb' - - 'ee/lib/tasks/gitlab/elastic.rake' - - 'ee/lib/tasks/gitlab/spdx.rake' - - 'ee/spec/controllers/admin/application_settings_controller_spec.rb' - - 'ee/spec/controllers/countries_controller_spec.rb' - - 'ee/spec/controllers/country_states_controller_spec.rb' - - 'ee/spec/controllers/ee/search_controller_spec.rb' - - 'ee/spec/controllers/groups/analytics/cycle_analytics_controller_spec.rb' - - 'ee/spec/controllers/groups/security/policies_controller_spec.rb' - - 'ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb' - - 'ee/spec/controllers/subscriptions_controller_spec.rb' - - 'ee/spec/factories/vulnerabilities/findings.rb' - - 'ee/spec/features/admin/subscriptions/admin_views_subscription_spec.rb' - - 'ee/spec/features/billings/billing_plans_spec.rb' - - 'ee/spec/features/billings/extend_reactivate_trial_spec.rb' - - 'ee/spec/features/billings/qrtly_reconciliation_alert_spec.rb' - - 'ee/spec/features/projects/integrations/jira_issues_list_spec.rb' - - 'ee/spec/features/projects/integrations/user_activates_github_spec.rb' - - 'ee/spec/features/projects/integrations/user_activates_jira_spec.rb' - - 'ee/spec/frontend/fixtures/dast_profiles.rb' - - 'ee/spec/frontend/fixtures/epic.rb' - - 'ee/spec/graphql/api/vulnerabilities_spec.rb' - - 'ee/spec/graphql/types/json_string_type_spec.rb' - - 'ee/spec/helpers/ee/groups/group_members_helper_spec.rb' - - 'ee/spec/helpers/ee/projects/pipeline_helper_spec.rb' - - 'ee/spec/helpers/ee/security_orchestration_helper_spec.rb' - - 'ee/spec/helpers/incident_management/oncall_schedule_helper_spec.rb' - - 'ee/spec/helpers/projects/on_demand_scans_helper_spec.rb' - - 'ee/spec/helpers/projects/security/dast_profiles_helper_spec.rb' - - 'ee/spec/helpers/users/identity_verification_helper_spec.rb' - - 'ee/spec/lib/ee/gitlab/background_migration/drop_invalid_remediations_spec.rb' - - 'ee/spec/lib/ee/gitlab/background_migration/update_vulnerability_occurrences_location_spec.rb' - - 'ee/spec/lib/gitlab/analytics/cycle_analytics/request_params_spec.rb' - - 'ee/spec/lib/gitlab/ci/parsers/license_compliance/license_scanning_spec.rb' - - 'ee/spec/lib/gitlab/ci/parsers/security/dast_spec.rb' - - 'ee/spec/lib/gitlab/ci/parsers/security/dependency_scanning_spec.rb' - - 'ee/spec/lib/gitlab/elastic/bulk_indexer_spec.rb' - - 'ee/spec/lib/gitlab/elastic/indexer_spec.rb' - - 'ee/spec/lib/gitlab/geo/replication/blob_downloader_spec.rb' - - 'ee/spec/lib/gitlab/tracking/standard_context_spec.rb' - - 'ee/spec/lib/slack/api_spec.rb' - - 'ee/spec/migrations/update_vulnerability_occurrences_location_spec.rb' - - 'ee/spec/models/ee/integrations/jira_spec.rb' - - 'ee/spec/models/gitlab/seat_link_data_spec.rb' - - 'ee/spec/models/group_member_spec.rb' - - 'ee/spec/models/integrations/github/status_notifier_spec.rb' - - 'ee/spec/models/integrations/github_spec.rb' - - 'ee/spec/models/license_spec.rb' - - 'ee/spec/models/product_analytics/jitsu_authentication_spec.rb' - - 'ee/spec/models/vulnerabilities/finding_spec.rb' - - 'ee/spec/presenters/audit_event_presenter_spec.rb' - - 'ee/spec/requests/api/analytics/product_analytics_spec.rb' - - 'ee/spec/requests/api/experiments_spec.rb' - - 'ee/spec/requests/api/geo_spec.rb' - - 'ee/spec/requests/api/graphql/mutations/alert_management/http_integration/create_spec.rb' - - 'ee/spec/requests/api/graphql/mutations/alert_management/http_integration/update_spec.rb' - - 'ee/spec/requests/api/graphql/mutations/vulnerabilities/create_external_issue_link_spec.rb' - - 'ee/spec/requests/api/graphql/project/alert_management/http_integrations_spec.rb' - - 'ee/spec/requests/api/graphql/vulnerabilities/external_issue_links_spec.rb' - - 'ee/spec/requests/api/graphql/vulnerabilities/location_spec.rb' - - 'ee/spec/requests/api/integrations/slack/events_spec.rb' - - 'ee/spec/requests/api/releases_spec.rb' - - 'ee/spec/requests/api/settings_spec.rb' - - 'ee/spec/requests/git_http_geo_spec.rb' - - 'ee/spec/requests/projects/on_demand_scans_controller_spec.rb' - - 'ee/spec/requests/projects/security/policies_controller_spec.rb' - - 'ee/spec/requests/users/identity_verification_controller_spec.rb' - - 'ee/spec/serializers/clusters/environment_entity_spec.rb' - - 'ee/spec/serializers/clusters/environment_serializer_spec.rb' - - 'ee/spec/serializers/dependency_list_serializer_spec.rb' - - 'ee/spec/serializers/epics/related_epic_entity_spec.rb' - - 'ee/spec/serializers/evidences/evidence_entity_spec.rb' - - 'ee/spec/serializers/issue_serializer_spec.rb' - - 'ee/spec/serializers/licenses_list_serializer_spec.rb' - - 'ee/spec/serializers/member_entity_spec.rb' - - 'ee/spec/serializers/member_user_entity_spec.rb' - - 'ee/spec/serializers/status_page/incident_entity_spec.rb' - - 'ee/spec/serializers/status_page/incident_serializer_spec.rb' - - 'ee/spec/serializers/test_reports_comparer_serializer_spec.rb' - - 'ee/spec/services/arkose/blocked_users_report_service_spec.rb' - - 'ee/spec/services/arkose/token_verification_service_spec.rb' - - 'ee/spec/services/gitlab_subscriptions/fetch_subscription_plans_service_spec.rb' - - 'ee/spec/services/integrations/slack_events/app_home_opened_service_spec.rb' - - 'ee/spec/services/jira/requests/issues/list_service_spec.rb' - - 'ee/spec/services/projects/slack_application_install_service_spec.rb' - - 'ee/spec/services/security/token_revocation_service_spec.rb' - - 'ee/spec/support/helpers/subscription_portal_helpers.rb' - - 'ee/spec/support/shared_examples/controllers/cluster_metrics_shared_examples.rb' - - 'ee/spec/support/shared_examples/requests/api/project_approval_rules_api_shared_examples.rb' - - 'ee/spec/support/shared_examples/status_page/publish_shared_examples.rb' - - 'ee/spec/tasks/gitlab/spdx_rake_spec.rb' - - 'ee/spec/workers/audit_events/audit_event_streaming_worker_spec.rb' - - 'ee/spec/workers/scan_security_report_secrets_worker_spec.rb' - - 'ee/spec/workers/sync_seat_link_request_worker_spec.rb' - - 'ee/spec/workers/vulnerability_exports/export_worker_spec.rb' - - 'lib/api/api.rb' - - 'lib/api/feature_flags_user_lists.rb' - - 'lib/api/helpers.rb' - - 'lib/api/terraform/state.rb' - - 'lib/atlassian/jira_connect/client.rb' - - 'lib/atlassian/jira_connect/serializers/base_entity.rb' - - 'lib/backup/gitaly_backup.rb' - - 'lib/bitbucket_server/client.rb' - - 'lib/bulk_imports/clients/graphql.rb' - - 'lib/error_tracking/sentry_client.rb' - - 'lib/gitlab/alert_management/payload/prometheus.rb' - - 'lib/gitlab/analytics/cycle_analytics/request_params.rb' - - 'lib/gitlab/auth/otp/strategies/forti_authenticator/manual_otp.rb' - - 'lib/gitlab/auth/otp/strategies/forti_authenticator/push_otp.rb' - - 'lib/gitlab/auth/otp/strategies/forti_token_cloud.rb' - - 'lib/gitlab/background_migration/fix_vulnerability_occurrences_with_hashes_as_raw_metadata.rb' - - 'lib/gitlab/bitbucket_import/importer.rb' - - 'lib/gitlab/bitbucket_server_import/importer.rb' - - 'lib/gitlab/chat/responder/mattermost.rb' - - 'lib/gitlab/chat/responder/slack.rb' - - 'lib/gitlab/chat_name_token.rb' - - 'lib/gitlab/ci/ansi2html.rb' - - 'lib/gitlab/ci/ansi2json/state.rb' - - 'lib/gitlab/ci/build/releaser.rb' - - 'lib/gitlab/ci/config/external/mapper.rb' - - 'lib/gitlab/ci/pipeline/chain/validate/external.rb' - - 'lib/gitlab/ci/reports/security/finding.rb' - - 'lib/gitlab/composer/cache.rb' - - 'lib/gitlab/database/background_migration/batched_migration.rb' - - 'lib/gitlab/database/background_migration_job.rb' - - 'lib/gitlab/database/migration_helpers.rb' - - 'lib/gitlab/database/migrations/batched_background_migration_helpers.rb' - - 'lib/gitlab/database/migrations/instrumentation.rb' - - 'lib/gitlab/database/migrations/runner.rb' - - 'lib/gitlab/database/postgres_hll/buckets.rb' - - 'lib/gitlab/database/reindexing/grafana_notifier.rb' - - 'lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb' - - 'lib/gitlab/diff/highlight_cache.rb' - - 'lib/gitlab/discussions_diff/highlight_cache.rb' - - 'lib/gitlab/external_authorization/client.rb' - - 'lib/gitlab/file_hook.rb' - - 'lib/gitlab/gitaly_client/conflicts_service.rb' - - 'lib/gitlab/graphql/pagination/active_record_array_connection.rb' - - 'lib/gitlab/graphql/pagination/keyset/connection.rb' - - 'lib/gitlab/health_checks/middleware.rb' - - 'lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb' - - 'lib/gitlab/import_export/json/legacy_writer.rb' - - 'lib/gitlab/import_export/json/ndjson_writer.rb' - - 'lib/gitlab/import_export/lfs_saver.rb' - - 'lib/gitlab/jira/http_client.rb' - - 'lib/gitlab/json_cache.rb' - - 'lib/gitlab/legacy_github_import/importer.rb' - - 'lib/gitlab/lfs/client.rb' - - 'lib/gitlab/merge_requests/mergeability/redis_interface.rb' - - 'lib/gitlab/middleware/read_only/controller.rb' - - 'lib/gitlab/patch/hangouts_chat_http_override.rb' - - 'lib/gitlab/puma_logging/json_formatter.rb' - - 'lib/gitlab/sidekiq_config.rb' - - 'lib/gitlab/sidekiq_daemon/monitor.rb' - - 'lib/gitlab/sidekiq_logging/json_formatter.rb' - - 'lib/gitlab/usage/metrics/aggregates/sources/postgres_hll.rb' - - 'lib/gitlab/utils/json_size_estimator.rb' - - 'lib/gitlab/version_info.rb' - - 'lib/gitlab/workhorse.rb' - - 'lib/mattermost/command.rb' - - 'lib/mattermost/team.rb' - - 'lib/microsoft_teams/notifier.rb' - - 'lib/tasks/gitlab/background_migrations.rake' - - 'lib/version_check.rb' - - 'spec/commands/diagnostic_reports/uploader_smoke_spec.rb' - - 'spec/controllers/admin/integrations_controller_spec.rb' - - 'spec/controllers/concerns/product_analytics_tracking_spec.rb' - - 'spec/controllers/groups/settings/integrations_controller_spec.rb' - - 'spec/controllers/jira_connect/subscriptions_controller_spec.rb' - - 'spec/controllers/profiles/personal_access_tokens_controller_spec.rb' - - 'spec/controllers/projects/alerting/notifications_controller_spec.rb' - - 'spec/controllers/projects/jobs_controller_spec.rb' - - 'spec/controllers/projects/merge_requests/drafts_controller_spec.rb' - - 'spec/factories/ci/pipeline_artifacts.rb' - - 'spec/features/dashboard/issues_spec.rb' - - 'spec/features/error_tracking/user_filters_errors_by_status_spec.rb' - - 'spec/features/file_uploads/graphql_add_design_spec.rb' - - 'spec/features/groups/dependency_proxy_for_containers_spec.rb' - - 'spec/features/markdown/copy_as_gfm_spec.rb' - - 'spec/features/markdown/metrics_spec.rb' - - 'spec/features/projects/integrations/user_activates_jira_spec.rb' - - 'spec/features/projects/settings/monitor_settings_spec.rb' - - 'spec/frontend/fixtures/timezones.rb' - - 'spec/helpers/access_tokens_helper_spec.rb' - - 'spec/helpers/breadcrumbs_helper_spec.rb' - - 'spec/helpers/ci/builds_helper_spec.rb' - - 'spec/helpers/environment_helper_spec.rb' - - 'spec/helpers/environments_helper_spec.rb' - - 'spec/helpers/groups/group_members_helper_spec.rb' - - 'spec/helpers/groups_helper_spec.rb' - - 'spec/helpers/ide_helper_spec.rb' - - 'spec/helpers/invite_members_helper_spec.rb' - - 'spec/helpers/issuables_description_templates_helper_spec.rb' - - 'spec/helpers/listbox_helper_spec.rb' - - 'spec/helpers/namespaces_helper_spec.rb' - - 'spec/helpers/projects/project_members_helper_spec.rb' - - 'spec/helpers/projects_helper_spec.rb' - - 'spec/initializers/hangouts_chat_http_override_spec.rb' - - 'spec/lib/api/entities/merge_request_basic_spec.rb' - - 'spec/lib/api/helpers/caching_spec.rb' - - 'spec/lib/api/helpers/common_helpers_spec.rb' - - 'spec/lib/atlassian/jira_connect/client_spec.rb' - - 'spec/lib/atlassian/jira_connect/serializers/build_entity_spec.rb' - - 'spec/lib/atlassian/jira_connect/serializers/deployment_entity_spec.rb' - - 'spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb' - - 'spec/lib/atlassian/jira_connect/serializers/repository_entity_spec.rb' - - 'spec/lib/bitbucket_server/connection_spec.rb' - - 'spec/lib/bulk_imports/common/pipelines/lfs_objects_pipeline_spec.rb' - - 'spec/lib/bulk_imports/projects/pipelines/snippets_pipeline_spec.rb' - - 'spec/lib/container_registry/client_spec.rb' - - 'spec/lib/container_registry/gitlab_api_client_spec.rb' - - 'spec/lib/gitlab/background_migration/encrypt_integration_properties_spec.rb' - - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' - - 'spec/lib/gitlab/chat/responder/mattermost_spec.rb' - - 'spec/lib/gitlab/chat/responder/slack_spec.rb' - - 'spec/lib/gitlab/ci/build/releaser_spec.rb' - - 'spec/lib/gitlab/ci/parsers/accessibility/pa11y_spec.rb' - - 'spec/lib/gitlab/ci/parsers/codequality/code_climate_spec.rb' - - 'spec/lib/gitlab/ci/parsers/coverage/sax_document_spec.rb' - - 'spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb' - - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - - 'spec/lib/gitlab/ci/parsers/test/junit_spec.rb' - - 'spec/lib/gitlab/ci/runner_upgrade_check_spec.rb' - - 'spec/lib/gitlab/composer/cache_spec.rb' - - 'spec/lib/gitlab/composer/version_index_spec.rb' - - 'spec/lib/gitlab/data_builder/pipeline_spec.rb' - - 'spec/lib/gitlab/database/load_balancing/sidekiq_server_middleware_spec.rb' - - 'spec/lib/gitlab/database/postgres_hll/buckets_spec.rb' - - 'spec/lib/gitlab/database/reindexing/grafana_notifier_spec.rb' - - 'spec/lib/gitlab/diff/position_spec.rb' - - 'spec/lib/gitlab/diff/stats_cache_spec.rb' - - 'spec/lib/gitlab/discussions_diff/highlight_cache_spec.rb' - - 'spec/lib/gitlab/error_tracking/context_payload_generator_spec.rb' - - 'spec/lib/gitlab/error_tracking/processor/sidekiq_processor_spec.rb' - - 'spec/lib/gitlab/external_authorization/client_spec.rb' - - 'spec/lib/gitlab/external_authorization/response_spec.rb' - - 'spec/lib/gitlab/file_hook_spec.rb' - - 'spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb' - - 'spec/lib/gitlab/github_import/client_spec.rb' - - 'spec/lib/gitlab/gitlab_import/importer_spec.rb' - - 'spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb' - - 'spec/lib/gitlab/harbor/client_spec.rb' - - 'spec/lib/gitlab/import_export/after_export_strategies/base_after_export_strategy_spec.rb' - - 'spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb' - - 'spec/lib/gitlab/json_cache_spec.rb' - - 'spec/lib/gitlab/legacy_github_import/client_spec.rb' - - 'spec/lib/gitlab/legacy_github_import/importer_spec.rb' - - 'spec/lib/gitlab/lfs/client_spec.rb' - - 'spec/lib/gitlab/merge_requests/mergeability/redis_interface_spec.rb' - - 'spec/lib/gitlab/middleware/multipart_spec.rb' - - 'spec/lib/gitlab/sidekiq_migrate_jobs_spec.rb' - - 'spec/lib/gitlab/tracking/service_ping_context_spec.rb' - - 'spec/lib/gitlab/tracking/standard_context_spec.rb' - - 'spec/lib/gitlab/tracking_spec.rb' - - 'spec/lib/gitlab/usage/service_ping/legacy_metric_timing_decorator_spec.rb' - - 'spec/lib/gitlab/utils/json_size_estimator_spec.rb' - - 'spec/lib/gitlab/version_info_spec.rb' - - 'spec/lib/gitlab/webpack/manifest_spec.rb' - - 'spec/lib/gitlab/workhorse_spec.rb' - - 'spec/lib/gitlab/zentao/client_spec.rb' - - 'spec/lib/grafana/client_spec.rb' - - 'spec/lib/json_web_token/hmac_token_spec.rb' - - 'spec/lib/mattermost/command_spec.rb' - - 'spec/lib/mattermost/team_spec.rb' - - 'spec/lib/microsoft_teams/notifier_spec.rb' - - 'spec/lib/object_storage/direct_upload_spec.rb' - - 'spec/lib/service_ping/devops_report_spec.rb' - - 'spec/lib/version_check_spec.rb' - - 'spec/mailers/notify_spec.rb' - - 'spec/migrations/20220204194347_encrypt_integration_properties_spec.rb' - - 'spec/migrations/20220412143552_consume_remaining_encrypt_integration_property_jobs_spec.rb' - - 'spec/models/blob_viewer/package_json_spec.rb' - - 'spec/models/ci/runner_spec.rb' - - 'spec/models/concerns/prometheus_adapter_spec.rb' - - 'spec/models/concerns/redis_cacheable_spec.rb' - - 'spec/models/concerns/sensitive_serializable_hash_spec.rb' - - 'spec/models/diff_discussion_spec.rb' - - 'spec/models/diff_note_spec.rb' - - 'spec/models/hooks/web_hook_spec.rb' - - 'spec/models/integrations/datadog_spec.rb' - - 'spec/models/integrations/jira_spec.rb' - - 'spec/models/integrations/mattermost_slash_commands_spec.rb' - - 'spec/models/integrations/mock_ci_spec.rb' - - 'spec/models/merge_request_diff_commit_spec.rb' - - 'spec/models/packages/composer/metadatum_spec.rb' - - 'spec/models/terraform/state_spec.rb' - - 'spec/presenters/packages/composer/packages_presenter_spec.rb' - - 'spec/requests/api/ci/runner/jobs_request_post_spec.rb' - - 'spec/requests/api/composer_packages_spec.rb' - - 'spec/requests/api/conan_instance_packages_spec.rb' - - 'spec/requests/api/conan_project_packages_spec.rb' - - 'spec/requests/api/container_registry_event_spec.rb' - - 'spec/requests/api/graphql/mutations/design_management/upload_spec.rb' - - 'spec/requests/api/integrations/jira_connect/subscriptions_spec.rb' - - 'spec/requests/api/internal/base_spec.rb' - - 'spec/requests/api/merge_requests_spec.rb' - - 'spec/requests/api/namespaces_spec.rb' - - 'spec/requests/api/project_snapshots_spec.rb' - - 'spec/requests/groups/settings/access_tokens_controller_spec.rb' - - 'spec/requests/projects/incident_management/pagerduty_incidents_spec.rb' - - 'spec/requests/projects/settings/access_tokens_controller_spec.rb' - - 'spec/requests/users_controller_spec.rb' - - 'spec/requests/whats_new_controller_spec.rb' - - 'spec/scripts/pipeline_test_report_builder_spec.rb' - - 'spec/serializers/ci/dag_job_entity_spec.rb' - - 'spec/serializers/ci/dag_job_group_entity_spec.rb' - - 'spec/serializers/ci/dag_pipeline_entity_spec.rb' - - 'spec/serializers/ci/dag_pipeline_serializer_spec.rb' - - 'spec/serializers/ci/dag_stage_entity_spec.rb' - - 'spec/serializers/ci/daily_build_group_report_result_serializer_spec.rb' - - 'spec/serializers/ci/lint/result_serializer_spec.rb' - - 'spec/serializers/ci/trigger_entity_spec.rb' - - 'spec/serializers/ci/trigger_serializer_spec.rb' - - 'spec/serializers/diff_line_serializer_spec.rb' - - 'spec/serializers/evidences/evidence_entity_spec.rb' - - 'spec/serializers/feature_flags_client_serializer_spec.rb' - - 'spec/serializers/group_link/group_group_link_entity_spec.rb' - - 'spec/serializers/group_link/group_group_link_serializer_spec.rb' - - 'spec/serializers/group_link/group_link_entity_spec.rb' - - 'spec/serializers/group_link/project_group_link_entity_spec.rb' - - 'spec/serializers/group_link/project_group_link_serializer_spec.rb' - - 'spec/serializers/member_entity_spec.rb' - - 'spec/serializers/member_serializer_spec.rb' - - 'spec/serializers/member_user_entity_spec.rb' - - 'spec/serializers/test_reports_comparer_serializer_spec.rb' - - 'spec/services/ci/runners/process_runner_version_update_service_spec.rb' - - 'spec/services/draft_notes/create_service_spec.rb' - - 'spec/services/error_tracking/issue_details_service_spec.rb' - - 'spec/services/error_tracking/issue_latest_event_service_spec.rb' - - 'spec/services/error_tracking/list_issues_service_spec.rb' - - 'spec/services/git/branch_push_service_spec.rb' - - 'spec/services/jira/requests/projects/list_service_spec.rb' - - 'spec/services/metrics/dashboard/transient_embed_service_spec.rb' - - 'spec/services/packages/composer/create_package_service_spec.rb' - - 'spec/services/packages/rubygems/metadata_extraction_service_spec.rb' - - 'spec/services/projects/container_repository/third_party/cleanup_tags_service_spec.rb' - - 'spec/services/projects/lfs_pointers/lfs_download_link_list_service_spec.rb' - - 'spec/services/service_ping/submit_service_ping_service_spec.rb' - - 'spec/services/webauthn/authenticate_service_spec.rb' - - 'spec/services/webauthn/register_service_spec.rb' - - 'spec/support/frontend_fixtures.rb' - - 'spec/support/google_api/cloud_platform_helpers.rb' - - 'spec/support/helpers/ci_artifact_metadata_generator.rb' - - 'spec/support/helpers/dependency_proxy_helpers.rb' - - 'spec/support/helpers/fake_webauthn_device.rb' - - 'spec/support/helpers/features/two_factor_helpers.rb' - - 'spec/support/helpers/graphql_helpers.rb' - - 'spec/support/helpers/input_helper.rb' - - 'spec/support/helpers/jira_integration_helpers.rb' - - 'spec/support/helpers/kubernetes_helpers.rb' - - 'spec/support/helpers/prometheus_helpers.rb' - - 'spec/support/helpers/sentry_client_helpers.rb' - - 'spec/support/helpers/usage_data_helpers.rb' - - 'spec/support/import_export/configuration_helper.rb' - - 'spec/support/shared_contexts/bulk_imports_requests_shared_context.rb' - - 'spec/support/shared_contexts/features/error_tracking_shared_context.rb' - - 'spec/support/shared_contexts/prometheus/alert_shared_context.rb' - - 'spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb' - - 'spec/support/shared_examples/blocks_unsafe_serialization_shared_examples.rb' - - 'spec/support/shared_examples/controllers/rate_limited_endpoint_shared_examples.rb' - - 'spec/support/shared_examples/controllers/snowplow_event_tracking_examples.rb' - - 'spec/support/shared_examples/harbor/artifacts_controller_shared_examples.rb' - - 'spec/support/shared_examples/harbor/repositories_controller_shared_examples.rb' - - 'spec/support/shared_examples/harbor/tags_controller_shared_examples.rb' - - 'spec/support/shared_examples/models/diff_positionable_note_shared_examples.rb' - - 'spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb' - - 'spec/support/shared_examples/requests/rack_attack_shared_examples.rb' - - 'spec/support_specs/helpers/graphql_helpers_spec.rb' - - 'spec/tasks/gitlab/update_templates_rake_spec.rb' - - 'spec/tasks/gitlab/usage_data_rake_spec.rb' - - 'spec/tooling/lib/tooling/kubernetes_client_spec.rb' - - 'spec/tooling/rspec_flaky/listener_spec.rb' - - 'spec/workers/ci/runners/process_runner_version_update_worker_spec.rb' - - 'spec/workers/gitlab/jira_import/stage/import_labels_worker_spec.rb' - - 'spec/workers/packages/composer/cache_update_worker_spec.rb' diff --git a/.rubocop_todo/gitlab/namespaced_class.yml b/.rubocop_todo/gitlab/namespaced_class.yml index 3fb2df623e0..2d39f6053db 100644 --- a/.rubocop_todo/gitlab/namespaced_class.yml +++ b/.rubocop_todo/gitlab/namespaced_class.yml @@ -162,9 +162,6 @@ Gitlab/NamespacedClass: - 'app/models/epic.rb' - 'app/models/event.rb' - 'app/models/event_collection.rb' - - 'app/models/experiment.rb' - - 'app/models/experiment_subject.rb' - - 'app/models/experiment_user.rb' - 'app/models/exported_protected_branch.rb' - 'app/models/external_issue.rb' - 'app/models/external_pull_request.rb' @@ -396,15 +393,15 @@ Gitlab/NamespacedClass: - 'app/policies/personal_access_token_policy.rb' - 'app/policies/personal_snippet_policy.rb' - 'app/policies/project_ci_cd_setting_policy.rb' + - 'app/policies/project_hook_policy.rb' - 'app/policies/project_label_policy.rb' - 'app/policies/project_member_policy.rb' - 'app/policies/project_policy.rb' - 'app/policies/project_snippet_policy.rb' - 'app/policies/project_statistics_policy.rb' - - 'app/policies/project_hook_policy.rb' - 'app/policies/prometheus_alert_policy.rb' - - 'app/policies/protected_branch_policy.rb' - 'app/policies/protected_branch_access_policy.rb' + - 'app/policies/protected_branch_policy.rb' - 'app/policies/release_policy.rb' - 'app/policies/repository_policy.rb' - 'app/policies/resource_label_event_policy.rb' @@ -472,8 +469,6 @@ Gitlab/NamespacedClass: - 'app/serializers/base_discussion_entity.rb' - 'app/serializers/base_serializer.rb' - 'app/serializers/blob_entity.rb' - - 'app/serializers/board_serializer.rb' - - 'app/serializers/board_simple_entity.rb' - 'app/serializers/build_action_entity.rb' - 'app/serializers/build_artifact_entity.rb' - 'app/serializers/build_coverage_entity.rb' @@ -497,8 +492,6 @@ Gitlab/NamespacedClass: - 'app/serializers/container_tag_entity.rb' - 'app/serializers/container_tags_serializer.rb' - 'app/serializers/context_commits_diff_entity.rb' - - 'app/serializers/current_board_entity.rb' - - 'app/serializers/current_board_serializer.rb' - 'app/serializers/current_user_entity.rb' - 'app/serializers/deploy_keys_project_entity.rb' - 'app/serializers/deployment_cluster_entity.rb' @@ -690,7 +683,7 @@ Gitlab/NamespacedClass: - 'app/validators/addressable_url_validator.rb' - 'app/validators/any_field_validator.rb' - 'app/validators/array_members_validator.rb' - - 'app/validators/branch_filter_validator.rb' + - 'app/validators/bytesize_validator.rb' - 'app/validators/certificate_fingerprint_validator.rb' - 'app/validators/certificate_key_validator.rb' - 'app/validators/certificate_validator.rb' @@ -725,15 +718,12 @@ Gitlab/NamespacedClass: - 'app/validators/top_level_group_validator.rb' - 'app/validators/untrusted_regexp_validator.rb' - 'app/validators/x509_certificate_credentials_validator.rb' - - 'app/validators/bytesize_validator.rb' - 'app/workers/admin_email_worker.rb' - 'app/workers/approve_blocked_pending_approval_users_worker.rb' - - 'app/workers/archive_trace_worker.rb' - 'app/workers/authorized_keys_worker.rb' - 'app/workers/authorized_projects_worker.rb' - 'app/workers/auto_merge_process_worker.rb' - 'app/workers/background_migration_worker.rb' - - 'app/workers/build_finished_worker.rb' - 'app/workers/build_hooks_worker.rb' - 'app/workers/build_queue_worker.rb' - 'app/workers/build_success_worker.rb' @@ -964,13 +954,13 @@ Gitlab/NamespacedClass: - 'ee/app/policies/dast_site_validation_policy.rb' - 'ee/app/policies/epic_policy.rb' - 'ee/app/policies/geo_node_policy.rb' + - 'ee/app/policies/group_hook_policy.rb' - 'ee/app/policies/instance_security_dashboard_policy.rb' - 'ee/app/policies/issuable_metric_image_policy.rb' - 'ee/app/policies/iteration_policy.rb' - 'ee/app/policies/push_rule_policy.rb' - 'ee/app/policies/saml_provider_policy.rb' - 'ee/app/policies/vulnerability_policy.rb' - - 'ee/app/policies/group_hook_policy.rb' - 'ee/app/presenters/approval_rule_presenter.rb' - 'ee/app/presenters/audit_event_presenter.rb' - 'ee/app/presenters/epic_issue_presenter.rb' @@ -982,9 +972,6 @@ Gitlab/NamespacedClass: - 'ee/app/serializers/audit_event_entity.rb' - 'ee/app/serializers/audit_event_serializer.rb' - 'ee/app/serializers/blocking_merge_request_entity.rb' - - 'ee/app/serializers/board_assignee_entity.rb' - - 'ee/app/serializers/board_label_entity.rb' - - 'ee/app/serializers/board_milestone_entity.rb' - 'ee/app/serializers/dashboard_environment_entity.rb' - 'ee/app/serializers/dashboard_environments_project_entity.rb' - 'ee/app/serializers/dashboard_environments_serializer.rb' @@ -1078,7 +1065,6 @@ Gitlab/NamespacedClass: - 'ee/app/workers/sync_seat_link_worker.rb' - 'ee/app/workers/update_all_mirrors_worker.rb' - 'ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb' - - 'ee/lib/gitlab/auth_logger.rb' - 'ee/lib/gitlab/authority_analyzer.rb' - 'ee/lib/gitlab/cidr.rb' - 'ee/lib/gitlab/custom_file_templates.rb' @@ -1088,7 +1074,6 @@ Gitlab/NamespacedClass: - 'ee/lib/gitlab/ip_address_state.rb' - 'ee/lib/gitlab/items_collection.rb' - 'ee/lib/gitlab/manual_quarterly_co_term_banner.rb' - - 'ee/lib/gitlab/pagination_delegate.rb' - 'ee/lib/gitlab/path_locks_finder.rb' - 'ee/lib/gitlab/proxy.rb' - 'ee/lib/gitlab/return_to_location.rb' @@ -1114,7 +1099,6 @@ Gitlab/NamespacedClass: - 'lib/gitlab/avatar_cache.rb' - 'lib/gitlab/backup_logger.rb' - 'lib/gitlab/base_doorkeeper_controller.rb' - - 'lib/gitlab/batch_pop_queueing.rb' - 'lib/gitlab/batch_worker_context.rb' - 'lib/gitlab/blame.rb' - 'lib/gitlab/branch_push_merge_commit_analyzer.rb' @@ -1147,7 +1131,6 @@ Gitlab/NamespacedClass: - 'lib/gitlab/exceptions_app.rb' - 'lib/gitlab/exclusive_lease.rb' - 'lib/gitlab/experiment/rollout/feature.rb' - - 'lib/gitlab/experimentation_logger.rb' - 'lib/gitlab/fake_application_settings.rb' - 'lib/gitlab/favicon.rb' - 'lib/gitlab/feature_categories.rb' @@ -1269,7 +1252,6 @@ Gitlab/NamespacedClass: - 'lib/gitlab/wiki_file_finder.rb' - 'lib/gitlab/workhorse.rb' - 'lib/gitlab/zoom_link_extractor.rb' - - 'lib/tasks/gitlab/graphql.rake' - 'lib/tasks/gitlab/seed/group_seed.rake' - 'lib/tasks/import.rake' - 'lib/tasks/tokens.rake' diff --git a/.rubocop_todo/gitlab/service_response.yml b/.rubocop_todo/gitlab/service_response.yml index 03b73d6491d..d6ce9633882 100644 --- a/.rubocop_todo/gitlab/service_response.yml +++ b/.rubocop_todo/gitlab/service_response.yml @@ -64,7 +64,6 @@ Gitlab/ServiceResponse: - 'ee/app/services/vulnerability_issue_links/create_service.rb' - 'ee/app/services/vulnerability_issue_links/delete_service.rb' - 'ee/spec/graphql/mutations/security/finding/dismiss_spec.rb' - - 'spec/controllers/boards/issues_controller_spec.rb' - 'spec/controllers/import/bulk_imports_controller_spec.rb' - 'spec/controllers/import/fogbugz_controller_spec.rb' - 'spec/controllers/projects/alerting/notifications_controller_spec.rb' diff --git a/.rubocop_todo/gitlab/strong_memoize_attr.yml b/.rubocop_todo/gitlab/strong_memoize_attr.yml index 048cc537def..df7e4b64ef0 100644 --- a/.rubocop_todo/gitlab/strong_memoize_attr.yml +++ b/.rubocop_todo/gitlab/strong_memoize_attr.yml @@ -643,7 +643,6 @@ Gitlab/StrongMemoizeAttr: - 'lib/gitlab/diff/file.rb' - 'lib/gitlab/diff/file_collection/base.rb' - 'lib/gitlab/diff/file_collection/merge_request_diff_base.rb' - - 'lib/gitlab/diff/file_collection/merge_request_diff_batch.rb' - 'lib/gitlab/diff/highlight_cache.rb' - 'lib/gitlab/diff/lines_unfolder.rb' - 'lib/gitlab/diff/rendered/notebook/diff_file.rb' diff --git a/.rubocop_todo/graphql/argument_uniqueness.yml b/.rubocop_todo/graphql/argument_uniqueness.yml index 036d5d8ecdb..8a1fb31af62 100644 --- a/.rubocop_todo/graphql/argument_uniqueness.yml +++ b/.rubocop_todo/graphql/argument_uniqueness.yml @@ -1,4 +1,4 @@ --- GraphQL/ArgumentUniqueness: Exclude: - - app/graphql/resolvers/merge_requests_resolver.rb + - 'app/graphql/resolvers/merge_requests_resolver.rb' diff --git a/.rubocop_todo/graphql/field_definitions.yml b/.rubocop_todo/graphql/field_definitions.yml index 0e2399ba243..fa230afc8d0 100644 --- a/.rubocop_todo/graphql/field_definitions.yml +++ b/.rubocop_todo/graphql/field_definitions.yml @@ -1,4 +1,5 @@ --- +# Cop supports --autocorrect. GraphQL/FieldDefinitions: Exclude: - - ee/app/graphql/types/vulnerability_type.rb + - 'ee/app/graphql/types/vulnerability_type.rb' diff --git a/.rubocop_todo/graphql/field_hash_key.yml b/.rubocop_todo/graphql/field_hash_key.yml index 806920e24f6..13460170c07 100644 --- a/.rubocop_todo/graphql/field_hash_key.yml +++ b/.rubocop_todo/graphql/field_hash_key.yml @@ -1,7 +1,5 @@ --- +# Cop supports --autocorrect. GraphQL/FieldHashKey: Exclude: - - app/graphql/types/ci/config/job_type.rb - - app/graphql/types/ci/status_action_type.rb - - app/graphql/types/error_tracking/sentry_error_stack_trace_entry_type.rb - - app/graphql/types/packages/helm/dependency_type.rb + - 'app/graphql/types/error_tracking/sentry_error_stack_trace_entry_type.rb' diff --git a/.rubocop_todo/graphql/field_method.yml b/.rubocop_todo/graphql/field_method.yml index 6a05b3c23b8..f9e9f46e7d6 100644 --- a/.rubocop_todo/graphql/field_method.yml +++ b/.rubocop_todo/graphql/field_method.yml @@ -1,4 +1,5 @@ --- +# Cop supports --autocorrect. GraphQL/FieldMethod: Exclude: - - app/graphql/types/packages/package_details_type.rb + - 'app/graphql/types/packages/package_details_type.rb' diff --git a/.rubocop_todo/graphql/ordered_fields.yml b/.rubocop_todo/graphql/ordered_fields.yml index b7135d7aabb..96889dcf5d2 100644 --- a/.rubocop_todo/graphql/ordered_fields.yml +++ b/.rubocop_todo/graphql/ordered_fields.yml @@ -1,12 +1,12 @@ --- +# Cop supports --autocorrect. GraphQL/OrderedFields: Exclude: - - app/graphql/types/ci/runner_type.rb - - app/graphql/types/container_repository_type.rb - - app/graphql/types/dependency_proxy/manifest_type.rb - - app/graphql/types/merge_request_type.rb - - app/graphql/types/project_statistics_type.rb - - app/graphql/types/release_type.rb - - app/graphql/types/root_storage_statistics_type.rb - - ee/app/graphql/types/scan_type.rb - - ee/app/graphql/types/timebox_report_type.rb + - 'app/graphql/types/ci/runner_type.rb' + - 'app/graphql/types/container_repository_type.rb' + - 'app/graphql/types/dependency_proxy/manifest_type.rb' + - 'app/graphql/types/merge_request_type.rb' + - 'app/graphql/types/project_statistics_type.rb' + - 'app/graphql/types/release_type.rb' + - 'app/graphql/types/root_storage_statistics_type.rb' + - 'ee/app/graphql/types/scan_type.rb' diff --git a/.rubocop_todo/graphql/resolver_method_length.yml b/.rubocop_todo/graphql/resolver_method_length.yml index e2183bb0894..f27246096a7 100644 --- a/.rubocop_todo/graphql/resolver_method_length.yml +++ b/.rubocop_todo/graphql/resolver_method_length.yml @@ -1,6 +1,6 @@ --- GraphQL/ResolverMethodLength: Exclude: - - app/graphql/types/ci/detailed_status_type.rb - - app/graphql/types/ci/runner_type.rb - - app/graphql/types/ci/stage_type.rb
\ No newline at end of file + - 'app/graphql/types/ci/detailed_status_type.rb' + - 'app/graphql/types/ci/runner_type.rb' + - 'app/graphql/types/ci/stage_type.rb' diff --git a/.rubocop_todo/graphql/unused_argument.yml b/.rubocop_todo/graphql/unused_argument.yml index c55d8551591..d03c6799471 100644 --- a/.rubocop_todo/graphql/unused_argument.yml +++ b/.rubocop_todo/graphql/unused_argument.yml @@ -1,5 +1,6 @@ --- +# Cop supports --autocorrect. GraphQL/UnusedArgument: Exclude: - - app/graphql/mutations/jira_import/start.rb - - app/graphql/resolvers/packages_base_resolver.rb + - 'app/graphql/mutations/jira_import/start.rb' + - 'app/graphql/resolvers/packages_base_resolver.rb' diff --git a/.rubocop_todo/layout/argument_alignment.yml b/.rubocop_todo/layout/argument_alignment.yml index 4b5fb5ad1a6..98633709bee 100644 --- a/.rubocop_todo/layout/argument_alignment.yml +++ b/.rubocop_todo/layout/argument_alignment.yml @@ -1,49 +1,66 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/ArgumentAlignment: - # Offense count: 2502 + # Offense count: 4159 # Temporarily disabled due to too many offenses Enabled: false Exclude: + - 'app/controllers/admin/cohorts_controller.rb' + - 'app/controllers/admin/dev_ops_report_controller.rb' + - 'app/controllers/admin/usage_trends_controller.rb' - 'app/controllers/admin/users_controller.rb' - 'app/controllers/application_controller.rb' + - 'app/controllers/concerns/import/github_oauth.rb' - 'app/controllers/concerns/notes_actions.rb' - 'app/controllers/concerns/page_limiter.rb' + - 'app/controllers/concerns/sends_blob.rb' - 'app/controllers/concerns/snippets_actions.rb' - 'app/controllers/concerns/wiki_actions.rb' - 'app/controllers/groups_controller.rb' + - 'app/controllers/ide_controller.rb' - 'app/controllers/import/gitea_controller.rb' - 'app/controllers/import/github_controller.rb' - 'app/controllers/import/gitlab_groups_controller.rb' + - 'app/controllers/oauth/authorizations_controller.rb' - 'app/controllers/passwords_controller.rb' - 'app/controllers/profiles_controller.rb' - 'app/controllers/projects/branches_controller.rb' + - 'app/controllers/projects/cycle_analytics_controller.rb' + - 'app/controllers/projects/graphs_controller.rb' - 'app/controllers/projects/jobs_controller.rb' - 'app/controllers/projects/merge_requests/creations_controller.rb' - 'app/controllers/projects/pages_domains_controller.rb' - 'app/controllers/projects/pipeline_schedules_controller.rb' + - 'app/controllers/projects/pipelines_controller.rb' - 'app/controllers/projects/uploads_controller.rb' - 'app/controllers/projects/web_ide_terminals_controller.rb' - - 'app/controllers/projects_controller.rb' - 'app/controllers/registrations_controller.rb' - 'app/controllers/repositories/git_http_controller.rb' + - 'app/controllers/search_controller.rb' - 'app/controllers/sessions_controller.rb' + - 'app/finders/context_commits_finder.rb' + - 'app/finders/deployments_finder.rb' - 'app/finders/issues_finder.rb' - 'app/finders/projects/prometheus/alerts_finder.rb' + - 'app/graphql/mutations/award_emojis/toggle.rb' - 'app/graphql/mutations/boards/destroy.rb' - 'app/graphql/mutations/boards/lists/base_update.rb' - 'app/graphql/mutations/boards/lists/destroy.rb' - 'app/graphql/mutations/boards/lists/update.rb' - - 'app/graphql/mutations/ci/ci_cd_settings_update.rb' - 'app/graphql/mutations/ci/job_token_scope/add_project.rb' - 'app/graphql/mutations/ci/job_token_scope/remove_project.rb' - 'app/graphql/mutations/ci/pipeline/base.rb' + - 'app/graphql/mutations/ci/project_ci_cd_settings_update.rb' + - 'app/graphql/mutations/ci/runner/update.rb' - 'app/graphql/mutations/ci/runners_registration_token/reset.rb' + - 'app/graphql/mutations/concerns/mutations/work_items/widgetable.rb' - 'app/graphql/mutations/customer_relations/contacts/update.rb' - 'app/graphql/mutations/customer_relations/organizations/update.rb' - 'app/graphql/mutations/dependency_proxy/group_settings/update.rb' - 'app/graphql/mutations/dependency_proxy/image_ttl_group_policy/update.rb' + - 'app/graphql/mutations/design_management/move.rb' - 'app/graphql/mutations/discussions/toggle_resolve.rb' + - 'app/graphql/mutations/issues/set_severity.rb' - 'app/graphql/mutations/metrics/dashboard/annotations/create.rb' - 'app/graphql/mutations/metrics/dashboard/annotations/delete.rb' - 'app/graphql/mutations/namespace/package_settings/update.rb' @@ -52,18 +69,24 @@ Layout/ArgumentAlignment: - 'app/graphql/mutations/notes/create/image_diff_note.rb' - 'app/graphql/mutations/notes/create/note.rb' - 'app/graphql/mutations/notes/reposition_image_diff_note.rb' + - 'app/graphql/mutations/packages/cleanup/policy/update.rb' + - 'app/graphql/mutations/packages/destroy_files.rb' + - 'app/graphql/mutations/pages/base.rb' + - 'app/graphql/mutations/pages/mark_onboarding_complete.rb' + - 'app/graphql/mutations/security/ci_configuration/base_security_analyzer.rb' - 'app/graphql/mutations/security/ci_configuration/configure_sast.rb' - 'app/graphql/mutations/terraform/state/base.rb' - 'app/graphql/mutations/user_callouts/create.rb' - 'app/graphql/resolvers/admin/analytics/usage_trends/measurements_resolver.rb' - 'app/graphql/resolvers/alert_management/alert_resolver.rb' - 'app/graphql/resolvers/alert_management/alert_status_counts_resolver.rb' - - 'app/graphql/resolvers/base_issues_resolver.rb' + - 'app/graphql/resolvers/ci/all_jobs_resolver.rb' - 'app/graphql/resolvers/ci/jobs_resolver.rb' - 'app/graphql/resolvers/ci/project_pipeline_counts_resolver.rb' - 'app/graphql/resolvers/ci/test_suite_resolver.rb' - 'app/graphql/resolvers/clusters/agents_resolver.rb' - 'app/graphql/resolvers/concerns/group_issuable_resolver.rb' + - 'app/graphql/resolvers/concerns/issues/sort_arguments.rb' - 'app/graphql/resolvers/concerns/search_arguments.rb' - 'app/graphql/resolvers/container_repositories_resolver.rb' - 'app/graphql/resolvers/container_repository_tags_resolver.rb' @@ -73,6 +96,9 @@ Layout/ArgumentAlignment: - 'app/graphql/resolvers/error_tracking/sentry_errors_resolver.rb' - 'app/graphql/resolvers/group_members_resolver.rb' - 'app/graphql/resolvers/group_packages_resolver.rb' + - 'app/graphql/resolvers/issues/base_parent_resolver.rb' + - 'app/graphql/resolvers/issues/base_resolver.rb' + - 'app/graphql/resolvers/issues_resolver.rb' - 'app/graphql/resolvers/members_resolver.rb' - 'app/graphql/resolvers/namespace_projects_resolver.rb' - 'app/graphql/resolvers/package_details_resolver.rb' @@ -80,6 +106,7 @@ Layout/ArgumentAlignment: - 'app/graphql/resolvers/paginated_tree_resolver.rb' - 'app/graphql/resolvers/project_jobs_resolver.rb' - 'app/graphql/resolvers/project_members_resolver.rb' + - 'app/graphql/resolvers/projects/fork_targets_resolver.rb' - 'app/graphql/resolvers/projects/snippets_resolver.rb' - 'app/graphql/resolvers/release_resolver.rb' - 'app/graphql/resolvers/repository_branch_names_resolver.rb' @@ -88,17 +115,40 @@ Layout/ArgumentAlignment: - 'app/graphql/resolvers/tree_resolver.rb' - 'app/graphql/resolvers/users_resolver.rb' - 'app/graphql/subscriptions/issuable_updated.rb' + - 'app/graphql/types/alert_management/domain_filter_enum.rb' + - 'app/graphql/types/ci/group_variable_connection_type.rb' + - 'app/graphql/types/ci/project_variable_connection_type.rb' - 'app/graphql/types/ci_configuration/sast/analyzers_entity_input_type.rb' - 'app/graphql/types/ci_configuration/sast/input_type.rb' + - 'app/graphql/types/commit_signature_interface.rb' + - 'app/graphql/types/commit_signatures/gpg_signature_type.rb' + - 'app/graphql/types/commit_signatures/ssh_signature_type.rb' + - 'app/graphql/types/commit_signatures/x509_signature_type.rb' + - 'app/graphql/types/customer_relations/contact_sort_enum.rb' + - 'app/graphql/types/customer_relations/organization_sort_enum.rb' + - 'app/graphql/types/deployment_type.rb' + - 'app/graphql/types/environment_type.rb' - 'app/graphql/types/error_tracking/sentry_error_frequency_type.rb' - 'app/graphql/types/error_tracking/sentry_error_tags_type.rb' - 'app/graphql/types/issues/negated_issue_filter_input_type.rb' + - 'app/graphql/types/limited_countable_connection_type.rb' - 'app/graphql/types/merge_request_state_event_enum.rb' + - 'app/graphql/types/namespace/package_settings_type.rb' + - 'app/graphql/types/packages/package_base_type.rb' + - 'app/graphql/types/permission_types/group_enum.rb' - 'app/graphql/types/project_type.rb' - 'app/graphql/types/release_asset_link_shared_input_arguments.rb' - 'app/graphql/types/saved_reply_type.rb' + - 'app/graphql/types/upload_type.rb' - 'app/graphql/types/user_preferences_type.rb' - - 'app/helpers/application_helper.rb' + - 'app/graphql/types/work_items/widget_interface.rb' + - 'app/graphql/types/work_items/widgets/assignees_input_type.rb' + - 'app/graphql/types/work_items/widgets/assignees_type.rb' + - 'app/graphql/types/work_items/widgets/hierarchy_type.rb' + - 'app/graphql/types/work_items/widgets/labels_type.rb' + - 'app/graphql/types/work_items/widgets/start_and_due_date_type.rb' + - 'app/graphql/types/x509_certificate_type.rb' + - 'app/graphql/types/x509_issuer_type.rb' - 'app/helpers/blob_helper.rb' - 'app/helpers/button_helper.rb' - 'app/helpers/ci/status_helper.rb' @@ -107,6 +157,8 @@ Layout/ArgumentAlignment: - 'app/helpers/members_helper.rb' - 'app/helpers/notes_helper.rb' - 'app/helpers/repository_languages_helper.rb' + - 'app/helpers/snippets_helper.rb' + - 'app/helpers/todos_helper.rb' - 'app/helpers/wiki_helper.rb' - 'app/models/alert_management/http_integration.rb' - 'app/models/alerting/project_alerting_setting.rb' @@ -121,6 +173,7 @@ Layout/ArgumentAlignment: - 'app/models/ci/processable.rb' - 'app/models/ci/resource_group.rb' - 'app/models/ci/runner.rb' + - 'app/models/ci/stage.rb' - 'app/models/ci_platform_metric.rb' - 'app/models/clusters/agent.rb' - 'app/models/clusters/applications/helm.rb' @@ -136,8 +189,9 @@ Layout/ArgumentAlignment: - 'app/models/concerns/bulk_insert_safe.rb' - 'app/models/concerns/ci/has_variable.rb' - 'app/models/concerns/ci/new_has_variable.rb' + - 'app/models/concerns/ci/partitionable.rb' - 'app/models/concerns/each_batch.rb' - - 'app/models/concerns/integrations/has_issue_tracker_fields.rb' + - 'app/models/concerns/integrations/slack_mattermost_notifier.rb' - 'app/models/concerns/issuable.rb' - 'app/models/concerns/merge_request_reviewer_state.rb' - 'app/models/concerns/nullify_if_blank.rb' @@ -147,6 +201,7 @@ Layout/ArgumentAlignment: - 'app/models/concerns/packages/debian/distribution_key.rb' - 'app/models/concerns/repository_storage_movable.rb' - 'app/models/concerns/storage/legacy_namespace.rb' + - 'app/models/concerns/taskable.rb' - 'app/models/concerns/with_uploads.rb' - 'app/models/custom_emoji.rb' - 'app/models/deploy_token.rb' @@ -159,10 +214,34 @@ Layout/ArgumentAlignment: - 'app/models/gpg_key_subkey.rb' - 'app/models/grafana_integration.rb' - 'app/models/group.rb' + - 'app/models/hooks/web_hook.rb' - 'app/models/incident_management/project_incident_management_setting.rb' + - 'app/models/incident_management/timeline_event.rb' + - 'app/models/incident_management/timeline_event_tag.rb' + - 'app/models/integrations/asana.rb' + - 'app/models/integrations/assembla.rb' - 'app/models/integrations/bamboo.rb' - - 'app/models/integrations/jira.rb' + - 'app/models/integrations/buildkite.rb' + - 'app/models/integrations/campfire.rb' + - 'app/models/integrations/confluence.rb' + - 'app/models/integrations/datadog.rb' + - 'app/models/integrations/discord.rb' + - 'app/models/integrations/drone_ci.rb' + - 'app/models/integrations/emails_on_push.rb' + - 'app/models/integrations/external_wiki.rb' + - 'app/models/integrations/flowdock.rb' + - 'app/models/integrations/harbor.rb' + - 'app/models/integrations/irker.rb' + - 'app/models/integrations/jenkins.rb' + - 'app/models/integrations/mock_ci.rb' + - 'app/models/integrations/packagist.rb' + - 'app/models/integrations/pipelines_email.rb' + - 'app/models/integrations/pivotaltracker.rb' + - 'app/models/integrations/prometheus.rb' + - 'app/models/integrations/pushover.rb' + - 'app/models/integrations/shimo.rb' - 'app/models/integrations/teamcity.rb' + - 'app/models/integrations/zentao.rb' - 'app/models/issue.rb' - 'app/models/key.rb' - 'app/models/lfs_object.rb' @@ -187,6 +266,8 @@ Layout/ArgumentAlignment: - 'app/models/project_ci_cd_setting.rb' - 'app/models/project_feature.rb' - 'app/models/project_metrics_setting.rb' + - 'app/models/projects/import_export/relation_export.rb' + - 'app/models/projects/import_export/relation_export_upload.rb' - 'app/models/redirect_route.rb' - 'app/models/route.rb' - 'app/models/serverless/domain_cluster.rb' @@ -197,14 +278,18 @@ Layout/ArgumentAlignment: - 'app/models/users/saved_reply.rb' - 'app/presenters/ci/pipeline_presenter.rb' - 'app/presenters/gitlab/blame_presenter.rb' + - 'app/presenters/key_presenter.rb' - 'app/presenters/label_presenter.rb' - 'app/presenters/merge_request_presenter.rb' - 'app/presenters/project_presenter.rb' - 'app/serializers/build_details_entity.rb' + - 'app/serializers/detailed_status_entity.rb' - 'app/serializers/diffs_entity.rb' - 'app/serializers/environment_entity.rb' - 'app/serializers/error_tracking/error_entity.rb' - 'app/serializers/stage_entity.rb' + - 'app/serializers/test_suite_entity.rb' + - 'app/serializers/test_suite_summary_entity.rb' - 'app/serializers/triggered_pipeline_entity.rb' - 'app/services/ci/archive_trace_service.rb' - 'app/services/ci/job_artifacts/create_service.rb' @@ -218,18 +303,27 @@ Layout/ArgumentAlignment: - 'app/services/gravatar_service.rb' - 'app/services/issues/clone_service.rb' - 'app/services/jira/requests/base.rb' + - 'app/services/members/creator_service.rb' + - 'app/services/merge_requests/create_pipeline_service.rb' - 'app/services/merge_requests/merge_to_ref_service.rb' - 'app/services/metrics/dashboard/update_dashboard_service.rb' + - 'app/services/notification_service.rb' - 'app/services/packages/conan/create_package_service.rb' - 'app/services/packages/create_temporary_package_service.rb' - 'app/services/packages/go/create_package_service.rb' - 'app/services/packages/maven/create_package_service.rb' - 'app/services/prometheus/proxy_variable_substitution_service.rb' + - 'app/services/protected_branches/api_service.rb' + - 'app/services/quick_actions/interpret_service.rb' - 'app/services/web_hook_service.rb' - 'app/services/webauthn/authenticate_service.rb' - 'app/uploaders/object_storage.rb' + - 'app/workers/bulk_imports/entity_worker.rb' + - 'app/workers/bulk_imports/export_request_worker.rb' + - 'app/workers/bulk_imports/pipeline_worker.rb' - 'app/workers/run_pipeline_schedule_worker.rb' - 'config/application.rb' + - 'config/initializers/sawyer_patch.rb' - 'config/initializers/zz_metrics.rb' - 'config/routes.rb' - 'config/routes/legacy_builds.rb' @@ -262,6 +356,47 @@ Layout/ArgumentAlignment: - 'db/migrate/20211109101010_support_partition_query_in_loose_fk_table.rb' - 'db/migrate/20220119170426_remove_temporary_vulnerability_occurrences_deduplication_index.rb' - 'db/migrate/20220301003502_add_security_orchestration_policy_configuration_namespace_index.rb' + - 'db/migrate/20220401071609_add_campaign_to_in_product_marketing_email.rb' + - 'db/migrate/20220401110443_add_on_hold_until_column_for_batched_migration.rb' + - 'db/migrate/20220404170446_add_index_for_non_requested_non_invited_awaiting_members.rb' + - 'db/migrate/20220406113217_add_inactive_project_deletion_to_application_settings.rb' + - 'db/migrate/20220408135815_update_index_on_greated_done_at_on_container_repositories.rb' + - 'db/migrate/20220422220507_remove_tmp_index_supporting_leaky_regex_cleanup.rb' + - 'db/migrate/20220505092254_add_allow_stale_runner_pruning_index_to_namespace_ci_cd_settings.rb' + - 'db/migrate/20220512020500_index_batched_migrations_on_gitlab_schema_and_configuration.rb' + - 'db/migrate/20220513093614_add_ding_talk_into_application_settings.rb' + - 'db/migrate/20220516054002_temp_index_for_project_namespace_member_backfill.rb' + - 'db/migrate/20220601223501_add_vulnerability_related_columns.rb' + - 'db/migrate/20220608074738_add_max_repository_downloads_limit_to_application_settings.rb' + - 'db/migrate/20220613054349_add_unique_project_download_limit_settings_to_namespace_settings.rb' + - 'db/migrate/20220616182015_create_sbom_component_versions.rb' + - 'db/migrate/20220616183240_add_sbom_component_versions_foreign_key_to_sbom_occurrences.rb' + - 'db/migrate/20220627061008_add_fei_shu_integration.rb' + - 'db/migrate/20220627122230_add_foreign_keys_to_user_namespace_callouts.rb' + - 'db/migrate/20220627171538_add_error_tracking_settings.rb' + - 'db/migrate/20220704034050_add_users_allowlist_to_git_rate_limits.rb' + - 'db/migrate/20220708150315_add_vulnerabilities_foreign_key_to_vulnerability_merge_request_links.rb' + - 'db/migrate/20220718083945_add_unique_project_download_limit_allowlist_to_namespace_settings.rb' + - 'db/migrate/20220726025516_add_namespace_settings_unique_project_download_limit_allowlist_size_constraint.rb' + - 'db/migrate/20220726154015_add_component_foreign_key_to_sbom_occurrences.rb' + - 'db/migrate/20220726230052_remove_tmp_index_project_membership_namespace_id_column.rb' + - 'db/migrate/20220803004853_add_auto_ban_user_to_namespace_settings.rb' + - 'db/migrate/20220803235114_add_auto_ban_user_to_application_settings.rb' + - 'db/migrate/20220805154101_add_allow_run_pipelines_in_the_parent_project_setting.rb' + - 'db/migrate/20220907115806_add_security_orchestration_policy_configuration_id.rb' + - 'db/migrate/20220915140802_create_merge_request_predictions.rb' + - 'db/migrate/20220921201347_add_maven_package_requests_forwarding_to_namespace_package_settings.rb' + - 'db/migrate/20220928201920_create_project_wiki_repository_states.rb' + - 'db/migrate/20220929171925_add_pypi_package_requests_forwarding_to_namespace_package_settings.rb' + - 'db/migrate/20220929172356_add_npm_package_requests_forwarding_to_namespace_package_settings.rb' + - 'db/migrate/20221005094926_create_incident_management_timeline_event_tag_links.rb' + - 'db/migrate/20221005103010_add_index_project_id_on_scan_finding_approval_project_rules.rb' + - 'db/migrate/20221011162637_add_partial_index_project_incident_management_settings_on_project_id_and_sla_timer.rb' + - 'db/migrate/20221018202524_create_dependency_proxy_blob_states.rb' + - 'db/migrate/20221102150737_index_environments_for_name_search_within_folder.rb' + - 'db/migrate/20221102195642_create_dependency_proxy_manifest_states.rb' + - 'db/migrate/20221108185442_add_project_wiki_repository_id_to_project_wiki_repository_states.rb' + - 'db/migrate/20221110150942_add_project_id_lower_name_index_remove_old_index.rb' - 'db/post_migrate/20210330130420_drop_finding_fingerprint_table.rb' - 'db/post_migrate/20210413130011_add_partitioned_web_hook_log_fk.rb' - 'db/post_migrate/20210415101228_backfill_ci_build_needs_for_bigint_conversion.rb' @@ -271,7 +406,6 @@ Layout/ArgumentAlignment: - 'db/post_migrate/20210701033622_finalize_ci_builds_needs_bigint_conversion.rb' - 'db/post_migrate/20210706212710_finalize_ci_job_artifacts_bigint_conversion.rb' - 'db/post_migrate/20210713042153_finalize_ci_sources_pipelines_bigint_conversion.rb' - - 'db/post_migrate/20210804151444_prepare_indexes_for_ci_job_artifact_bigint_conversion.rb' - 'db/post_migrate/20210804153307_prepare_indexes_for_tagging_bigint_conversion.rb' - 'db/post_migrate/20210809143931_finalize_job_id_conversion_to_bigint_for_ci_job_artifacts.rb' - 'db/post_migrate/20210817024335_prepare_indexes_for_events_bigint_conversion.rb' @@ -284,102 +418,314 @@ Layout/ArgumentAlignment: - 'db/post_migrate/20211031154919_add_indexes_to_merge_request_stage_events.rb' - 'db/post_migrate/20211109112454_drop_old_loose_fk_deleted_records_index.rb' - 'db/post_migrate/20220310134207_add_index_project_id_and_released_at_and_id_on_releases.rb' + - 'db/post_migrate/20220315171027_add_tmp_index_to_support_leaky_regex_cleanup.rb' + - 'db/post_migrate/20220322035654_add_migration_plan_index_to_container_repositories.rb' + - 'db/post_migrate/20220323152202_add_index_on_visible_deployments.rb' + - 'db/post_migrate/20220404183350_add_forbidden_state_index_to_users.rb' + - 'db/post_migrate/20220412143551_add_partial_index_on_unencrypted_integrations.rb' + - 'db/post_migrate/20220413011328_remove_partial_index_on_unencrypted_integrations.rb' + - 'db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb' + - 'db/post_migrate/20220425121435_backfill_integrations_enable_ssl_verification.rb' + - 'db/post_migrate/20220503134610_remove_requirements_management_test_reports_requirement_id.rb' + - 'db/post_migrate/20220505174658_update_index_on_alerts_to_exclude_null_fingerprints.rb' + - 'db/post_migrate/20220525172001_migrate_cluster_integration_worker_queues.rb' + - 'db/post_migrate/20220530044712_add_index_for_vulnerability_reads_location_image.rb' + - 'db/post_migrate/20220610223040_add_index_on_available_pypi_packages.rb' + - 'db/post_migrate/20220621082245_remove_tmp_index_on_routes_namespace_id_column.rb' + - 'db/post_migrate/20220622070547_add_temp_index_for_container_registry_size_migration.rb' + - 'db/post_migrate/20220628110823_add_issues_namespace_id_fk_and_index.rb' + - 'db/post_migrate/20220630050050_index_vulnerability_reads_on_casted_cluster_agent_id_full.rb' + - 'db/post_migrate/20220630085003_drop_project_successfull_pages_deploy_index_from_ci_builds.rb' + - 'db/post_migrate/20220704044408_remove_foreign_key_in_project_tracing_settings.rb' + - 'db/post_migrate/20220706065245_remove_foreign_key_in_clusters_applications_elastic_stacks.rb' + - 'db/post_migrate/20220706065611_remove_foreign_key_in_clusters_integration_elasticstack.rb' + - 'db/post_migrate/20220707192420_remove_tmp_idx_merge_requests_draft_and_status.rb' + - 'db/post_migrate/20220715054506_add_parent_link_unique_work_item_index.rb' + - 'db/post_migrate/20220721140252_prepare_partial_trigram_indexes_for_issues.rb' + - 'db/post_migrate/20220726225114_remove_tmp_index_group_membership_namespace_id_column.rb' + - 'db/post_migrate/20220801144713_add_partial_trigram_index_for_issue_title.rb' + - 'db/post_migrate/20220801150028_add_partial_trigram_index_for_issue_description.rb' + - 'db/post_migrate/20220803042351_add_tmp_index_todos_attention_request_action.rb' + - 'db/post_migrate/20220810093742_add_async_tmp_index_job_artifacts_id_and_expire_at.rb' + - 'db/post_migrate/20220824114218_add_tmp_index_approval_merge_request_rules.rb' + - 'db/post_migrate/20220825061250_drop_tmp_index_todos_attention_request_action_idx.rb' + - 'db/post_migrate/20220901071310_add_tmp_index_user_callouts_on_attention_request_feature_names.rb' + - 'db/post_migrate/20220901073300_remove_partial_trigram_indexes_for_issues.rb' + - 'db/post_migrate/20220905090300_add_tmp_index_merge_request_reviewers_attention_request_state.rb' + - 'db/post_migrate/20220913030552_add_tmp_index_system_note_metadata_on_attention_request_actions.rb' + - 'db/post_migrate/20220915192521_prepare_async_trigram_index_for_vulnerability_reads_container_images.rb' + - 'db/post_migrate/20220916112841_remove_unused_aggregation_columns.rb' + - 'db/post_migrate/20220919023208_drop_unused_fields_from_merge_request_assignees.rb' + - 'db/post_migrate/20220919041604_drop_unused_fields_from_merge_request_reviewers.rb' + - 'db/post_migrate/20220919050555_drop_tmp_index_user_callouts_on_attention_request_feature_names.rb' + - 'db/post_migrate/20220923052531_remove_tmp_index_merge_request_reviewers_on_attention_requested_state.rb' + - 'db/post_migrate/20220923060226_remove_tmp_index_system_note_metadata_on_attention_request_actions.rb' + - 'db/post_migrate/20220929081645_tmp_idx_null_member_namespace_id.rb' + - 'db/post_migrate/20220929091500_add_tmp_index_vulns_on_report_type.rb' + - 'db/post_migrate/20221004092038_tmp_index_members_on_id_where_namespace_id_null.rb' + - 'db/post_migrate/20221005103000_add_index_merge_request_id_on_scan_finding_approval_merge_request_rules.rb' + - 'db/post_migrate/20221006083240_prepare_partial_trigram_indexes_for_issues_attempt_2.rb' + - 'db/post_migrate/20221019102426_remove_tmp_index_approval_merge_request_rules_on_report_type.rb' + - 'db/post_migrate/20221024034228_remove_sprints_project_id_column.rb' + - 'db/post_migrate/20221025220607_add_index_id_on_scan_finding_approval_merge_request_rules.rb' + - 'db/post_migrate/20221028000603_prepare_partial_trigram_indexes_for_issues_attempt_3.rb' + - 'db/post_migrate/20221104042137_add_partial_trigram_index_for_issue_title_attempt_2.rb' + - 'db/post_migrate/20221104042159_add_partial_trigram_index_for_issue_description_attempt_2.rb' + - 'db/post_migrate/20221104074652_add_temp_index_for_project_statistics_upload_size_migration.rb' + - 'db/post_migrate/20221104100203_recreate_async_trigram_index_for_vulnerability_reads_container_images.rb' + - 'db/post_migrate/20221115120602_add_index_for_issues_health_status_ordering.rb' + - 'db/post_migrate/20221117153015_add_index_merge_request_id_created_at_on_scan_finding_approval_merge_request_rules.rb' - 'ee/app/controllers/concerns/insights_actions.rb' - 'ee/app/controllers/customers_dot/proxy_controller.rb' + - 'ee/app/controllers/ee/admin/dev_ops_report_controller.rb' - 'ee/app/controllers/ee/groups_controller.rb' - 'ee/app/controllers/ee/passwords_controller.rb' + - 'ee/app/controllers/groups/analytics/devops_adoption_controller.rb' - 'ee/app/controllers/groups/analytics/productivity_analytics_controller.rb' + - 'ee/app/controllers/groups/contribution_analytics_controller.rb' + - 'ee/app/controllers/groups/insights_controller.rb' + - 'ee/app/controllers/groups/issues_analytics_controller.rb' + - 'ee/app/controllers/groups/two_factor_auths_controller.rb' + - 'ee/app/controllers/projects/analytics/code_reviews_controller.rb' + - 'ee/app/controllers/projects/analytics/issues_analytics_controller.rb' + - 'ee/app/controllers/projects/analytics/merge_request_analytics_controller.rb' + - 'ee/app/controllers/projects/insights_controller.rb' - 'ee/app/controllers/projects/integrations/jira/issues_controller.rb' - 'ee/app/controllers/subscriptions_controller.rb' - 'ee/app/finders/geo/registry_finder.rb' - 'ee/app/graphql/ee/mutations/boards/issues/issue_move_list.rb' + - 'ee/app/graphql/ee/mutations/ci/project_ci_cd_settings_update.rb' + - 'ee/app/graphql/ee/resolvers/clusters/agents_resolver.rb' + - 'ee/app/graphql/ee/resolvers/issues/base_resolver.rb' + - 'ee/app/graphql/ee/types/board_list_type.rb' + - 'ee/app/graphql/ee/types/board_type.rb' + - 'ee/app/graphql/ee/types/boards/board_issue_input_type.rb' - 'ee/app/graphql/ee/types/ci/pipeline_type.rb' + - 'ee/app/graphql/ee/types/ci/runner_type.rb' - 'ee/app/graphql/ee/types/deprecated_mutations.rb' + - 'ee/app/graphql/ee/types/group_type.rb' + - 'ee/app/graphql/ee/types/issue_type.rb' + - 'ee/app/graphql/ee/types/merge_request_type.rb' + - 'ee/app/graphql/ee/types/query_type.rb' + - 'ee/app/graphql/ee/types/repository/blob_type.rb' - 'ee/app/graphql/mutations/app_sec/fuzzing/api/ci_configuration/create.rb' - 'ee/app/graphql/mutations/app_sec/fuzzing/coverage/corpus/create.rb' - 'ee/app/graphql/mutations/boards/epic_boards/epic_move_list.rb' - 'ee/app/graphql/mutations/boards/epic_lists/update.rb' + - 'ee/app/graphql/mutations/ci/namespace_ci_cd_settings_update.rb' - 'ee/app/graphql/mutations/concerns/mutations/shared_epic_arguments.rb' - 'ee/app/graphql/mutations/dast/profiles/create.rb' - 'ee/app/graphql/mutations/dast_scanner_profiles/create.rb' - 'ee/app/graphql/mutations/epics/update.rb' + - 'ee/app/graphql/mutations/incident_management/issuable_resource_link/create.rb' + - 'ee/app/graphql/mutations/incident_management/issuable_resource_link/destroy.rb' + - 'ee/app/graphql/mutations/iterations/cadences/create.rb' + - 'ee/app/graphql/mutations/iterations/cadences/update.rb' + - 'ee/app/graphql/mutations/iterations/delete.rb' + - 'ee/app/graphql/mutations/projects/set_locked.rb' - 'ee/app/graphql/mutations/requirements_management/update_requirement.rb' + - 'ee/app/graphql/mutations/security/finding/create_issue.rb' + - 'ee/app/graphql/mutations/security/finding/dismiss.rb' + - 'ee/app/graphql/mutations/users/abuse/namespace_bans/destroy.rb' - 'ee/app/graphql/mutations/vulnerabilities/create.rb' + - 'ee/app/graphql/mutations/vulnerabilities/finding/dismiss.rb' - 'ee/app/graphql/resolvers/boards/board_list_epics_resolver.rb' + - 'ee/app/graphql/resolvers/boards/epic_list_resolver.rb' - 'ee/app/graphql/resolvers/ci/code_coverage_activities_resolver.rb' - 'ee/app/graphql/resolvers/concerns/common_requirement_arguments.rb' - - 'ee/app/graphql/resolvers/epics_resolver.rb' + - 'ee/app/graphql/resolvers/gitlab_subscriptions/preview_billable_user_change_resolver.rb' + - 'ee/app/graphql/resolvers/iterations/cadences_resolver.rb' - 'ee/app/graphql/resolvers/iterations_resolver.rb' - - 'ee/app/graphql/resolvers/security_orchestration/scan_execution_policy_resolver.rb' - 'ee/app/graphql/resolvers/security_training_urls_resolver.rb' + - 'ee/app/graphql/resolvers/vulnerabilities_count_per_day_resolver.rb' - 'ee/app/graphql/resolvers/vulnerabilities_grade_resolver.rb' + - 'ee/app/graphql/types/access_levels/group_type.rb' + - 'ee/app/graphql/types/access_levels/user_type.rb' + - 'ee/app/graphql/types/admin/cloud_licenses/current_license_type.rb' + - 'ee/app/graphql/types/admin/cloud_licenses/license_type.rb' + - 'ee/app/graphql/types/admin/cloud_licenses/subscription_future_entry_type.rb' - 'ee/app/graphql/types/alert_management/payload_alert_field_input_type.rb' + - 'ee/app/graphql/types/analytics/contribution_analytics/contribution_metadata_type.rb' + - 'ee/app/graphql/types/analytics/devops_adoption/enabled_namespace_type.rb' + - 'ee/app/graphql/types/analytics/devops_adoption/snapshot_type.rb' + - 'ee/app/graphql/types/app_sec/fuzzing/api/ci_configuration_type.rb' + - 'ee/app/graphql/types/app_sec/fuzzing/api/scan_profile_type.rb' + - 'ee/app/graphql/types/app_sec/fuzzing/coverage/corpus_type.rb' + - 'ee/app/graphql/types/boards/epic_board_type.rb' + - 'ee/app/graphql/types/boards/epic_list_type.rb' + - 'ee/app/graphql/types/boards/epic_user_preferences_type.rb' + - 'ee/app/graphql/types/burnup_chart_daily_totals_type.rb' + - 'ee/app/graphql/types/ci/code_quality_degradation_type.rb' + - 'ee/app/graphql/types/ci/namespace_ci_cd_setting_type.rb' + - 'ee/app/graphql/types/compliance_management/merge_requests/compliance_violation_type.rb' - 'ee/app/graphql/types/dast/profile_cadence_input_type.rb' - 'ee/app/graphql/types/dast/profile_schedule_input_type.rb' + - 'ee/app/graphql/types/dast/profile_schedule_type.rb' + - 'ee/app/graphql/types/dast/profile_type.rb' + - 'ee/app/graphql/types/dast_scanner_profile_type.rb' + - 'ee/app/graphql/types/dast_site_profile_type.rb' + - 'ee/app/graphql/types/dast_site_validation_type.rb' + - 'ee/app/graphql/types/dora_type.rb' + - 'ee/app/graphql/types/epic_issue_type.rb' + - 'ee/app/graphql/types/epic_type.rb' + - 'ee/app/graphql/types/external_issue_type.rb' + - 'ee/app/graphql/types/geo/dependency_proxy_manifest_registry_type.rb' - 'ee/app/graphql/types/incident_management/escalation_rule_input_type.rb' - 'ee/app/graphql/types/incident_management/oncall_participant_type.rb' - 'ee/app/graphql/types/incident_management/oncall_rotation_active_period_input_type.rb' - 'ee/app/graphql/types/incident_management/oncall_rotation_date_input_type.rb' - 'ee/app/graphql/types/incident_management/oncall_rotation_length_input_type.rb' - 'ee/app/graphql/types/incident_management/oncall_user_input_type.rb' + - 'ee/app/graphql/types/iteration_type.rb' + - 'ee/app/graphql/types/iterations/cadence_type.rb' + - 'ee/app/graphql/types/merge_requests/approval_state_type.rb' + - 'ee/app/graphql/types/namespaces/namespace_ban_type.rb' - 'ee/app/graphql/types/push_rules_type.rb' + - 'ee/app/graphql/types/requirements_management/requirement_type.rb' + - 'ee/app/graphql/types/requirements_management/test_report_type.rb' + - 'ee/app/graphql/types/security/training_type.rb' + - 'ee/app/graphql/types/security_orchestration/security_policy_relation_type_enum.rb' + - 'ee/app/graphql/types/time_report_stats_type.rb' + - 'ee/app/graphql/types/timebox_report_interface.rb' + - 'ee/app/graphql/types/timebox_report_type.rb' + - 'ee/app/graphql/types/vulnerabilities/asset_type.rb' + - 'ee/app/graphql/types/vulnerabilities/container_image_type.rb' + - 'ee/app/graphql/types/vulnerability/external_issue_link_type.rb' + - 'ee/app/graphql/types/vulnerability/issue_link_type.rb' + - 'ee/app/graphql/types/vulnerability_details/base_type.rb' + - 'ee/app/graphql/types/vulnerability_details/diff_type.rb' + - 'ee/app/graphql/types/vulnerability_details/file_location_type.rb' + - 'ee/app/graphql/types/vulnerability_details/markdown_type.rb' + - 'ee/app/graphql/types/vulnerability_details/module_location_type.rb' - 'ee/app/graphql/types/vulnerability_identifier_input_type.rb' + - 'ee/app/graphql/types/vulnerability_location/container_scanning_type.rb' + - 'ee/app/graphql/types/vulnerability_location/coverage_fuzzing_type.rb' + - 'ee/app/graphql/types/vulnerability_location/dast_type.rb' + - 'ee/app/graphql/types/vulnerability_location/dependency_scanning_type.rb' + - 'ee/app/graphql/types/vulnerability_location/generic_type.rb' + - 'ee/app/graphql/types/vulnerability_location/sast_type.rb' + - 'ee/app/graphql/types/vulnerability_location/secret_detection_type.rb' + - 'ee/app/graphql/types/vulnerability_request_response_header_type.rb' + - 'ee/app/graphql/types/vulnerability_request_type.rb' + - 'ee/app/graphql/types/vulnerability_response_type.rb' - 'ee/app/graphql/types/vulnerability_scanner_input_type.rb' + - 'ee/app/graphql/types/vulnerability_scanner_type.rb' - 'ee/app/graphql/types/vulnerability_scanner_vendor_input_type.rb' + - 'ee/app/graphql/types/vulnerability_type.rb' + - 'ee/app/graphql/types/vulnerable_dependency_type.rb' + - 'ee/app/graphql/types/vulnerable_kubernetes_resource_type.rb' + - 'ee/app/graphql/types/vulnerable_projects_by_grade_type.rb' + - 'ee/app/graphql/types/work_items/widgets/status_type.rb' + - 'ee/app/graphql/types/work_items/widgets/weight_type.rb' - 'ee/app/helpers/ee/button_helper.rb' - 'ee/app/models/concerns/approval_rule_like.rb' - 'ee/app/models/concerns/security/scan_execution_policy.rb' + - 'ee/app/models/concerns/security/scan_result_policy.rb' - 'ee/app/models/dast/site_profile_secret_variable.rb' + - 'ee/app/models/ee/dependency_proxy/blob.rb' + - 'ee/app/models/ee/dependency_proxy/manifest.rb' + - 'ee/app/models/ee/epic.rb' + - 'ee/app/models/ee/group.rb' - 'ee/app/models/ee/identity.rb' - 'ee/app/models/ee/incident_management/project_incident_management_setting.rb' - 'ee/app/models/ee/issue.rb' - - 'ee/app/models/ee/lfs_object.rb' - 'ee/app/models/ee/list.rb' - - 'ee/app/models/ee/merge_request_diff.rb' - 'ee/app/models/ee/namespace.rb' - - 'ee/app/models/ee/pages_deployment.rb' + - 'ee/app/models/ee/namespace_setting.rb' - 'ee/app/models/ee/project.rb' + - 'ee/app/models/ee/project_group_link.rb' + - 'ee/app/models/geo/dependency_proxy_manifest_state.rb' - 'ee/app/models/geo/event_log.rb' + - 'ee/app/models/geo/project_wiki_repository_state.rb' - 'ee/app/models/geo/repository_renamed_event.rb' + - 'ee/app/models/integrations/github.rb' + - 'ee/app/models/package_metadata/package_version_license.rb' - 'ee/app/models/project_alias.rb' + - 'ee/app/models/slack_integration.rb' - 'ee/app/models/status_page/project_setting.rb' + - 'ee/app/serializers/ee/evidences/release_entity.rb' - 'ee/app/serializers/vulnerability_entity.rb' - 'ee/app/services/ci/minutes/update_project_and_namespace_usage_service.rb' - - 'ee/app/services/ee/ci/queue/build_queue_service.rb' + - 'ee/app/services/ee/merge_requests/create_pipeline_service.rb' - 'ee/app/services/geo/event_store.rb' - 'ee/app/services/geo/repository_base_sync_service.rb' + - 'ee/app/services/geo/repository_sync_service.rb' + - 'ee/app/services/geo/wiki_sync_service.rb' + - 'ee/app/services/incident_management/issuable_resource_links/create_service.rb' + - 'ee/app/services/incident_management/issuable_resource_links/destroy_service.rb' + - 'ee/app/services/incident_management/issuable_resource_links/zoom_link_service.rb' - 'ee/app/services/timebox_report_service.rb' + - 'ee/app/services/vulnerabilities/findings/find_or_create_from_security_finding_service.rb' + - 'ee/app/workers/elastic/project_transfer_worker.rb' - 'ee/db/geo/migrate/20180405074130_add_partial_index_project_repository_verification.rb' + - 'ee/db/geo/migrate/20221017195204_create_project_wiki_repository_registry.rb' + - 'ee/db/geo/migrate/20221018201808_create_dependency_proxy_blob_registry.rb' + - 'ee/db/geo/migrate/20221102195145_create_dependency_proxy_manifest_registry.rb' + - 'ee/db/seeds/awesome_co/awesome_co.rb' + - 'ee/lib/api/dora/metrics.rb' - 'ee/lib/api/epic_issues.rb' + - 'ee/lib/api/geo_replication.rb' + - 'ee/lib/api/iterations.rb' - 'ee/lib/api/managed_licenses.rb' + - 'ee/lib/api/merge_trains.rb' + - 'ee/lib/api/protected_environments.rb' + - 'ee/lib/api/related_epic_links.rb' + - 'ee/lib/api/vulnerability_exports.rb' + - 'ee/lib/api/vulnerability_findings.rb' + - 'ee/lib/audit/project_changes_auditor.rb' + - 'ee/lib/audit/project_setting_changes_auditor.rb' - 'ee/lib/bulk_imports/groups/pipelines/iterations_pipeline.rb' - 'ee/lib/ee/api/entities/approval_settings.rb' - - 'ee/lib/ee/api/members.rb' + - 'ee/lib/ee/api/entities/approval_state.rb' + - 'ee/lib/ee/api/entities/epic.rb' + - 'ee/lib/ee/api/entities/group.rb' + - 'ee/lib/ee/api/entities/group_detail.rb' + - 'ee/lib/ee/api/entities/merge_train.rb' + - 'ee/lib/ee/api/helpers/groups_helpers.rb' + - 'ee/lib/ee/api/helpers/issues_helpers.rb' + - 'ee/lib/ee/api/helpers/merge_requests_helpers.rb' + - 'ee/lib/ee/api/helpers/protected_branches_helpers.rb' + - 'ee/lib/ee/api/merge_requests.rb' + - 'ee/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size.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/ci/config/entry/job.rb' - 'ee/lib/ee/gitlab/ci/config/entry/need.rb' - 'ee/lib/ee/gitlab/event_store.rb' + - 'ee/lib/ee/gitlab/quick_actions/issue_actions.rb' - 'ee/lib/ee/gitlab/web_ide/config/entry/global.rb' + - 'ee/lib/elastic/latest/config.rb' - 'ee/lib/gitlab/analytics/cycle_analytics/summary/group/stage_summary.rb' + - 'ee/lib/gitlab/contribution_analytics/data_collector.rb' + - 'ee/lib/gitlab/ingestion/bulk_updatable_task.rb' + - 'ee/lib/gitlab/insights/loader.rb' - 'ee/lib/gitlab/web_ide/config/entry/schema.rb' + - 'ee/lib/slack/block_kit/app_home_opened.rb' - 'ee/spec/controllers/admin/clusters_controller_spec.rb' + - 'ee/spec/controllers/ee/admin/sessions_controller_spec.rb' - 'ee/spec/controllers/ee/groups_controller_spec.rb' - 'ee/spec/controllers/ee/projects/variables_controller_spec.rb' - 'ee/spec/controllers/groups/clusters_controller_spec.rb' + - 'ee/spec/controllers/groups/security/policies_controller_spec.rb' - 'ee/spec/controllers/groups/todos_controller_spec.rb' + - 'ee/spec/controllers/projects/iterations_controller_spec.rb' + - 'ee/spec/controllers/projects/legacy_pipelines_controller_spec.rb' - 'ee/spec/controllers/projects/merge_requests/creations_controller_spec.rb' - 'ee/spec/controllers/projects/merge_requests_controller_spec.rb' - 'ee/spec/controllers/projects/protected_environments_controller_spec.rb' + - 'ee/spec/controllers/projects/security/sast_configuration_controller_spec.rb' - 'ee/spec/controllers/projects/security/scanned_resources_controller_spec.rb' + - 'ee/spec/controllers/projects/settings/merge_requests_controller_spec.rb' - 'ee/spec/controllers/projects_controller_spec.rb' - 'ee/spec/controllers/subscriptions_controller_spec.rb' - 'ee/spec/factories/epic_tree_nodes.rb' - 'ee/spec/factories/groups.rb' - 'ee/spec/factories/namespaces.rb' - 'ee/spec/factories/users.rb' + - 'ee/spec/features/account_recovery_regular_check_spec.rb' - 'ee/spec/features/billings/billing_plans_spec.rb' - - 'ee/spec/features/ide/user_commits_changes_spec.rb' + - 'ee/spec/features/groups/contribution_analytics_spec.rb' + - 'ee/spec/features/issues/filtered_search/filter_issues_by_health_spec.rb' - 'ee/spec/features/merge_request/user_approves_spec.rb' - 'ee/spec/features/merge_request/user_merges_immediately_spec.rb' - 'ee/spec/features/merge_request/user_sees_approval_widget_spec.rb' @@ -390,23 +736,42 @@ Layout/ArgumentAlignment: - 'ee/spec/features/merge_trains/user_adds_to_merge_train_when_pipeline_succeeds_spec.rb' - 'ee/spec/features/projects/environments/environments_spec.rb' - 'ee/spec/features/projects/merge_requests/user_edits_merge_request_spec.rb' + - 'ee/spec/features/projects/pipelines/legacy_pipeline_spec.rb' - 'ee/spec/features/projects/pipelines/pipeline_spec.rb' + - 'ee/spec/features/registrations/saas/standard_flow_company_creating_project_spec.rb' - 'ee/spec/finders/security/pipeline_vulnerabilities_finder_spec.rb' + - 'ee/spec/finders/security/training_urls_finder_spec.rb' + - 'ee/spec/frontend/fixtures/oncall_schedule.rb' - 'ee/spec/frontend/fixtures/search.rb' + - 'ee/spec/graphql/ee/types/clusters/agent_type_spec.rb' - 'ee/spec/graphql/mutations/requirements_management/export_requirements_spec.rb' - - 'ee/spec/helpers/billing_plans_helper_spec.rb' + - 'ee/spec/helpers/ee/environments_helper_spec.rb' + - 'ee/spec/helpers/ee/namespace_user_cap_reached_alert_helper_spec.rb' - 'ee/spec/helpers/ee/users/callouts_helper_spec.rb' - - 'ee/spec/helpers/routing/pseudonymization_helper_spec.rb' + - 'ee/spec/helpers/projects_helper_spec.rb' - 'ee/spec/helpers/trial_status_widget_helper_spec.rb' - - 'ee/spec/lib/analytics/group_activity_calculator_spec.rb' + - 'ee/spec/lib/audit/protected_branches_changes_auditor_spec.rb' - 'ee/spec/lib/banzai/filter/cross_project_issuable_information_filter_spec.rb' - 'ee/spec/lib/ee/api/entities/analytics/group_activity_spec.rb' + - 'ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size_spec.rb' + - 'ee/spec/lib/ee/gitlab/checks/push_rules/commit_check_spec.rb' + - 'ee/spec/lib/ee/gitlab/ci/status/build/manual_spec.rb' + - 'ee/spec/lib/ee/gitlab/database/gitlab_schema_spec.rb' - 'ee/spec/lib/ee/gitlab/usage_data_spec.rb' - 'ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb' + - 'ee/spec/lib/gitlab/ci/minutes/gitlab_contribution_cost_factor_spec.rb' + - 'ee/spec/lib/gitlab/ci/parsers/security/validators/default_branch_image_validator_spec.rb' - 'ee/spec/lib/gitlab/ci/pipeline/chain/limit/size_spec.rb' + - 'ee/spec/lib/gitlab/ci/templates/container_scanning_latest_gitlab_ci_yaml_spec.rb' + - 'ee/spec/lib/gitlab/ci/templates/dependency_scanning_latest_gitlab_ci_yaml_spec.rb' + - 'ee/spec/lib/gitlab/ci/templates/license_scanning_latest_gitlab_ci_yaml_spec.rb' + - 'ee/spec/lib/gitlab/ci/templates/sast_latest_gitlab_ci_yaml_spec.rb' + - 'ee/spec/lib/gitlab/ci/templates/secret_detection_latest_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/git_access_spec.rb' - 'ee/spec/lib/gitlab/graphql/aggregations/security_orchestration_policies/lazy_dast_profile_aggregate_spec.rb' + - 'ee/spec/lib/gitlab/usage/metrics/instrumentations/count_user_merge_requests_for_projects_with_applied_scan_result_policies_metric_spec.rb' - 'ee/spec/lib/incident_management/oncall_shift_generator_spec.rb' + - 'ee/spec/lib/slack/block_kit/app_home_opened_spec.rb' - 'ee/spec/models/approval_wrapped_code_owner_rule_spec.rb' - 'ee/spec/models/ci/minutes/limit_spec.rb' - 'ee/spec/models/ci/minutes/namespace_monthly_usage_spec.rb' @@ -414,13 +779,18 @@ Layout/ArgumentAlignment: - 'ee/spec/models/ee/audit_event_spec.rb' - 'ee/spec/models/ee/ci/build_dependencies_spec.rb' - 'ee/spec/models/ee/ci/runner_spec.rb' + - 'ee/spec/models/ee/event_spec.rb' - 'ee/spec/models/ee/namespace_spec.rb' - 'ee/spec/models/ee/service_desk_setting_spec.rb' + - 'ee/spec/models/integrations/github/status_message_spec.rb' - 'ee/spec/models/integrations/github_spec.rb' - 'ee/spec/models/ldap_group_link_spec.rb' - 'ee/spec/models/merge_request_spec.rb' - 'ee/spec/models/merge_train_spec.rb' - 'ee/spec/models/project_spec.rb' + - 'ee/spec/models/protected_environments/approval_rule_spec.rb' + - 'ee/spec/models/protected_environments/deploy_access_level_spec.rb' + - 'ee/spec/models/security/orchestration_policy_configuration_spec.rb' - 'ee/spec/models/vulnerabilities/read_spec.rb' - 'ee/spec/policies/merge_request_policy_spec.rb' - 'ee/spec/requests/api/ci/runner/jobs_put_spec.rb' @@ -428,8 +798,10 @@ Layout/ArgumentAlignment: - 'ee/spec/requests/api/graphql/boards/epic_board_list_epics_query_spec.rb' - 'ee/spec/requests/api/graphql/boards/epic_boards_query_spec.rb' - 'ee/spec/requests/api/graphql/boards/epic_lists_query_spec.rb' + - 'ee/spec/requests/api/graphql/ci/minutes/usage_spec.rb' - 'ee/spec/requests/api/graphql/group/dast_profile_schedule_spec.rb' - 'ee/spec/requests/api/graphql/group/epic/epic_issues_spec.rb' + - 'ee/spec/requests/api/graphql/group/epics_spec.rb' - 'ee/spec/requests/api/graphql/mutations/boards/epic_boards/epic_move_list_spec.rb' - 'ee/spec/requests/api/graphql/mutations/epics/create_spec.rb' - 'ee/spec/requests/api/graphql/mutations/epics/update_spec.rb' @@ -444,78 +816,134 @@ Layout/ArgumentAlignment: - 'ee/spec/requests/api/graphql/mutations/vulnerabilities/destroy_external_issue_link_spec.rb' - 'ee/spec/requests/api/graphql/mutations/vulnerabilities/finding_dismiss_spec.rb' - 'ee/spec/requests/api/graphql/namespace/projects_spec.rb' + - 'ee/spec/requests/api/graphql/project/branch_rules/approval_project_rules_spec.rb' + - 'ee/spec/requests/api/graphql/project/deployment_spec.rb' + - 'ee/spec/requests/api/graphql/project/environments_spec.rb' - 'ee/spec/requests/api/graphql/project/issues_spec.rb' + - 'ee/spec/requests/api/graphql/project/pipeline/security_report_finding_spec.rb' - 'ee/spec/requests/api/graphql/project/pipeline/security_report_summary_spec.rb' - 'ee/spec/requests/api/graphql/project/requirements_management/test_reports_spec.rb' + - 'ee/spec/requests/api/graphql/project/security_orchestration/scan_result_policy_spec.rb' - 'ee/spec/requests/api/group_hooks_spec.rb' - 'ee/spec/requests/api/groups_spec.rb' + - 'ee/spec/requests/api/internal/base_spec.rb' - 'ee/spec/requests/api/invitations_spec.rb' - 'ee/spec/requests/api/issues_spec.rb' - 'ee/spec/requests/api/managed_licenses_spec.rb' - 'ee/spec/requests/api/project_push_rule_spec.rb' + - 'ee/spec/requests/api/protected_environments_spec.rb' + - 'ee/spec/requests/api/provider_identity_spec.rb' - 'ee/spec/requests/api/settings_spec.rb' + - 'ee/spec/requests/groups/protected_environments_controller_spec.rb' - 'ee/spec/requests/groups_controller_spec.rb' - - 'ee/spec/requests/projects/mirrors_controller_spec.rb' - 'ee/spec/requests/projects/requirements_management/requirements_controller_spec.rb' + - 'ee/spec/serializers/protected_environments/deploy_access_level_entity_spec.rb' - 'ee/spec/serializers/vulnerabilities/finding_entity_spec.rb' - 'ee/spec/services/approval_rules/update_service_spec.rb' - 'ee/spec/services/audit_events/export_csv_service_spec.rb' - 'ee/spec/services/auto_merge/add_to_merge_train_when_pipeline_succeeds_service_spec.rb' - 'ee/spec/services/auto_merge/merge_train_service_spec.rb' + - 'ee/spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb' - 'ee/spec/services/ci/create_pipeline_service/cross_needs_artifacts_spec.rb' - 'ee/spec/services/ci/external_pull_requests/process_github_event_service_spec.rb' - 'ee/spec/services/ci/minutes/batch_reset_service_spec.rb' - 'ee/spec/services/ci/minutes/update_build_minutes_service_spec.rb' - 'ee/spec/services/ci/pipeline_creation/drop_not_runnable_builds_service_spec.rb' + - 'ee/spec/services/ci/subscribe_bridge_service_spec.rb' - 'ee/spec/services/ee/merge_requests/create_pipeline_service_spec.rb' - 'ee/spec/services/ee/merge_requests/refresh_service_spec.rb' - 'ee/spec/services/ee/protected_branches/create_service_spec.rb' - 'ee/spec/services/epics/update_service_spec.rb' - 'ee/spec/services/geo/file_registry_removal_service_spec.rb' - 'ee/spec/services/geo/repository_verification_primary_service_spec.rb' + - 'ee/spec/services/incident_management/issuable_resource_links/create_service_spec.rb' + - 'ee/spec/services/incident_management/issuable_resource_links/destroy_service_spec.rb' + - 'ee/spec/services/issuable/discussions_list_service_spec.rb' + - 'ee/spec/services/merge_request_approval_settings/update_service_spec.rb' - 'ee/spec/services/merge_requests/reset_approvals_service_spec.rb' + - 'ee/spec/services/merge_trains/check_status_service_spec.rb' - 'ee/spec/services/merge_trains/create_pipeline_service_spec.rb' + - 'ee/spec/services/merge_trains/refresh_merge_request_service_spec.rb' + - 'ee/spec/services/merge_trains/refresh_service_spec.rb' - 'ee/spec/services/projects/mark_for_deletion_service_spec.rb' - 'ee/spec/services/projects/restore_service_spec.rb' + - 'ee/spec/services/security/findings/dismiss_service_spec.rb' + - 'ee/spec/services/security/ingestion/tasks/ingest_vulnerabilities/mark_resolved_as_detected_spec.rb' + - 'ee/spec/services/security/ingestion/tasks/ingest_vulnerabilities_spec.rb' - 'ee/spec/services/security/merge_reports_service_spec.rb' + - 'ee/spec/services/security/orchestration/unassign_service_spec.rb' - 'ee/spec/services/security/report_summary_service_spec.rb' - 'ee/spec/services/security/security_orchestration_policies/rule_schedule_service_spec.rb' + - 'ee/spec/services/security/security_orchestration_policies/sync_scan_result_policies_service_spec.rb' - 'ee/spec/services/todo_service_spec.rb' + - 'ee/spec/services/users/abuse/git_abuse/namespace_throttle_service_spec.rb' + - 'ee/spec/services/users/email_verification/send_custom_confirmation_instructions_service_spec.rb' + - 'ee/spec/services/vulnerabilities/find_or_create_from_security_finding_service_spec.rb' + - 'ee/spec/services/vulnerabilities/findings/find_or_create_from_security_finding_service_spec.rb' + - 'ee/spec/services/vulnerabilities/security_finding/create_issue_service_spec.rb' + - 'ee/spec/services/vulnerabilities/starboard_vulnerability_resolve_service_spec.rb' - 'ee/spec/support/helpers/ee/geo_helpers.rb' - 'ee/spec/support/shared_examples/features/credentials_inventory_shared_examples.rb' + - 'ee/spec/support/shared_examples/features/password_complexity_shared_examples.rb' - 'ee/spec/views/groups/feature_discovery_moments/advanced_features_dashboard.html.haml_spec.rb' + - 'ee/spec/views/groups/settings/reporting/show.html.haml_spec.rb' - 'ee/spec/views/layouts/_search.html.haml_spec.rb' + - 'ee/spec/views/shared/credentials_inventory/resource_access_tokens/_resource_access_token.html.haml_spec.rb' - 'ee/spec/workers/adjourned_group_deletion_worker_spec.rb' + - 'ee/spec/workers/analytics/cycle_analytics/consistency_worker_spec.rb' - 'ee/spec/workers/ci/batch_reset_minutes_worker_spec.rb' + - 'ee/spec/workers/concerns/update_orchestration_policy_configuration_spec.rb' - 'ee/spec/workers/geo/repository_verification/primary/shard_worker_spec.rb' + - 'ee/spec/workers/namespaces/sync_namespace_name_worker_spec.rb' + - 'lib/api/admin/batched_background_migrations.rb' - 'lib/api/admin/ci/variables.rb' - - 'lib/api/ci/job_artifacts.rb' + - 'lib/api/alert_management_alerts.rb' + - 'lib/api/ci/runners.rb' - 'lib/api/commits.rb' - 'lib/api/concerns/packages/npm_endpoints.rb' - 'lib/api/deploy_keys.rb' - 'lib/api/deployments.rb' + - 'lib/api/entities/ci/job.rb' + - 'lib/api/entities/ci/job_artifact.rb' + - 'lib/api/entities/ci/pipeline.rb' - 'lib/api/entities/ci/pipeline_schedule_details.rb' + - 'lib/api/entities/ci/runner.rb' + - 'lib/api/entities/ci/secure_file.rb' + - 'lib/api/entities/compare.rb' + - 'lib/api/entities/deploy_key.rb' - 'lib/api/entities/diff_position.rb' - 'lib/api/entities/event.rb' + - 'lib/api/entities/group_detail.rb' - 'lib/api/entities/internal/pages/lookup_path.rb' - 'lib/api/entities/merge_request_diff.rb' + - 'lib/api/entities/merge_request_simple.rb' - 'lib/api/entities/pages_domain.rb' - 'lib/api/entities/pages_domain_basic.rb' + - 'lib/api/entities/protected_ref_access.rb' + - 'lib/api/entities/pull_mirror.rb' + - 'lib/api/entities/release.rb' + - 'lib/api/environments.rb' + - 'lib/api/error_tracking/project_settings.rb' - 'lib/api/feature_flags.rb' - 'lib/api/feature_flags_user_lists.rb' - 'lib/api/features.rb' + - 'lib/api/freeze_periods.rb' - 'lib/api/helm_packages.rb' - 'lib/api/helpers/internal_helpers.rb' - - 'lib/api/helpers/merge_requests_helpers.rb' + - 'lib/api/internal/pages.rb' - 'lib/api/issues.rb' - 'lib/api/merge_requests.rb' - 'lib/api/project_container_repositories.rb' - 'lib/api/project_import.rb' + - 'lib/api/protected_branches.rb' + - 'lib/api/release/links.rb' - 'lib/api/releases.rb' - 'lib/api/remote_mirrors.rb' - 'lib/api/repositories.rb' - 'lib/api/search.rb' + - 'lib/api/submodules.rb' - 'lib/api/tags.rb' + - 'lib/api/unleash.rb' - 'lib/api/users.rb' - 'lib/api/wikis.rb' - 'lib/banzai/filter/commit_trailers_filter.rb' @@ -529,8 +957,10 @@ Layout/ArgumentAlignment: - 'lib/gem_extensions/active_record/disable_joins/associations/association_scope.rb' - 'lib/generators/gitlab/usage_metric_definition_generator.rb' - 'lib/gitlab/background_migration/backfill_ci_queuing_tables.rb' + - 'lib/gitlab/background_migration/backfill_integrations_enable_ssl_verification.rb' - 'lib/gitlab/background_migration/backfill_project_repositories.rb' - 'lib/gitlab/background_migration/batching_strategies/base_strategy.rb' + - 'lib/gitlab/background_migration/batching_strategies/primary_key_batching_strategy.rb' - 'lib/gitlab/background_migration/legacy_upload_mover.rb' - 'lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb' - 'lib/gitlab/ci/config/entry/artifacts.rb' @@ -538,7 +968,8 @@ Layout/ArgumentAlignment: - 'lib/gitlab/ci/config/entry/cache.rb' - 'lib/gitlab/ci/config/entry/default.rb' - 'lib/gitlab/ci/config/entry/environment.rb' - - 'lib/gitlab/ci/config/entry/image.rb' + - 'lib/gitlab/ci/config/entry/hooks.rb' + - 'lib/gitlab/ci/config/entry/imageable.rb' - 'lib/gitlab/ci/config/entry/include.rb' - 'lib/gitlab/ci/config/entry/inherit.rb' - 'lib/gitlab/ci/config/entry/job.rb' @@ -553,7 +984,6 @@ Layout/ArgumentAlignment: - 'lib/gitlab/ci/config/entry/workflow.rb' - 'lib/gitlab/ci/pipeline/chain/config/process.rb' - 'lib/gitlab/ci/trace.rb' - - 'lib/gitlab/ci/variables/builder.rb' - 'lib/gitlab/config/loader/yaml.rb' - 'lib/gitlab/conflict/file.rb' - 'lib/gitlab/data_builder/pipeline.rb' @@ -562,6 +992,7 @@ Layout/ArgumentAlignment: - 'lib/gitlab/database/load_balancing/resolver.rb' - 'lib/gitlab/database/partitioning/replace_table.rb' - 'lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb' + - 'lib/gitlab/database/query_analyzers/restrict_allowed_schemas.rb' - 'lib/gitlab/database_importers/instance_administrators/create_group.rb' - 'lib/gitlab/database_importers/self_monitoring/project/create_service.rb' - 'lib/gitlab/database_importers/self_monitoring/project/delete_service.rb' @@ -569,21 +1000,27 @@ Layout/ArgumentAlignment: - 'lib/gitlab/diff/file_collection/base.rb' - 'lib/gitlab/diff/suggestion.rb' - 'lib/gitlab/error_tracking/error.rb' + - 'lib/gitlab/event_store.rb' - 'lib/gitlab/git/repository.rb' - 'lib/gitlab/gitaly_client/operation_service.rb' + - 'lib/gitlab/gitaly_client/remote_service.rb' - 'lib/gitlab/github_import/importer/pull_request_importer.rb' - 'lib/gitlab/github_import/representation/diff_note.rb' - 'lib/gitlab/gpg.rb' - 'lib/gitlab/graphs/commits.rb' - 'lib/gitlab/kubernetes/kube_client.rb' - 'lib/gitlab/legacy_github_import/client.rb' + - 'lib/gitlab/metrics/methods.rb' - 'lib/gitlab/middleware/read_only/controller.rb' - 'lib/gitlab/net_http_adapter.rb' + - 'lib/gitlab/octokit/middleware.rb' - 'lib/gitlab/phabricator_import/cache/map.rb' - 'lib/gitlab/quick_actions/command_definition.rb' + - 'lib/gitlab/redis/multi_store.rb' - 'lib/gitlab/search/abuse_detection.rb' + - 'lib/gitlab/sidekiq_daemon/memory_killer.rb' - 'lib/gitlab/spamcheck/client.rb' - - 'lib/gitlab/usage_data.rb' + - 'lib/gitlab/url_builder.rb' - 'lib/gitlab/utils/delegator_override/validator.rb' - 'lib/gitlab/web_ide/config.rb' - 'lib/gitlab/web_ide/config/entry/global.rb' @@ -592,12 +1029,53 @@ Layout/ArgumentAlignment: - 'lib/safe_zip/extract.rb' - 'lib/tasks/gitlab/shell.rake' - 'lib/tasks/gitlab/update_templates.rake' - - 'qa/qa/page/base.rb' + - 'qa/qa/ee/resource/license.rb' + - 'qa/qa/ee/resource/vulnerability_item.rb' + - 'qa/qa/page/component/groups_filter.rb' + - 'qa/qa/resource/members.rb' + - 'qa/qa/resource/personal_access_token.rb' + - 'qa/qa/resource/user.rb' - 'qa/qa/scenario/shared_attributes.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/distributed_reads_spec.rb' + - 'qa/qa/specs/features/api/1_manage/user_inherited_access_spec.rb' + - 'qa/qa/specs/features/api/3_create/repository/storage_size_spec.rb' + - 'qa/qa/specs/features/api/8_monitor/metrics_spec.rb' + - 'qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/pages/new_static_page_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_content_creation_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_content_manipulation_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_directory_management_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_file_upload_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_list_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/project_wiki/project_based_page_deletion_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/license_detection_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_ssh_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/source_editor/source_editor_toolbar_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/web_ide/open_fork_in_web_ide_spec.rb' + - 'qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb' + - 'qa/qa/specs/features/browser_ui/4_verify/ci_variable/raw_variables_defined_in_yaml_spec.rb' + - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb' + - 'qa/qa/specs/features/browser_ui/5_package/package_registry/maven/maven_project_level_spec.rb' + - 'qa/qa/specs/features/browser_ui/5_package/package_registry/nuget/nuget_project_level_spec.rb' + - 'qa/qa/specs/features/browser_ui/5_package/package_registry/rubygems_registry_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/fix_vulnerability_workflow_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/policies_list_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/vulnerabilities_jira_integration_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/cloud_activation_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/free_namespace_storage_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/12_systems/geo/rename_replication_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/14_model_ops/suggested_reviewer_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/3_create/group_wiki/delete_group_wiki_page_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/3_create/group_wiki/file_upload_group_wiki_page_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_ssh_with_key_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/4_verify/job_trace_archival_spec.rb' + - 'qa/qa/tools/delete_test_snippets.rb' + - 'qa/qa/tools/delete_user_projects.rb' - 'qa/qa/tools/generate_perf_testdata.rb' + - 'qa/qa/tools/revoke_user_personal_access_tokens.rb' - 'qa/spec/git/repository_spec.rb' - 'qa/spec/runtime/env_spec.rb' - 'scripts/changed-feature-flags' @@ -605,7 +1083,9 @@ Layout/ArgumentAlignment: - 'spec/bin/feature_flag_spec.rb' - 'spec/controllers/admin/ci/variables_controller_spec.rb' - 'spec/controllers/admin/clusters_controller_spec.rb' + - 'spec/controllers/concerns/redis_tracking_spec.rb' - 'spec/controllers/concerns/renders_commits_spec.rb' + - 'spec/controllers/graphql_controller_spec.rb' - 'spec/controllers/groups/clusters_controller_spec.rb' - 'spec/controllers/groups/milestones_controller_spec.rb' - 'spec/controllers/groups/variables_controller_spec.rb' @@ -617,6 +1097,7 @@ Layout/ArgumentAlignment: - 'spec/controllers/projects/commit_controller_spec.rb' - 'spec/controllers/projects/design_management/designs/raw_images_controller_spec.rb' - 'spec/controllers/projects/design_management/designs/resized_image_controller_spec.rb' + - 'spec/controllers/projects/environments_controller_spec.rb' - 'spec/controllers/projects/feature_flags_clients_controller_spec.rb' - 'spec/controllers/projects/forks_controller_spec.rb' - 'spec/controllers/projects/grafana_api_controller_spec.rb' @@ -627,6 +1108,8 @@ Layout/ArgumentAlignment: - 'spec/controllers/projects/pipeline_schedules_controller_spec.rb' - 'spec/controllers/projects/pipelines/tests_controller_spec.rb' - 'spec/controllers/projects/pipelines_controller_spec.rb' + - 'spec/controllers/projects/service_desk_controller_spec.rb' + - 'spec/controllers/projects/settings/ci_cd_controller_spec.rb' - 'spec/controllers/projects/settings/operations_controller_spec.rb' - 'spec/controllers/projects/tags_controller_spec.rb' - 'spec/controllers/projects/todos_controller_spec.rb' @@ -638,9 +1121,11 @@ Layout/ArgumentAlignment: - 'spec/factories/integrations.rb' - 'spec/factories/merge_requests.rb' - 'spec/factories/notes.rb' - - 'spec/factories/projects.rb' - - 'spec/factories/snippets.rb' + - 'spec/features/admin/integrations/user_activates_mattermost_slash_command_spec.rb' + - 'spec/features/broadcast_messages_spec.rb' + - 'spec/features/clusters/cluster_health_dashboard_spec.rb' - 'spec/features/dashboard/merge_requests_spec.rb' + - 'spec/features/help_dropdown_spec.rb' - 'spec/features/issuables/issuable_list_spec.rb' - 'spec/features/issues/filtered_search/filter_issues_spec.rb' - 'spec/features/merge_request/user_creates_mr_spec.rb' @@ -655,22 +1140,31 @@ Layout/ArgumentAlignment: - 'spec/features/merge_request/user_sees_versions_spec.rb' - 'spec/features/merge_requests/user_lists_merge_requests_spec.rb' - 'spec/features/merge_requests/user_views_open_merge_requests_spec.rb' + - 'spec/features/nav/top_nav_tooltip_spec.rb' + - 'spec/features/profiles/user_changes_notified_of_own_activity_spec.rb' + - 'spec/features/projects/branches_spec.rb' - 'spec/features/projects/commit/mini_pipeline_graph_spec.rb' - 'spec/features/projects/environments/environment_spec.rb' - 'spec/features/projects/environments/environments_spec.rb' + - 'spec/features/projects/feature_flags/user_updates_feature_flag_spec.rb' - 'spec/features/projects/files/editing_a_file_spec.rb' - 'spec/features/projects/files/project_owner_creates_license_file_spec.rb' + - 'spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb' + - 'spec/features/projects/files/user_browses_a_tree_with_a_folder_containing_only_a_folder_spec.rb' - 'spec/features/projects/files/user_reads_pipeline_status_spec.rb' - 'spec/features/projects/issues/viewing_issues_with_external_authorization_enabled_spec.rb' - 'spec/features/projects/jobs_spec.rb' - - 'spec/features/projects/milestones/milestones_sorting_spec.rb' + - 'spec/features/projects/pipelines/legacy_pipeline_spec.rb' + - 'spec/features/projects/pipelines/legacy_pipelines_spec.rb' - 'spec/features/projects/pipelines/pipeline_spec.rb' - 'spec/features/projects/pipelines/pipelines_spec.rb' + - 'spec/features/tags/developer_deletes_tag_spec.rb' - 'spec/finders/ci/commit_statuses_finder_spec.rb' - 'spec/finders/ci/pipelines_for_merge_request_finder_spec.rb' - 'spec/finders/clusters/knative_services_finder_spec.rb' - 'spec/finders/clusters/kubernetes_namespace_finder_spec.rb' - 'spec/finders/group_descendants_finder_spec.rb' + - 'spec/finders/incident_management/timeline_event_tags_finder_spec.rb' - 'spec/finders/keys_finder_spec.rb' - 'spec/finders/merge_requests_finder_spec.rb' - 'spec/finders/personal_access_tokens_finder_spec.rb' @@ -684,12 +1178,17 @@ Layout/ArgumentAlignment: - 'spec/graphql/mutations/customer_relations/organizations/create_spec.rb' - 'spec/graphql/mutations/dependency_proxy/group_settings/update_spec.rb' - 'spec/graphql/mutations/dependency_proxy/image_ttl_group_policy/update_spec.rb' + - 'spec/graphql/mutations/incident_management/timeline_event/create_spec.rb' - 'spec/graphql/mutations/namespace/package_settings/update_spec.rb' + - 'spec/graphql/resolvers/environments/last_deployment_resolver_spec.rb' + - 'spec/graphql/resolvers/incident_management/timeline_event_tags_resolver_spec.rb' - 'spec/graphql/types/project_statistics_type_spec.rb' + - 'spec/graphql/types/project_type_spec.rb' - 'spec/graphql/types/root_storage_statistics_type_spec.rb' - 'spec/helpers/notes_helper_spec.rb' - - 'spec/helpers/search_helper_spec.rb' - 'spec/helpers/todos_helper_spec.rb' + - 'spec/initializers/00_rails_disable_joins_spec.rb' + - 'spec/initializers/net_http_response_patch_spec.rb' - 'spec/initializers/secret_token_spec.rb' - 'spec/lib/atlassian/jira_connect/serializers/feature_flag_entity_spec.rb' - 'spec/lib/backup/manager_spec.rb' @@ -700,11 +1199,18 @@ Layout/ArgumentAlignment: - 'spec/lib/constraints/group_url_constrainer_spec.rb' - 'spec/lib/constraints/project_url_constrainer_spec.rb' - 'spec/lib/constraints/user_url_constrainer_spec.rb' + - 'spec/lib/feature/definition_spec.rb' - 'spec/lib/feature_spec.rb' - 'spec/lib/gitlab/alert_management/payload/managed_prometheus_spec.rb' - 'spec/lib/gitlab/api_authentication/builder_spec.rb' + - 'spec/lib/gitlab/application_rate_limiter/increment_per_actioned_resource_spec.rb' - 'spec/lib/gitlab/asciidoc_spec.rb' + - 'spec/lib/gitlab/background_migration/backfill_draft_status_on_merge_requests_with_corrected_regex_spec.rb' + - 'spec/lib/gitlab/background_migration/backfill_imported_issue_search_data_spec.rb' + - 'spec/lib/gitlab/background_migration/batched_migration_job_spec.rb' + - 'spec/lib/gitlab/background_migration/disable_legacy_open_source_license_for_inactive_public_projects_spec.rb' - 'spec/lib/gitlab/background_migration/legacy_upload_mover_spec.rb' + - 'spec/lib/gitlab/background_migration/reset_too_many_tags_skipped_registry_imports_spec.rb' - 'spec/lib/gitlab/cache/ci/project_pipeline_status_spec.rb' - 'spec/lib/gitlab/checks/matching_merge_request_spec.rb' - 'spec/lib/gitlab/ci/build/artifacts/metadata_spec.rb' @@ -716,87 +1222,123 @@ Layout/ArgumentAlignment: - 'spec/lib/gitlab/ci/config/external/file/artifact_spec.rb' - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - 'spec/lib/gitlab/ci/parsers/test/junit_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/assign_partition_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/command_spec.rb' - 'spec/lib/gitlab/ci/pipeline/chain/remove_unwanted_chat_jobs_spec.rb' - 'spec/lib/gitlab/ci/pipeline/chain/validate/abilities_spec.rb' - 'spec/lib/gitlab/ci/pipeline/quota/deployments_spec.rb' - - 'spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb' - 'spec/lib/gitlab/ci/status/bridge/common_spec.rb' - 'spec/lib/gitlab/ci/status/build/factory_spec.rb' - 'spec/lib/gitlab/ci/variables/builder/group_spec.rb' - 'spec/lib/gitlab/ci/variables/builder/project_spec.rb' - 'spec/lib/gitlab/ci/variables/builder_spec.rb' + - 'spec/lib/gitlab/cleanup/personal_access_tokens_spec.rb' - 'spec/lib/gitlab/config/entry/composable_hash_spec.rb' - 'spec/lib/gitlab/config/entry/configurable_spec.rb' - 'spec/lib/gitlab/current_settings_spec.rb' + - 'spec/lib/gitlab/data_builder/note_spec.rb' - 'spec/lib/gitlab/data_builder/pipeline_spec.rb' - 'spec/lib/gitlab/database/background_migration/batched_migration_runner_spec.rb' - 'spec/lib/gitlab/database/background_migration/batched_migration_spec.rb' - 'spec/lib/gitlab/database/background_migration/batched_migration_wrapper_spec.rb' - 'spec/lib/gitlab/database/batch_count_spec.rb' + - 'spec/lib/gitlab/database/each_database_spec.rb' - 'spec/lib/gitlab/database/gitlab_schema_spec.rb' + - 'spec/lib/gitlab/database/loose_foreign_keys_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/background_migration_helpers_spec.rb' + - 'spec/lib/gitlab/database/migrations/batched_background_migration_helpers_spec.rb' - 'spec/lib/gitlab/database/partitioning/monthly_strategy_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/rename_reserved_paths_migration/v1/rename_base_spec.rb' - 'spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces_spec.rb' - 'spec/lib/gitlab/email/message/repository_push_spec.rb' - - 'spec/lib/gitlab/encoding_helper_spec.rb' - 'spec/lib/gitlab/external_authorization/client_spec.rb' - 'spec/lib/gitlab/fogbugz_import/project_creator_spec.rb' - 'spec/lib/gitlab/git/repository_spec.rb' - 'spec/lib/gitlab/git_access_spec.rb' + - 'spec/lib/gitlab/github_import/importer/protected_branches_importer_spec.rb' - 'spec/lib/gitlab/gpg/invalid_gpg_signature_updater_spec.rb' - 'spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb' - 'spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/token_logger_spec.rb' + - 'spec/lib/gitlab/graphql/deprecation_spec.rb' - 'spec/lib/gitlab/import_export/importer_spec.rb' - 'spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb' + - 'spec/lib/gitlab/import_export/project/exported_relations_merger_spec.rb' - 'spec/lib/gitlab/import_export/project/object_builder_spec.rb' + - 'spec/lib/gitlab/import_export/project/relation_saver_spec.rb' - 'spec/lib/gitlab/import_export/project/tree_restorer_spec.rb' - 'spec/lib/gitlab/import_export/project/tree_saver_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/importer_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/importers/prometheus_metrics_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/validator/post_schema_validator_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/validator_spec.rb' + - 'spec/lib/gitlab/metrics/requests_rack_middleware_spec.rb' + - 'spec/lib/gitlab/pagination/keyset/column_order_definition_spec.rb' - 'spec/lib/gitlab/phabricator_import/conduit/response_spec.rb' + - 'spec/lib/gitlab/redis/duplicate_jobs_spec.rb' + - 'spec/lib/gitlab/redis/multi_store_spec.rb' + - 'spec/lib/gitlab/redis/sidekiq_status_spec.rb' + - 'spec/lib/gitlab/sidekiq_middleware/duplicate_jobs/client_spec.rb' - 'spec/lib/gitlab/spamcheck/client_spec.rb' + - 'spec/lib/gitlab/tracking_spec.rb' - 'spec/lib/gitlab/url_blocker_spec.rb' - 'spec/lib/gitlab/usage/metric_spec.rb' + - 'spec/lib/gitlab/usage/metrics/instrumentations/count_bulk_imports_entities_metric_spec.rb' + - 'spec/lib/gitlab/usage/metrics/instrumentations/count_imported_projects_metric_spec.rb' + - 'spec/lib/gitlab/usage/metrics/instrumentations/merge_request_widget_extension_metric_spec.rb' - 'spec/lib/gitlab/usage/metrics/query_spec.rb' - 'spec/lib/gitlab/usage_data_counters/designs_counter_spec.rb' - 'spec/lib/gitlab/usage_data_counters/snippet_counter_spec.rb' - 'spec/lib/gitlab/usage_data_counters/wiki_page_counter_spec.rb' - 'spec/lib/gitlab/usage_data_queries_spec.rb' + - 'spec/lib/gitlab/web_hooks/rate_limiter_spec.rb' - 'spec/lib/mattermost/session_spec.rb' - 'spec/lib/peek/views/detailed_view_spec.rb' - 'spec/lib/system_check/base_check_spec.rb' + - 'spec/lib/system_check/incoming_email_check_spec.rb' - 'spec/mailers/emails/pipelines_spec.rb' - 'spec/mailers/notify_spec.rb' - 'spec/models/active_session_spec.rb' + - 'spec/models/bulk_imports/export_status_spec.rb' - 'spec/models/ci/build_dependencies_spec.rb' - 'spec/models/ci/build_spec.rb' - 'spec/models/ci/build_trace_metadata_spec.rb' - 'spec/models/ci/commit_with_pipeline_spec.rb' + - 'spec/models/ci/job_artifact_spec.rb' - 'spec/models/ci/job_token/project_scope_link_spec.rb' - 'spec/models/ci/pipeline_spec.rb' + - 'spec/models/ci/processable_spec.rb' - 'spec/models/clusters/applications/knative_spec.rb' + - 'spec/models/commit_spec.rb' + - 'spec/models/commit_status_spec.rb' - 'spec/models/concerns/bulk_insert_safe_spec.rb' + - 'spec/models/concerns/ci/partitionable/switch_spec.rb' - 'spec/models/concerns/deployment_platform_spec.rb' + - 'spec/models/customer_relations/contact_spec.rb' + - 'spec/models/deployment_spec.rb' - 'spec/models/design_management/design_spec.rb' - 'spec/models/diff_note_spec.rb' - 'spec/models/environment_spec.rb' - 'spec/models/external_pull_request_spec.rb' - 'spec/models/instance_configuration_spec.rb' + - 'spec/models/integrations/every_integration_spec.rb' - 'spec/models/integrations/pipelines_email_spec.rb' - 'spec/models/merge_request_spec.rb' + - 'spec/models/milestone_spec.rb' - 'spec/models/note_spec.rb' + - 'spec/models/personal_access_token_spec.rb' - 'spec/models/project_spec.rb' - 'spec/models/repository_spec.rb' - 'spec/models/u2f_registration_spec.rb' + - 'spec/models/user_spec.rb' - 'spec/presenters/blob_presenter_spec.rb' + - 'spec/requests/admin/batched_jobs_controller_spec.rb' - 'spec/requests/api/admin/ci/variables_spec.rb' + - 'spec/requests/api/alert_management_alerts_spec.rb' - 'spec/requests/api/badges_spec.rb' - 'spec/requests/api/broadcast_messages_spec.rb' - 'spec/requests/api/ci/job_artifacts_spec.rb' @@ -804,50 +1346,73 @@ Layout/ArgumentAlignment: - 'spec/requests/api/ci/pipelines_spec.rb' - 'spec/requests/api/ci/runner/jobs_request_post_spec.rb' - 'spec/requests/api/ci/triggers_spec.rb' + - 'spec/requests/api/ci/variables_spec.rb' - 'spec/requests/api/commit_statuses_spec.rb' + - 'spec/requests/api/commits_spec.rb' - 'spec/requests/api/discussions_spec.rb' + - 'spec/requests/api/feature_flags_spec.rb' + - 'spec/requests/api/graphql/ci/group_variables_spec.rb' + - 'spec/requests/api/graphql/ci/runner_spec.rb' + - 'spec/requests/api/graphql/ci/runners_spec.rb' - 'spec/requests/api/graphql/group/dependency_proxy_manifests_spec.rb' - 'spec/requests/api/graphql/group/group_members_spec.rb' - 'spec/requests/api/graphql/group/milestones_spec.rb' - 'spec/requests/api/graphql/mutations/award_emojis/add_spec.rb' - 'spec/requests/api/graphql/mutations/award_emojis/toggle_spec.rb' + - 'spec/requests/api/graphql/mutations/ci/job_retry_spec.rb' - 'spec/requests/api/graphql/mutations/ci/job_token_scope/remove_project_spec.rb' + - 'spec/requests/api/graphql/mutations/ci/project_ci_cd_settings_update_spec.rb' - 'spec/requests/api/graphql/mutations/commits/create_spec.rb' - 'spec/requests/api/graphql/mutations/discussions/toggle_resolve_spec.rb' + - 'spec/requests/api/graphql/mutations/incident_management/timeline_event/create_spec.rb' + - 'spec/requests/api/graphql/mutations/incident_management/timeline_event/update_spec.rb' - 'spec/requests/api/graphql/mutations/labels/create_spec.rb' - 'spec/requests/api/graphql/mutations/merge_requests/create_spec.rb' - 'spec/requests/api/graphql/mutations/metrics/dashboard/annotations/create_spec.rb' - 'spec/requests/api/graphql/mutations/namespace/package_settings/update_spec.rb' - 'spec/requests/api/graphql/mutations/notes/create/note_spec.rb' + - 'spec/requests/api/graphql/mutations/notes/update/note_spec.rb' + - 'spec/requests/api/graphql/mutations/releases/update_spec.rb' + - 'spec/requests/api/graphql/mutations/work_items/create_spec.rb' + - 'spec/requests/api/graphql/mutations/work_items/update_spec.rb' - 'spec/requests/api/graphql/project/container_repositories_spec.rb' + - 'spec/requests/api/graphql/project/incident_management/timeline_events_spec.rb' - 'spec/requests/api/graphql/project/issue/design_collection/version_spec.rb' - 'spec/requests/api/graphql/project/issue/design_collection/versions_spec.rb' + - 'spec/requests/api/graphql/project/issues_spec.rb' + - 'spec/requests/api/graphql/project/milestones_spec.rb' - 'spec/requests/api/graphql/project/project_members_spec.rb' - 'spec/requests/api/graphql/project/release_spec.rb' - 'spec/requests/api/graphql/project/releases_spec.rb' - 'spec/requests/api/graphql/project/terraform/states_spec.rb' - 'spec/requests/api/graphql/tasks/task_completion_status_spec.rb' - - 'spec/requests/api/import_github_spec.rb' + - 'spec/requests/api/group_variables_spec.rb' + - 'spec/requests/api/import_bitbucket_server_spec.rb' + - 'spec/requests/api/internal/lfs_spec.rb' + - 'spec/requests/api/invitations_spec.rb' - 'spec/requests/api/issues/get_group_issues_spec.rb' - 'spec/requests/api/issues/get_project_issues_spec.rb' - 'spec/requests/api/issues/post_projects_issues_spec.rb' - 'spec/requests/api/issues/put_projects_issues_spec.rb' - 'spec/requests/api/labels_spec.rb' + - 'spec/requests/api/members_spec.rb' - 'spec/requests/api/merge_requests_spec.rb' - 'spec/requests/api/namespaces_spec.rb' - 'spec/requests/api/notes_spec.rb' - 'spec/requests/api/oauth_tokens_spec.rb' - - 'spec/requests/api/project_hooks_spec.rb' + - 'spec/requests/api/personal_access_tokens_spec.rb' + - 'spec/requests/api/project_export_spec.rb' - 'spec/requests/api/projects_spec.rb' - 'spec/requests/api/protected_tags_spec.rb' - 'spec/requests/api/releases_spec.rb' - 'spec/requests/api/settings_spec.rb' - - 'spec/requests/api/system_hooks_spec.rb' + - 'spec/requests/api/suggestions_spec.rb' + - 'spec/requests/api/unleash_spec.rb' - 'spec/requests/api/users_spec.rb' - 'spec/requests/git_http_spec.rb' - - 'spec/requests/lfs_http_spec.rb' - 'spec/requests/oauth_tokens_spec.rb' - 'spec/requests/openid_connect_spec.rb' + - 'spec/requests/projects/environments_controller_spec.rb' - 'spec/requests/self_monitoring_project_spec.rb' - 'spec/routing/project_routing_spec.rb' - 'spec/rubocop/cop/rspec/be_success_matcher_spec.rb' @@ -859,20 +1424,32 @@ Layout/ArgumentAlignment: - 'spec/services/ci/archive_trace_service_spec.rb' - 'spec/services/ci/create_downstream_pipeline_service_spec.rb' - 'spec/services/ci/create_pipeline_service/custom_config_content_spec.rb' + - 'spec/services/ci/create_pipeline_service/environment_spec.rb' + - 'spec/services/ci/create_pipeline_service/partitioning_spec.rb' + - 'spec/services/ci/create_pipeline_service/rate_limit_spec.rb' - 'spec/services/ci/create_pipeline_service_spec.rb' - 'spec/services/ci/job_artifacts/create_service_spec.rb' + - 'spec/services/ci/job_artifacts/update_unknown_locked_status_service_spec.rb' - 'spec/services/ci/job_token_scope/remove_project_service_spec.rb' - 'spec/services/ci/pipeline_processing/atomic_processing_service_spec.rb' - 'spec/services/ci/register_job_service_spec.rb' + - 'spec/services/ci/retry_job_service_spec.rb' - 'spec/services/ci/retry_pipeline_service_spec.rb' - 'spec/services/dependency_proxy/group_settings/update_service_spec.rb' - 'spec/services/dependency_proxy/image_ttl_group_policies/update_service_spec.rb' - 'spec/services/deployments/update_environment_service_spec.rb' - 'spec/services/discussions/capture_diff_note_positions_service_spec.rb' + - 'spec/services/environments/create_for_build_service_spec.rb' - 'spec/services/environments/stop_service_spec.rb' - 'spec/services/files/delete_service_spec.rb' - 'spec/services/files/update_service_spec.rb' + - 'spec/services/google_cloud/fetch_google_ip_list_service_spec.rb' + - 'spec/services/incident_management/timeline_event_tags/create_service_spec.rb' + - 'spec/services/incident_management/timeline_events/update_service_spec.rb' + - 'spec/services/issues/relative_position_rebalancing_service_spec.rb' - 'spec/services/issues/resolve_discussions_spec.rb' + - 'spec/services/jira_connect_subscriptions/create_service_spec.rb' + - 'spec/services/merge_requests/build_service_spec.rb' - 'spec/services/merge_requests/create_pipeline_service_spec.rb' - 'spec/services/merge_requests/merge_service_spec.rb' - 'spec/services/merge_requests/post_merge_service_spec.rb' @@ -883,13 +1460,17 @@ Layout/ArgumentAlignment: - 'spec/services/merge_requests/update_service_spec.rb' - 'spec/services/metrics/dashboard/clone_dashboard_service_spec.rb' - 'spec/services/namespaces/package_settings/update_service_spec.rb' + - 'spec/services/notes/destroy_service_spec.rb' - 'spec/services/notification_service_spec.rb' - 'spec/services/packages/debian/extract_metadata_service_spec.rb' - 'spec/services/projects/destroy_service_spec.rb' + - 'spec/services/projects/update_service_spec.rb' - 'spec/services/security/merge_reports_service_spec.rb' + - 'spec/services/suggestions/apply_service_spec.rb' - 'spec/services/system_notes/design_management_service_spec.rb' - 'spec/services/todo_service_spec.rb' - 'spec/services/upload_service_spec.rb' + - 'spec/services/work_items/task_list_reference_removal_service_spec.rb' - 'spec/sidekiq_cluster/sidekiq_cluster_spec.rb' - 'spec/support/database/prevent_cross_database_modification.rb' - 'spec/support/database/prevent_cross_joins.rb' @@ -902,32 +1483,51 @@ Layout/ArgumentAlignment: - 'spec/support/shared_examples/controllers/concerns/integrations/integrations_actions_shared_examples.rb' - 'spec/support/shared_examples/controllers/snippets_sort_order_shared_examples.rb' - 'spec/support/shared_examples/controllers/wiki_actions_shared_examples.rb' + - 'spec/support/shared_examples/features/search/redacted_search_results_shared_examples.rb' - 'spec/support/shared_examples/graphql/mutations/boards_create_shared_examples.rb' - 'spec/support/shared_examples/graphql/sorted_paginated_query_shared_examples.rb' + - 'spec/support/shared_examples/harbor/artifacts_controller_shared_examples.rb' + - 'spec/support/shared_examples/harbor/tags_controller_shared_examples.rb' + - 'spec/support/shared_examples/lib/gitlab/template/template_shared_examples.rb' - 'spec/support/shared_examples/models/active_record_enum_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/from_set_operator_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/integrations/slack_mattermost_notifier_shared_examples.rb' - 'spec/support/shared_examples/models/diff_note_after_commit_shared_examples.rb' + - 'spec/support/shared_examples/models/member_shared_examples.rb' + - 'spec/support/shared_examples/projects/container_repository/cleanup_tags_service_shared_examples.rb' - 'spec/support/shared_examples/quick_actions/merge_request/merge_quick_action_shared_examples.rb' - 'spec/support/shared_examples/requests/api/diff_discussions_shared_examples.rb' - 'spec/support/shared_examples/requests/api/discussions_shared_examples.rb' - 'spec/support/shared_examples/requests/api/graphql/group_and_project_boards_query_shared_examples.rb' - 'spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/hooks_shared_examples.rb' - 'spec/support/shared_examples/requests/api/merge_requests_shared_examples.rb' - 'spec/support/shared_examples/requests/api/notes_shared_examples.rb' - 'spec/support/shared_examples/requests/api/resolvable_discussions_shared_examples.rb' - 'spec/support/shared_examples/requests/graphql_shared_examples.rb' - 'spec/support/shared_examples/requests/rack_attack_shared_examples.rb' - 'spec/support/shared_examples/services/boards/boards_recent_visit_shared_examples.rb' + - 'spec/support/shared_examples/services/issuable/discussions_list_shared_examples.rb' + - 'spec/support/shared_examples/workers/background_migration_worker_shared_examples.rb' - 'spec/support/trace/trace_helpers.rb' + - 'spec/tasks/gitlab/sidekiq_rake_spec.rb' - 'spec/tooling/quality/test_level_spec.rb' - 'spec/uploaders/file_uploader_spec.rb' + - 'spec/uploaders/object_storage/cdn/google_cdn_spec.rb' + - 'spec/uploaders/object_storage/cdn/google_ip_cache_spec.rb' - 'spec/uploaders/packages/composer/cache_uploader_spec.rb' - 'spec/views/layouts/_search.html.haml_spec.rb' - 'spec/views/projects/merge_requests/_commits.html.haml_spec.rb' - 'spec/views/projects/merge_requests/edit.html.haml_spec.rb' - 'spec/views/projects/tags/index.html.haml_spec.rb' + - 'spec/workers/ci/job_artifacts/track_artifact_report_worker_spec.rb' + - 'spec/workers/database/batched_background_migration/ci_execution_worker_spec.rb' + - 'spec/workers/database/batched_background_migration/main_execution_worker_spec.rb' + - 'spec/workers/merge_requests/create_pipeline_worker_spec.rb' + - 'spec/workers/pages/invalidate_domain_cache_worker_spec.rb' + - 'spec/workers/pages_domain_ssl_renewal_cron_worker_spec.rb' - 'spec/workers/pipeline_notification_worker_spec.rb' - 'spec/workers/remove_unreferenced_lfs_objects_worker_spec.rb' - 'spec/workers/update_external_pull_requests_worker_spec.rb' + - 'spec/workers/update_merge_requests_worker_spec.rb' - 'spec/workers/web_hook_worker_spec.rb' diff --git a/.rubocop_todo/layout/closing_parenthesis_indentation.yml b/.rubocop_todo/layout/closing_parenthesis_indentation.yml index 79397e92312..3abbb024db6 100644 --- a/.rubocop_todo/layout/closing_parenthesis_indentation.yml +++ b/.rubocop_todo/layout/closing_parenthesis_indentation.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/ClosingParenthesisIndentation: Exclude: - 'app/presenters/project_presenter.rb' diff --git a/.rubocop_todo/layout/empty_line_between_defs.yml b/.rubocop_todo/layout/empty_line_between_defs.yml index ba69fc4c51b..2b0a00b420f 100644 --- a/.rubocop_todo/layout/empty_line_between_defs.yml +++ b/.rubocop_todo/layout/empty_line_between_defs.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/EmptyLineBetweenDefs: Exclude: - 'db/post_migrate/20220202105733_delete_service_template_records.rb' diff --git a/.rubocop_todo/layout/first_array_element_indentation.yml b/.rubocop_todo/layout/first_array_element_indentation.yml index d4a3d2f5524..d4c332476ad 100644 --- a/.rubocop_todo/layout/first_array_element_indentation.yml +++ b/.rubocop_todo/layout/first_array_element_indentation.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/FirstArrayElementIndentation: Exclude: - 'spec/lib/gitlab/github_import/importer/issues_importer_spec.rb' diff --git a/.rubocop_todo/layout/first_hash_element_indentation.yml b/.rubocop_todo/layout/first_hash_element_indentation.yml index 50cd90019b6..02ed77083fa 100644 --- a/.rubocop_todo/layout/first_hash_element_indentation.yml +++ b/.rubocop_todo/layout/first_hash_element_indentation.yml @@ -1,12 +1,10 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/FirstHashElementIndentation: Exclude: - 'app/components/diffs/stats_component.rb' - 'app/controllers/admin/ci/variables_controller.rb' - 'app/controllers/admin/system_info_controller.rb' - - 'app/controllers/boards/issues_controller.rb' - - 'app/controllers/concerns/issuable_actions.rb' - 'app/controllers/concerns/milestone_actions.rb' - 'app/controllers/concerns/render_service_results.rb' - 'app/controllers/concerns/sourcegraph_decorator.rb' @@ -25,7 +23,6 @@ Layout/FirstHashElementIndentation: - 'app/helpers/broadcast_messages_helper.rb' - 'app/helpers/commits_helper.rb' - 'app/helpers/environments_helper.rb' - - 'app/helpers/icons_helper.rb' - 'app/helpers/keyset_helper.rb' - 'app/helpers/listbox_helper.rb' - 'app/helpers/page_layout_helper.rb' @@ -51,7 +48,6 @@ Layout/FirstHashElementIndentation: - 'app/models/concerns/subscribable.rb' - 'app/models/concerns/taskable.rb' - 'app/models/diff_note.rb' - - 'app/models/integrations/datadog.rb' - 'app/models/integrations/jira.rb' - 'app/models/jira_connect_installation.rb' - 'app/models/milestone.rb' @@ -82,9 +78,6 @@ Layout/FirstHashElementIndentation: - 'app/validators/addressable_url_validator.rb' - 'app/workers/concerns/cluster_cleanup_methods.rb' - 'ee/app/components/namespaces/free_user_cap/alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/personal_alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/personal_preview_alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/preview_alert_component.rb' - 'ee/app/controllers/groups/analytics/tasks_by_type_controller.rb' - 'ee/app/graphql/mutations/boards/epic_lists/destroy.rb' - 'ee/app/graphql/mutations/boards/epics/create.rb' @@ -97,7 +90,6 @@ Layout/FirstHashElementIndentation: - 'ee/app/helpers/ee/ci/jobs_helper.rb' - 'ee/app/helpers/ee/geo_helper.rb' - 'ee/app/helpers/ee/groups/group_members_helper.rb' - - 'ee/app/helpers/ee/members_helper.rb' - 'ee/app/helpers/ee/namespaces_helper.rb' - 'ee/app/helpers/ee/projects_helper.rb' - 'ee/app/helpers/ee/sidebars_helper.rb' @@ -111,7 +103,6 @@ Layout/FirstHashElementIndentation: - 'ee/app/serializers/ee/environment_serializer.rb' - 'ee/app/services/app_sec/dast/profiles/update_service.rb' - 'ee/app/services/app_sec/dast/site_profiles/update_service.rb' - - 'ee/app/services/audit_events/build_service.rb' - 'ee/app/services/ee/auth/container_registry_authentication_service.rb' - 'ee/app/services/ee/ci/register_job_service.rb' - 'ee/app/services/ee/issues/export_csv_service.rb' @@ -135,17 +126,12 @@ Layout/FirstHashElementIndentation: - 'ee/lib/gitlab/graphql/aggregations/epics/lazy_epic_aggregate.rb' - 'ee/lib/gitlab/status_page/storage/s3_multipart_upload.rb' - 'ee/spec/controllers/admin/application_settings_controller_spec.rb' - - 'ee/spec/controllers/boards/issues_controller_spec.rb' - - 'ee/spec/controllers/boards/lists_controller_spec.rb' - - 'ee/spec/controllers/boards/users_controller_spec.rb' - 'ee/spec/controllers/ee/projects/jobs_controller_spec.rb' - 'ee/spec/controllers/ee/projects/variables_controller_spec.rb' - 'ee/spec/controllers/groups/analytics/cycle_analytics/summary_controller_spec.rb' - 'ee/spec/controllers/groups/epic_boards_controller_spec.rb' - 'ee/spec/controllers/groups/issues_controller_spec.rb' - - 'ee/spec/controllers/projects/boards_controller_spec.rb' - 'ee/spec/controllers/projects/feature_flag_issues_controller_spec.rb' - - 'ee/spec/controllers/projects/imports_controller_spec.rb' - 'ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb' - 'ee/spec/controllers/projects/licenses_controller_spec.rb' - 'ee/spec/controllers/projects/vulnerability_feedback_controller_spec.rb' @@ -154,18 +140,14 @@ Layout/FirstHashElementIndentation: - 'ee/spec/elastic/migrate/20220119120500_populate_commit_permissions_in_main_index_spec.rb' - 'ee/spec/factories/dependencies.rb' - 'ee/spec/factories/licenses.rb' - - 'ee/spec/features/registrations/saas_user_registration_spec.rb' - 'ee/spec/finders/epics_finder_spec.rb' - - 'ee/spec/finders/security/scan_execution_policies_finder_spec.rb' - 'ee/spec/frontend/fixtures/dast_profiles.rb' - 'ee/spec/frontend/fixtures/on_demand_dast_scans.rb' - 'ee/spec/frontend/fixtures/search.rb' - 'ee/spec/graphql/mutations/app_sec/fuzzing/api/ci_configuration/create_spec.rb' - 'ee/spec/graphql/types/vulnerability_request_response_header_type_spec.rb' - - 'ee/spec/helpers/billing_plans_helper_spec.rb' - 'ee/spec/helpers/ee/access_tokens_helper_spec.rb' - 'ee/spec/helpers/ee/groups_helper_spec.rb' - - 'ee/spec/helpers/ee/invite_members_helper_spec.rb' - 'ee/spec/helpers/ee/labels_helper_spec.rb' - 'ee/spec/helpers/ee/namespaces_helper_spec.rb' - 'ee/spec/helpers/ee/projects/pipeline_helper_spec.rb' @@ -175,7 +157,6 @@ Layout/FirstHashElementIndentation: - 'ee/spec/helpers/groups/sso_helper_spec.rb' - 'ee/spec/helpers/nav/new_dropdown_helper_spec.rb' - 'ee/spec/helpers/projects_helper_spec.rb' - - 'ee/spec/helpers/routing/pseudonymization_helper_spec.rb' - 'ee/spec/helpers/search_helper_spec.rb' - 'ee/spec/helpers/security_helper_spec.rb' - 'ee/spec/helpers/trial_registrations/reassurances_helper_spec.rb' @@ -232,7 +213,6 @@ Layout/FirstHashElementIndentation: - 'ee/spec/requests/groups/group_members_controller_spec.rb' - 'ee/spec/requests/groups/usage_quotas_spec.rb' - 'ee/spec/requests/projects/issue_feature_flags_controller_spec.rb' - - 'ee/spec/requests/projects/mirrors_controller_spec.rb' - 'ee/spec/serializers/issues/linked_issue_feature_flag_entity_spec.rb' - 'ee/spec/serializers/license_entity_spec.rb' - 'ee/spec/serializers/linked_feature_flag_issue_entity_spec.rb' @@ -253,18 +233,14 @@ Layout/FirstHashElementIndentation: - 'ee/spec/services/app_sec/fuzzing/coverage/corpuses/create_service_spec.rb' - 'ee/spec/services/approval_rules/create_service_spec.rb' - 'ee/spec/services/approval_rules/update_service_spec.rb' - - 'ee/spec/services/arkose/user_verification_service_spec.rb' - 'ee/spec/services/audit_event_service_spec.rb' - 'ee/spec/services/ci/create_pipeline_service_spec.rb' - - 'ee/spec/services/ci/runners/stale_group_runners_prune_service_spec.rb' - 'ee/spec/services/ee/alert_management/http_integrations/create_service_spec.rb' - 'ee/spec/services/ee/alert_management/http_integrations/update_service_spec.rb' - 'ee/spec/services/ee/merge_requests/create_pipeline_service_spec.rb' - - 'ee/spec/services/ee/merge_requests/update_service_spec.rb' - 'ee/spec/services/ee/post_receive_service_spec.rb' - 'ee/spec/services/external_status_checks/create_service_spec.rb' - 'ee/spec/services/geo/node_status_request_service_spec.rb' - - 'ee/spec/services/geo/registry_consistency_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/check_future_renewal_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/create_trial_or_lead_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/plan_upgrade_service_spec.rb' @@ -274,18 +250,14 @@ Layout/FirstHashElementIndentation: - 'ee/spec/services/groups/create_service_spec.rb' - 'ee/spec/services/groups/destroy_service_spec.rb' - 'ee/spec/services/iterations/create_service_spec.rb' - - 'ee/spec/services/namespaces/free_user_cap/deactivate_members_over_limit_service_spec.rb' - - 'ee/spec/services/namespaces/free_user_cap/remove_group_group_links_outside_hierarchy_service_spec.rb' - 'ee/spec/services/projects/create_service_spec.rb' - 'ee/spec/services/projects/group_links/create_service_spec.rb' - 'ee/spec/services/projects/group_links/destroy_service_spec.rb' - 'ee/spec/services/projects/transfer_service_spec.rb' - 'ee/spec/services/security/report_summary_service_spec.rb' - - 'ee/spec/services/security/security_orchestration_policies/create_pipeline_service_spec.rb' - 'ee/spec/services/security/token_revocation_service_spec.rb' - 'ee/spec/services/security/track_scan_service_spec.rb' - 'ee/spec/services/timebox_report_service_spec.rb' - - 'ee/spec/services/users/abuse/excessive_projects_download_ban_service_spec.rb' - 'ee/spec/services/users/abuse/git_abuse/namespace_throttle_service_spec.rb' - 'ee/spec/support/helpers/ee/login_helpers.rb' - 'ee/spec/support/shared_contexts/fixtures/analytics_shared_context.rb' @@ -320,7 +292,6 @@ Layout/FirstHashElementIndentation: - 'lib/gitlab/kubernetes/namespace.rb' - 'lib/gitlab/kubernetes/rollout_instances.rb' - 'lib/gitlab/legacy_github_import/client.rb' - - 'lib/gitlab/nav/top_nav_view_model_builder.rb' - 'lib/gitlab/push_options.rb' - 'lib/gitlab/quick_actions/issuable_actions.rb' - 'lib/gitlab/usage_data_counters/track_unique_events.rb' @@ -343,20 +314,14 @@ Layout/FirstHashElementIndentation: - 'qa/qa/specs/features/browser_ui/5_package/package_registry/nuget/nuget_group_level_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/nuget/nuget_project_level_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/pypi_repository_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/new_discussion_not_dropping_merge_trains_mr_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/9_enablement/elasticsearch/elasticsearch_reindexing_spec.rb' - 'spec/components/diffs/stats_component_spec.rb' - 'spec/components/pajamas/component_spec.rb' - 'spec/config/object_store_settings_spec.rb' - 'spec/config/smime_signature_settings_spec.rb' - - 'spec/controllers/admin/groups_controller_spec.rb' - 'spec/controllers/application_controller_spec.rb' - - 'spec/controllers/boards/issues_controller_spec.rb' - - 'spec/controllers/boards/lists_controller_spec.rb' - 'spec/controllers/concerns/import_url_params_spec.rb' - 'spec/controllers/concerns/issuable_collections_spec.rb' - - 'spec/controllers/groups/boards_controller_spec.rb' - 'spec/controllers/groups/group_members_controller_spec.rb' - 'spec/controllers/groups/packages_controller_spec.rb' - 'spec/controllers/groups/registry/repositories_controller_spec.rb' @@ -416,13 +381,11 @@ Layout/FirstHashElementIndentation: - 'spec/helpers/routing/pseudonymization_helper_spec.rb' - 'spec/helpers/search_helper_spec.rb' - 'spec/helpers/sorting_helper_spec.rb' - - 'spec/helpers/storage_helper_spec.rb' - 'spec/initializers/direct_upload_support_spec.rb' - 'spec/lib/api/entities/bulk_imports/export_status_spec.rb' - 'spec/lib/api/entities/design_management/design_spec.rb' - 'spec/lib/api/entities/merge_request_approvals_spec.rb' - 'spec/lib/api/entities/personal_access_token_spec.rb' - - 'spec/lib/api/entities/personal_access_token_with_details_spec.rb' - 'spec/lib/atlassian/jira_connect/client_spec.rb' - 'spec/lib/backup/database_spec.rb' - 'spec/lib/backup/repositories_spec.rb' @@ -461,7 +424,6 @@ Layout/FirstHashElementIndentation: - 'spec/lib/gitlab/ci/config/yaml/tags/resolver_spec.rb' - 'spec/lib/gitlab/ci/config_spec.rb' - 'spec/lib/gitlab/ci/parsers/codequality/code_climate_spec.rb' - - 'spec/lib/gitlab/ci/parsers/sbom/source/dependency_scanning_spec.rb' - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - 'spec/lib/gitlab/ci/pipeline/chain/populate_spec.rb' - 'spec/lib/gitlab/ci/pipeline/seed/build/cache_spec.rb' @@ -478,11 +440,8 @@ Layout/FirstHashElementIndentation: - 'spec/lib/gitlab/database/migration_helpers_spec.rb' - 'spec/lib/gitlab/database/partitioning_migration_helpers/table_management_helpers_spec.rb' - 'spec/lib/gitlab/database_spec.rb' - - 'spec/lib/gitlab/diff/position_spec.rb' - 'spec/lib/gitlab/error_tracking/error_repository/open_api_strategy_spec.rb' - 'spec/lib/gitlab/error_tracking_spec.rb' - - 'spec/lib/gitlab/experimentation/controller_concern_spec.rb' - - 'spec/lib/gitlab/experimentation_spec.rb' - 'spec/lib/gitlab/git/conflict/file_spec.rb' - 'spec/lib/gitlab/git/hook_env_spec.rb' - 'spec/lib/gitlab/git/repository_spec.rb' @@ -504,7 +463,6 @@ Layout/FirstHashElementIndentation: - 'spec/lib/gitlab/kubernetes/kubeconfig/template_spec.rb' - 'spec/lib/gitlab/kubernetes/rollout_instances_spec.rb' - 'spec/lib/gitlab/legacy_github_import/label_formatter_spec.rb' - - 'spec/lib/gitlab/memory/watchdog_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/importers/prometheus_metrics_spec.rb' - 'spec/lib/gitlab/metrics/subscribers/action_cable_spec.rb' - 'spec/lib/gitlab/middleware/multipart/handler_spec.rb' @@ -536,7 +494,6 @@ Layout/FirstHashElementIndentation: - 'spec/models/integrations/chat_message/pipeline_message_spec.rb' - 'spec/models/integrations/chat_message/push_message_spec.rb' - 'spec/models/integrations/chat_message/wiki_page_message_spec.rb' - - 'spec/models/integrations/packagist_spec.rb' - 'spec/models/integrations/prometheus_spec.rb' - 'spec/models/loose_foreign_keys/modification_tracker_spec.rb' - 'spec/models/merge_request_diff_commit_spec.rb' @@ -583,7 +540,6 @@ Layout/FirstHashElementIndentation: - 'spec/services/ci/play_manual_stage_service_spec.rb' - 'spec/services/ci/runners/reconcile_existing_runner_versions_service_spec.rb' - 'spec/services/clusters/agents/create_service_spec.rb' - - 'spec/services/clusters/applications/check_ingress_ip_address_service_spec.rb' - 'spec/services/clusters/aws/authorize_role_service_spec.rb' - 'spec/services/clusters/update_service_spec.rb' - 'spec/services/commits/tag_service_spec.rb' @@ -631,7 +587,6 @@ Layout/FirstHashElementIndentation: - 'spec/support_specs/graphql/arguments_spec.rb' - 'spec/support_specs/graphql/field_selection_spec.rb' - 'spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb' - - 'spec/tooling/danger/datateam_spec.rb' - 'spec/tooling/lib/tooling/kubernetes_client_spec.rb' - 'spec/views/projects/issues/_issue.html.haml_spec.rb' - 'spec/workers/ci/runners/reconcile_existing_runner_versions_cron_worker_spec.rb' diff --git a/.rubocop_todo/layout/hash_alignment.yml b/.rubocop_todo/layout/hash_alignment.yml index 62d877624a7..7aa46e3fd05 100644 --- a/.rubocop_todo/layout/hash_alignment.yml +++ b/.rubocop_todo/layout/hash_alignment.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/HashAlignment: Exclude: - 'ee/spec/lib/ee/gitlab/usage_data_spec.rb' diff --git a/.rubocop_todo/layout/leading_comment_space.yml b/.rubocop_todo/layout/leading_comment_space.yml index fda1d4ff30b..9dc79492f2a 100644 --- a/.rubocop_todo/layout/leading_comment_space.yml +++ b/.rubocop_todo/layout/leading_comment_space.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/LeadingCommentSpace: Exclude: - 'config/initializers/kaminari_active_record_relation_methods_with_limit.rb' diff --git a/.rubocop_todo/layout/line_length.yml b/.rubocop_todo/layout/line_length.yml index ffc3ff3f6ec..78c086d2a08 100644 --- a/.rubocop_todo/layout/line_length.yml +++ b/.rubocop_todo/layout/line_length.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/LineLength: Exclude: - 'app/controllers/abuse_reports_controller.rb' @@ -13,7 +13,6 @@ Layout/LineLength: - 'app/controllers/admin/topics_controller.rb' - 'app/controllers/admin/users_controller.rb' - 'app/controllers/application_controller.rb' - - 'app/controllers/boards/lists_controller.rb' - 'app/controllers/concerns/access_tokens_actions.rb' - 'app/controllers/concerns/analytics/cycle_analytics/stage_actions.rb' - 'app/controllers/concerns/clientside_preview_csp.rb' @@ -93,7 +92,6 @@ Layout/LineLength: - 'app/controllers/projects/pipeline_schedules_controller.rb' - 'app/controllers/projects/pipelines_controller.rb' - 'app/controllers/projects/prometheus/metrics_controller.rb' - - 'app/controllers/projects/raw_controller.rb' - 'app/controllers/projects/settings/ci_cd_controller.rb' - 'app/controllers/projects/settings/repository_controller.rb' - 'app/controllers/projects/templates_controller.rb' @@ -165,7 +163,6 @@ Layout/LineLength: - 'app/graphql/mutations/snippets/update.rb' - 'app/graphql/mutations/todos/create.rb' - 'app/graphql/mutations/todos/mark_all_done.rb' - - 'app/graphql/resolvers/concerns/issue_resolver_arguments.rb' - 'app/graphql/resolvers/concerns/time_frame_arguments.rb' - 'app/graphql/resolvers/container_repository_tags_resolver.rb' - 'app/graphql/resolvers/project_merge_requests_resolver.rb' @@ -355,7 +352,6 @@ Layout/LineLength: - 'app/models/concerns/sortable.rb' - 'app/models/concerns/storage/legacy_namespace.rb' - 'app/models/concerns/subscribable.rb' - - 'app/models/concerns/timebox.rb' - 'app/models/concerns/token_authenticatable_strategies/base.rb' - 'app/models/concerns/token_authenticatable_strategies/encrypted.rb' - 'app/models/concerns/token_authenticatable_strategies/encryption_helper.rb' @@ -516,7 +512,6 @@ Layout/LineLength: - 'app/services/ci/drop_pipeline_service.rb' - 'app/services/ci/generate_coverage_reports_service.rb' - 'app/services/ci/job_artifacts/destroy_all_expired_service.rb' - - 'app/services/ci/job_artifacts/destroy_batch_service.rb' - 'app/services/ci/job_artifacts/expire_project_build_artifacts_service.rb' - 'app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb' - 'app/services/ci/pipelines/add_job_service.rb' @@ -527,8 +522,6 @@ Layout/LineLength: - 'app/services/clusters/agent_tokens/create_service.rb' - 'app/services/clusters/agents/delete_service.rb' - 'app/services/clusters/applications/check_progress_service.rb' - - 'app/services/clusters/applications/check_uninstall_progress_service.rb' - - 'app/services/clusters/applications/prometheus_update_service.rb' - 'app/services/clusters/aws/finalize_creation_service.rb' - 'app/services/clusters/aws/verify_provision_status_service.rb' - 'app/services/clusters/build_kubernetes_namespace_service.rb' @@ -683,7 +676,6 @@ Layout/LineLength: - 'app/services/system_notes/zoom_service.rb' - 'app/services/tags/destroy_service.rb' - 'app/services/tasks_to_be_done/base_service.rb' - - 'app/services/two_factor/destroy_service.rb' - 'app/services/users/approve_service.rb' - 'app/services/users/banned_user_base_service.rb' - 'app/services/users/build_service.rb' @@ -712,8 +704,6 @@ Layout/LineLength: - 'app/workers/database/batched_background_migration/single_database_worker.rb' - 'app/workers/error_tracking_issue_link_worker.rb' - 'app/workers/gitlab/github_import/stage/finish_import_worker.rb' - - 'app/workers/gitlab/github_import/stage/import_issues_and_diff_notes_worker.rb' - - 'app/workers/gitlab/github_import/stage/import_notes_worker.rb' - 'app/workers/gitlab/github_import/stage/import_repository_worker.rb' - 'app/workers/gitlab/import/stuck_import_job.rb' - 'app/workers/gitlab/jira_import/stage/import_attachments_worker.rb' @@ -759,6 +749,7 @@ Layout/LineLength: - 'config/initializers/validate_puma.rb' - 'config/initializers/zz_metrics.rb' - 'config/object_store_settings.rb' + - 'config/puma.rb' - 'config/routes.rb' - 'config/routes/admin.rb' - 'config/routes/api.rb' @@ -1057,7 +1048,6 @@ Layout/LineLength: - 'ee/app/controllers/admin/geo/application_controller.rb' - 'ee/app/controllers/admin/geo/projects_controller.rb' - 'ee/app/controllers/admin/licenses_controller.rb' - - 'ee/app/controllers/concerns/audit_events/audit_events_params.rb' - 'ee/app/controllers/concerns/audit_events/date_range.rb' - 'ee/app/controllers/concerns/credentials_inventory_actions.rb' - 'ee/app/controllers/concerns/ee/issuable_collections.rb' @@ -1097,7 +1087,6 @@ Layout/LineLength: - 'ee/app/enums/vulnerabilities/dismissal_reason_enum.rb' - 'ee/app/finders/compliance_management/merge_requests/compliance_violations_finder.rb' - 'ee/app/finders/incident_management/escalation_rules_finder.rb' - - 'ee/app/finders/iterations_finder.rb' - 'ee/app/finders/merge_requests/by_approvers_finder.rb' - 'ee/app/finders/projects/integrations/jira/by_ids_finder.rb' - 'ee/app/finders/projects/integrations/jira/issues_finder.rb' @@ -1105,7 +1094,6 @@ Layout/LineLength: - 'ee/app/finders/security/vulnerabilities_finder.rb' - 'ee/app/graphql/ee/mutations/boards/lists/create.rb' - 'ee/app/graphql/ee/mutations/ci/runner/update.rb' - - 'ee/app/graphql/ee/resolvers/base_issues_resolver.rb' - 'ee/app/graphql/mutations/analytics/devops_adoption/enabled_namespaces/bulk_enable.rb' - 'ee/app/graphql/mutations/audit_events/external_audit_event_destinations/create.rb' - 'ee/app/graphql/mutations/audit_events/external_audit_event_destinations/update.rb' @@ -1136,7 +1124,6 @@ Layout/LineLength: - 'ee/app/graphql/resolvers/boards/epic_lists_resolver.rb' - 'ee/app/graphql/resolvers/ci/code_coverage_activities_resolver.rb' - 'ee/app/graphql/resolvers/compliance_management/merge_requests/compliance_violation_resolver.rb' - - 'ee/app/graphql/resolvers/concerns/resolves_orchestration_policy.rb' - 'ee/app/graphql/resolvers/dora_metrics_resolver.rb' - 'ee/app/graphql/resolvers/external_issue_resolver.rb' - 'ee/app/graphql/resolvers/incident_management/oncall_rotations_resolver.rb' @@ -1283,7 +1270,6 @@ Layout/LineLength: - 'ee/app/models/elastic/migration_record.rb' - 'ee/app/models/elastic/reindexing_slice.rb' - 'ee/app/models/epic_issue.rb' - - 'ee/app/models/geo/container_repository_registry.rb' - 'ee/app/models/geo/project_registry.rb' - 'ee/app/models/geo/secondary_usage_data.rb' - 'ee/app/models/geo_node.rb' @@ -1371,7 +1357,6 @@ Layout/LineLength: - 'ee/app/services/ee/analytics/cycle_analytics/stages/list_service.rb' - 'ee/app/services/ee/application_settings/update_service.rb' - 'ee/app/services/ee/applications/create_service.rb' - - 'ee/app/services/ee/auth/container_registry_authentication_service.rb' - 'ee/app/services/ee/boards/base_service.rb' - 'ee/app/services/ee/ci/job_artifacts/destroy_batch_service.rb' - 'ee/app/services/ee/ci/register_job_service.rb' @@ -1458,7 +1443,6 @@ Layout/LineLength: - 'ee/app/services/security/report_summary_service.rb' - 'ee/app/services/security/scanned_resources_counting_service.rb' - 'ee/app/services/security/scanned_resources_service.rb' - - 'ee/app/services/security/security_orchestration_policies/create_pipeline_service.rb' - 'ee/app/services/security/security_orchestration_policies/fetch_policy_approvers_service.rb' - 'ee/app/services/security/security_orchestration_policies/on_demand_scan_pipeline_configuration_service.rb' - 'ee/app/services/security/security_orchestration_policies/policy_commit_service.rb' @@ -1473,9 +1457,7 @@ Layout/LineLength: - 'ee/app/services/system_notes/escalations_service.rb' - 'ee/app/services/timebox_report_service.rb' - 'ee/app/services/vulnerabilities/base_service.rb' - - 'ee/app/services/vulnerabilities/dismiss_service.rb' - 'ee/app/services/vulnerabilities/historical_statistics/adjustment_service.rb' - - 'ee/app/services/vulnerabilities/resolve_service.rb' - 'ee/app/services/vulnerabilities/revert_to_detected_service.rb' - 'ee/app/services/vulnerabilities/statistics/adjustment_service.rb' - 'ee/app/services/vulnerabilities/update_service.rb' @@ -1508,7 +1490,6 @@ Layout/LineLength: - 'ee/app/workers/repository_update_mirror_worker.rb' - 'ee/app/workers/security/orchestration_policy_rule_schedule_namespace_worker.rb' - 'ee/app/workers/security/orchestration_policy_rule_schedule_worker.rb' - - 'ee/app/workers/update_all_mirrors_worker.rb' - 'ee/app/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker.rb' - 'ee/config/routes/group.rb' - 'ee/config/routes/project.rb' @@ -1537,7 +1518,6 @@ Layout/LineLength: - 'ee/db/geo/post_migrate/20220202101354_migrate_job_artifact_registry.rb' - 'ee/lib/analytics/devops_adoption/snapshot_calculator.rb' - 'ee/lib/analytics/productivity_analytics_request_params.rb' - - 'ee/lib/api/analytics/code_review_analytics.rb' - 'ee/lib/api/audit_events.rb' - 'ee/lib/api/ci/minutes.rb' - 'ee/lib/api/dependencies.rb' @@ -1588,8 +1568,6 @@ Layout/LineLength: - 'ee/lib/ee/api/merge_request_approvals.rb' - 'ee/lib/ee/api/merge_requests.rb' - 'ee/lib/ee/api/namespaces.rb' - - 'ee/lib/ee/api/protected_branches.rb' - - 'ee/lib/ee/audit/project_changes_auditor.rb' - 'ee/lib/ee/banzai/filter/references/iteration_reference_filter.rb' - 'ee/lib/ee/gitlab/analytics/cycle_analytics/aggregated/base_query_builder.rb' - 'ee/lib/ee/gitlab/analytics/cycle_analytics/data_collector.rb' @@ -1627,9 +1605,7 @@ Layout/LineLength: - 'ee/lib/ee/gitlab/repository_size_checker.rb' - 'ee/lib/ee/gitlab/scim/deprovision_service.rb' - 'ee/lib/ee/gitlab/usage_data.rb' - - 'ee/lib/ee/sidebars/groups/menus/issues_menu.rb' - 'ee/lib/ee/sidebars/groups/panel.rb' - - 'ee/lib/ee/sidebars/projects/menus/issues_menu.rb' - 'ee/lib/ee/sidebars/projects/menus/security_compliance_menu.rb' - 'ee/lib/elastic/latest/application_class_proxy.rb' - 'ee/lib/elastic/latest/config.rb' @@ -1664,7 +1640,6 @@ Layout/LineLength: - 'ee/lib/gitlab/ci/reports/security/locations/cluster_image_scanning.rb' - 'ee/lib/gitlab/contribution_analytics/data_collector.rb' - 'ee/lib/gitlab/elastic/group_search_results.rb' - - 'ee/lib/gitlab/elastic/indexer.rb' - 'ee/lib/gitlab/elastic/project_search_results.rb' - 'ee/lib/gitlab/elastic/search_results.rb' - 'ee/lib/gitlab/email/message/account_validation.rb' @@ -1713,7 +1688,6 @@ Layout/LineLength: - 'ee/spec/controllers/admin/licenses_controller_spec.rb' - 'ee/spec/controllers/admin/projects_controller_spec.rb' - 'ee/spec/controllers/admin/users_controller_spec.rb' - - 'ee/spec/controllers/boards/issues_controller_spec.rb' - 'ee/spec/controllers/concerns/ee/routable_actions/sso_enforcement_redirect_spec.rb' - 'ee/spec/controllers/ee/dashboard/projects_controller_spec.rb' - 'ee/spec/controllers/ee/groups_controller_spec.rb' @@ -1721,7 +1695,6 @@ Layout/LineLength: - 'ee/spec/controllers/ee/search_controller_spec.rb' - 'ee/spec/controllers/ee/uploads_controller_spec.rb' - 'ee/spec/controllers/groups/analytics/cycle_analytics/value_streams_controller_spec.rb' - - 'ee/spec/controllers/groups/analytics/cycle_analytics_controller_spec.rb' - 'ee/spec/controllers/groups/analytics/tasks_by_type_controller_spec.rb' - 'ee/spec/controllers/groups/audit_events_controller_spec.rb' - 'ee/spec/controllers/groups/epic_issues_controller_spec.rb' @@ -1764,7 +1737,6 @@ Layout/LineLength: - 'ee/spec/factories/ci/reports/security/locations/container_scanning.rb' - 'ee/spec/factories/ci/reports/security/locations/dependency_scanning.rb' - 'ee/spec/factories/compliance_management/frameworks.rb' - - 'ee/spec/factories/geo/container_repository_registry.rb' - 'ee/spec/factories/iterations.rb' - 'ee/spec/factories/namespaces.rb' - 'ee/spec/factories/vulnerabilities/exports.rb' @@ -1803,7 +1775,6 @@ Layout/LineLength: - 'ee/spec/features/groups/group_settings_spec.rb' - 'ee/spec/features/groups/groups_security_credentials_spec.rb' - 'ee/spec/features/groups/hooks/user_tests_hooks_spec.rb' - - 'ee/spec/features/groups/iterations/iterations_list_spec.rb' - 'ee/spec/features/groups/iterations/user_creates_iteration_in_cadence_spec.rb' - 'ee/spec/features/groups/iterations/user_edits_iteration_cadence_spec.rb' - 'ee/spec/features/groups/iterations/user_edits_iteration_spec.rb' @@ -1839,7 +1810,6 @@ Layout/LineLength: - 'ee/spec/features/projects/integrations/prometheus_custom_metrics_spec.rb' - 'ee/spec/features/projects/integrations/user_activates_jira_spec.rb' - 'ee/spec/features/projects/iterations/iteration_cadences_list_spec.rb' - - 'ee/spec/features/projects/iterations/iterations_list_spec.rb' - 'ee/spec/features/projects/iterations/user_views_iteration_spec.rb' - 'ee/spec/features/projects/licenses/maintainer_views_policies_spec.rb' - 'ee/spec/features/projects/members/member_is_removed_from_project_spec.rb' @@ -1857,7 +1827,6 @@ Layout/LineLength: - 'ee/spec/features/projects_spec.rb' - 'ee/spec/features/promotion_spec.rb' - 'ee/spec/features/read_only_spec.rb' - - 'ee/spec/features/search/elastic/global_search_spec.rb' - 'ee/spec/features/search/elastic/project_search_spec.rb' - 'ee/spec/features/search/elastic/snippet_search_spec.rb' - 'ee/spec/features/subscriptions_spec.rb' @@ -2047,8 +2016,6 @@ Layout/LineLength: - 'ee/spec/lib/ee/api/entities/deployment_extended_spec.rb' - 'ee/spec/lib/ee/api/entities/vulnerability_export_spec.rb' - 'ee/spec/lib/ee/api/helpers_spec.rb' - - 'ee/spec/lib/ee/audit/compliance_framework_changes_auditor_spec.rb' - - 'ee/spec/lib/ee/audit/protected_branches_changes_auditor_spec.rb' - 'ee/spec/lib/ee/gitlab/alert_management/payload/generic_spec.rb' - 'ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb' - 'ee/spec/lib/ee/gitlab/background_migration/backfill_iteration_cadence_id_for_boards_spec.rb' @@ -2070,7 +2037,6 @@ Layout/LineLength: - 'ee/spec/lib/ee/gitlab/ci/parsers/security/common_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/parsers/security/validators/schema_validator_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/pipeline/chain/validate/security_orchestration_policy_spec.rb' - - 'ee/spec/lib/ee/gitlab/ci/pipeline/quota/job_activity_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/reports/security/reports_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/status/build/manual_spec.rb' - 'ee/spec/lib/ee/gitlab/elastic/helper_spec.rb' @@ -2138,7 +2104,6 @@ Layout/LineLength: - 'ee/spec/lib/gitlab/ci/parsers/security/dast_spec.rb' - 'ee/spec/lib/gitlab/ci/parsers/security/dependency_list_spec.rb' - 'ee/spec/lib/gitlab/ci/parsers/security/dependency_scanning_spec.rb' - - 'ee/spec/lib/gitlab/ci/parsers/security/formatters/dast_spec.rb' - 'ee/spec/lib/gitlab/ci/pipeline/chain/config/content_spec.rb' - 'ee/spec/lib/gitlab/ci/pipeline/chain/create_cross_database_associations_spec.rb' - 'ee/spec/lib/gitlab/ci/reports/dependency_list/dependency_spec.rb' @@ -2466,7 +2431,6 @@ Layout/LineLength: - 'ee/spec/requests/api/graphql/project/issues_spec.rb' - 'ee/spec/requests/api/graphql/project/pipeline/security_report_summary_spec.rb' - 'ee/spec/requests/api/graphql/project/requirements_management/requirements_spec.rb' - - 'ee/spec/requests/api/graphql/project/requirements_management/test_reports_spec.rb' - 'ee/spec/requests/api/graphql/project/vulnerability_severities_count_spec.rb' - 'ee/spec/requests/api/graphql/projects/compliance_frameworks_spec.rb' - 'ee/spec/requests/api/graphql/vulnerabilities/description_spec.rb' @@ -2608,7 +2572,6 @@ Layout/LineLength: - 'ee/spec/services/deployments/auto_rollback_service_spec.rb' - 'ee/spec/services/ee/alert_management/http_integrations/update_service_spec.rb' - 'ee/spec/services/ee/allowed_email_domains/update_service_spec.rb' - - 'ee/spec/services/ee/auth/container_registry_authentication_service_spec.rb' - 'ee/spec/services/ee/boards/issues/create_service_spec.rb' - 'ee/spec/services/ee/boards/issues/list_service_spec.rb' - 'ee/spec/services/ee/boards/lists/max_limits_spec.rb' @@ -2639,7 +2602,6 @@ Layout/LineLength: - 'ee/spec/services/ee/resource_events/merge_into_notes_service_spec.rb' - 'ee/spec/services/ee/system_notes/issuables_service_spec.rb' - 'ee/spec/services/ee/users/destroy_service_spec.rb' - - 'ee/spec/services/ee/users/migrate_to_ghost_user_service_spec.rb' - 'ee/spec/services/ee/users/update_service_spec.rb' - 'ee/spec/services/elastic/cluster_reindexing_service_spec.rb' - 'ee/spec/services/elastic/data_migration_service_spec.rb' @@ -2691,7 +2653,6 @@ Layout/LineLength: - 'ee/spec/services/iterations/cadences/create_iterations_in_advance_service_spec.rb' - 'ee/spec/services/iterations/cadences/destroy_service_spec.rb' - 'ee/spec/services/iterations/cadences/update_service_spec.rb' - - 'ee/spec/services/iterations/create_service_spec.rb' - 'ee/spec/services/iterations/delete_service_spec.rb' - 'ee/spec/services/jira/jql_builder_service_spec.rb' - 'ee/spec/services/jira/requests/issues/list_service_spec.rb' @@ -2699,13 +2660,11 @@ Layout/LineLength: - 'ee/spec/services/members/activate_service_spec.rb' - 'ee/spec/services/merge_commits/export_csv_service_spec.rb' - 'ee/spec/services/merge_requests/merge_service_spec.rb' - - 'ee/spec/services/merge_requests/merge_to_ref_service_spec.rb' - 'ee/spec/services/merge_requests/push_options_handler_service_spec.rb' - 'ee/spec/services/merge_requests/reset_approvals_service_spec.rb' - 'ee/spec/services/merge_requests/sync_report_approver_approval_rules_spec.rb' - 'ee/spec/services/merge_trains/create_pipeline_service_spec.rb' - 'ee/spec/services/merge_trains/refresh_merge_request_service_spec.rb' - - 'ee/spec/services/merge_trains/refresh_service_spec.rb' - 'ee/spec/services/personal_access_tokens/create_service_audit_log_spec.rb' - 'ee/spec/services/personal_access_tokens/rotation_verifier_service_spec.rb' - 'ee/spec/services/projects/alerting/notify_service_spec.rb' @@ -2724,7 +2683,6 @@ Layout/LineLength: - 'ee/spec/services/search/group_service_spec.rb' - 'ee/spec/services/search/project_service_spec.rb' - 'ee/spec/services/search/snippet_service_spec.rb' - - 'ee/spec/services/search_service_spec.rb' - 'ee/spec/services/security/dependency_list_service_spec.rb' - 'ee/spec/services/security/ingestion/finding_map_collection_spec.rb' - 'ee/spec/services/security/ingestion/ingest_report_service_spec.rb' @@ -2782,7 +2740,6 @@ Layout/LineLength: - 'ee/spec/services/wiki_pages/create_service_spec.rb' - 'ee/spec/services/wiki_pages/destroy_service_spec.rb' - 'ee/spec/services/wiki_pages/update_service_spec.rb' - - 'ee/spec/support/elastic.rb' - 'ee/spec/support/features/redacted_search_results_examples.rb' - 'ee/spec/support/helpers/search_results_helpers.rb' - 'ee/spec/support/helpers/subscription_portal_helpers.rb' @@ -2854,7 +2811,6 @@ Layout/LineLength: - 'ee/spec/views/shared/billings/_eoa_bronze_plan_banner.html.haml_spec.rb' - 'ee/spec/views/shared/billings/_trial_status.html.haml_spec.rb' - 'ee/spec/views/shared/credentials_inventory/personal_access_tokens/_personal_access_token.html.haml_spec.rb' - - 'ee/spec/views/shared/credentials_inventory/project_access_tokens/_project_access_token.html.haml_spec.rb' - 'ee/spec/views/shared/promotions/_promotion_link_project.html.haml_spec.rb' - 'ee/spec/workers/active_user_count_threshold_worker_spec.rb' - 'ee/spec/workers/adjourned_group_deletion_worker_spec.rb' @@ -2873,7 +2829,6 @@ Layout/LineLength: - 'ee/spec/workers/elastic_association_indexer_worker_spec.rb' - 'ee/spec/workers/elastic_commit_indexer_worker_spec.rb' - 'ee/spec/workers/geo/batch/project_registry_scheduler_worker_spec.rb' - - 'ee/spec/workers/geo/container_repository_sync_dispatch_worker_spec.rb' - 'ee/spec/workers/geo/destroy_worker_spec.rb' - 'ee/spec/workers/geo/project_sync_worker_spec.rb' - 'ee/spec/workers/geo/prune_event_log_worker_spec.rb' @@ -3013,7 +2968,6 @@ Layout/LineLength: - 'lib/api/settings.rb' - 'lib/api/snippet_repository_storage_moves.rb' - 'lib/api/snippets.rb' - - 'lib/api/submodules.rb' - 'lib/api/suggestions.rb' - 'lib/api/tags.rb' - 'lib/api/templates.rb' @@ -3111,7 +3065,6 @@ Layout/LineLength: - 'lib/gitlab/background_migration/remove_duplicate_vulnerabilities_findings.rb' - 'lib/gitlab/background_migration/reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' - 'lib/gitlab/background_migration/update_vulnerability_occurrences_location.rb' - - 'lib/gitlab/batch_pop_queueing.rb' - 'lib/gitlab/bitbucket_import/importer.rb' - 'lib/gitlab/bitbucket_server_import/importer.rb' - 'lib/gitlab/buffered_io.rb' @@ -3238,8 +3191,6 @@ Layout/LineLength: - 'lib/gitlab/event_store/event.rb' - 'lib/gitlab/event_store/store.rb' - 'lib/gitlab/event_store/subscription.rb' - - 'lib/gitlab/experimentation.rb' - - 'lib/gitlab/experimentation/controller_concern.rb' - 'lib/gitlab/external_authorization/client.rb' - 'lib/gitlab/faraday/error_callback.rb' - 'lib/gitlab/file_detector.rb' @@ -3254,7 +3205,6 @@ Layout/LineLength: - 'lib/gitlab/git/repository.rb' - 'lib/gitlab/git/rugged_impl/repository.rb' - 'lib/gitlab/git/user.rb' - - 'lib/gitlab/git/wiki.rb' - 'lib/gitlab/git_access.rb' - 'lib/gitlab/git_access_project.rb' - 'lib/gitlab/git_access_snippet.rb' @@ -3269,10 +3219,8 @@ Layout/LineLength: - 'lib/gitlab/gitaly_client/remote_service.rb' - 'lib/gitlab/gitaly_client/repository_service.rb' - 'lib/gitlab/gitaly_client/server_service.rb' - - 'lib/gitlab/gitaly_client/wiki_service.rb' - 'lib/gitlab/github_import.rb' - 'lib/gitlab/github_import/importer/pull_request_importer.rb' - - 'lib/gitlab/github_import/issuable_finder.rb' - 'lib/gitlab/github_import/parallel_scheduling.rb' - 'lib/gitlab/gitlab_import/client.rb' - 'lib/gitlab/gitlab_import/importer.rb' @@ -3341,7 +3289,6 @@ Layout/LineLength: - 'lib/gitlab/middleware/read_only/controller.rb' - 'lib/gitlab/middleware/speedscope.rb' - 'lib/gitlab/object_hierarchy.rb' - - 'lib/gitlab/octokit/middleware.rb' - 'lib/gitlab/pagination/keyset/column_order_definition.rb' - 'lib/gitlab/pagination/keyset/in_operator_optimization/order_by_columns.rb' - 'lib/gitlab/pagination/keyset/in_operator_optimization/query_builder.rb' @@ -3353,7 +3300,6 @@ Layout/LineLength: - 'lib/gitlab/pagination/offset_pagination.rb' - 'lib/gitlab/patch/database_config.rb' - 'lib/gitlab/path_regex.rb' - - 'lib/gitlab/profiler.rb' - 'lib/gitlab/project_search_results.rb' - 'lib/gitlab/project_template.rb' - 'lib/gitlab/prometheus/queries/base_query.rb' @@ -3381,7 +3327,6 @@ Layout/LineLength: - 'lib/gitlab/sidekiq_config/worker_router.rb' - 'lib/gitlab/sidekiq_daemon/memory_killer.rb' - 'lib/gitlab/sidekiq_daemon/monitor.rb' - - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb' - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/deduplicates_when_scheduling.rb' - 'lib/gitlab/sidekiq_middleware/server_metrics.rb' - 'lib/gitlab/sidekiq_middleware/size_limiter/compressor.rb' @@ -3469,7 +3414,6 @@ Layout/LineLength: - 'qa/qa/ee/resource/license.rb' - 'qa/qa/flow/sign_up.rb' - 'qa/qa/git/repository.rb' - - 'qa/qa/page/base.rb' - 'qa/qa/page/component/ci_badge_link.rb' - 'qa/qa/page/component/issuable/sidebar.rb' - 'qa/qa/page/component/select2.rb' @@ -3484,7 +3428,6 @@ Layout/LineLength: - 'qa/qa/page/project/web_ide/edit.rb' - 'qa/qa/resource/api_fabricator.rb' - 'qa/qa/resource/file.rb' - - 'qa/qa/resource/members.rb' - 'qa/qa/resource/protected_branch.rb' - 'qa/qa/resource/registry_repository.rb' - 'qa/qa/resource/repository/push.rb' @@ -3510,7 +3453,6 @@ Layout/LineLength: - 'qa/qa/specs/features/api/1_manage/rate_limits_spec.rb' - 'qa/qa/specs/features/api/1_manage/user_access_termination_spec.rb' - 'qa/qa/specs/features/api/1_manage/users_spec.rb' - - 'qa/qa/specs/features/api/3_create/integrations/webhook_events_spec.rb' - 'qa/qa/specs/features/api/3_create/merge_request/push_options_labels_spec.rb' - 'qa/qa/specs/features/api/3_create/merge_request/push_options_mwps_spec.rb' - 'qa/qa/specs/features/api/3_create/repository/default_branch_name_setting_spec.rb' @@ -3531,7 +3473,6 @@ Layout/LineLength: - 'qa/qa/specs/features/browser_ui/1_manage/project/create_project_badge_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/project/invite_group_to_project_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/user/follow_user_activity_spec.rb' - - 'qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/email/trigger_email_notification_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/issue/comment_issue_spec.rb' @@ -3539,12 +3480,9 @@ Layout/LineLength: - 'qa/qa/specs/features/browser_ui/2_plan/issue/export_as_csv_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/issue/filter_issue_comments_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb' - - 'qa/qa/specs/features/browser_ui/2_plan/issue/mentions_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/issue/real_time_assignee_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/related_issues/related_issues_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/transient/comment_on_discussion_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/jenkins/jenkins_build_status_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/jira/jira_basic_integration_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/create_merge_request_via_template_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/merge_when_pipeline_succeeds_spec.rb' @@ -3563,11 +3501,8 @@ Layout/LineLength: - 'qa/qa/specs/features/browser_ui/3_create/repository/move_project_create_fork_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_http_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/protocol_v2_push_ssh_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/push_mirroring_lfs_over_http_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/push_mirroring_over_http_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_ssh_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/push_protected_branch_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/push_to_canary_gitaly_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/ssh_key_support_spec.rb' @@ -3586,11 +3521,6 @@ Layout/LineLength: - 'qa/qa/specs/features/browser_ui/3_create/web_ide/open_web_ide_from_diff_tab_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/upload_new_file_in_web_ide_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/content_editor_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_content_creation_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_content_manipulation_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_list_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_page_deletion_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb' @@ -3621,7 +3551,6 @@ Layout/LineLength: - 'qa/qa/specs/features/ee/api/2_plan/epics_milestone_dates_spec.rb' - 'qa/qa/specs/features/ee/api/3_create/wiki/group_wiki_repository_storage_move_spec.rb' - 'qa/qa/specs/features/ee/api/7_configure/kubernetes/kubernetes_agent_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/10_protect/policies_list_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/cloud_activation_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/license_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/free_trial_spec.rb' @@ -3629,21 +3558,14 @@ Layout/LineLength: - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/purchase_storage_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/upgrade_group_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/user_registration_billing_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/create_merge_request_with_secure_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/13_secure/license_compliance_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/vulnerability_management_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_2_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_enforced_sso_git_access_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_enforced_sso_new_account_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_non_enforced_sso_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/prevent_forking_outside_group_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/share_group_with_group_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/ldap/admin_ldap_sync_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/user/minimal_access_user_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/2_plan/burndown_chart/burndown_chart_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/2_plan/custom_email/custom_email_spec.rb' @@ -3673,13 +3595,11 @@ Layout/LineLength: - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/pull_mirroring_over_ssh_with_key_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/restrict_push_protected_branch_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_status_on_operation_dashboard_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/transient/merge_trains_transient_bug_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/5_package/dependency_proxy_sso_spec.rb' - 'qa/qa/specs/helpers/context_selector.rb' - 'qa/qa/specs/parallel_runner.rb' - - 'qa/qa/support/loglinking.rb' - 'qa/qa/support/run.rb' - 'qa/qa/support/ssh.rb' - 'qa/qa/tools/delete_projects.rb' @@ -3695,9 +3615,7 @@ Layout/LineLength: - 'qa/spec/specs/helpers/context_selector_spec.rb' - 'qa/spec/specs/helpers/quarantine_spec.rb' - 'qa/spec/specs/runner_spec.rb' - - 'qa/spec/support/loglinking_spec.rb' - 'qa/spec/support/page_error_checker_spec.rb' - - 'qa/spec/support/repeater_spec.rb' - 'qa/spec/support/run_spec.rb' - 'qa/spec/support/ssh_spec.rb' - 'rubocop/cop/active_model_errors_direct_manipulation.rb' @@ -3709,7 +3627,6 @@ Layout/LineLength: - 'rubocop/cop/migration/add_limit_to_text_columns.rb' - 'rubocop/cop/migration/add_reference.rb' - 'rubocop/cop/migration/prevent_global_enable_lock_retries_with_disable_ddl_transaction.rb' - - 'rubocop/cop/migration/safer_boolean_column.rb' - 'rubocop/cop/migration/versioned_migration_class.rb' - 'rubocop/cop/migration/with_lock_retries_disallowed_method.rb' - 'rubocop/cop/qa/selector_usage.rb' @@ -3735,18 +3652,14 @@ Layout/LineLength: - 'sidekiq_cluster/sidekiq_cluster.rb' - 'spec/benchmarks/banzai_benchmark.rb' - 'spec/commands/sidekiq_cluster/cli_spec.rb' - - 'spec/config/metrics/aggregates/aggregated_metrics_spec.rb' - 'spec/config/settings_spec.rb' - 'spec/controllers/admin/application_settings_controller_spec.rb' - - 'spec/controllers/admin/groups_controller_spec.rb' - 'spec/controllers/admin/impersonations_controller_spec.rb' - 'spec/controllers/admin/projects_controller_spec.rb' - 'spec/controllers/admin/users_controller_spec.rb' - 'spec/controllers/application_controller_spec.rb' - - 'spec/controllers/boards/issues_controller_spec.rb' - 'spec/controllers/concerns/check_rate_limit_spec.rb' - 'spec/controllers/concerns/confirm_email_warning_spec.rb' - - 'spec/controllers/concerns/issuable_actions_spec.rb' - 'spec/controllers/concerns/metrics_dashboard_spec.rb' - 'spec/controllers/concerns/product_analytics_tracking_spec.rb' - 'spec/controllers/concerns/send_file_upload_spec.rb' @@ -3840,7 +3753,6 @@ Layout/LineLength: - 'spec/db/schema_spec.rb' - 'spec/deprecation_toolkit_env.rb' - 'spec/experiments/concerns/project_commit_count_spec.rb' - - 'spec/experiments/require_verification_for_namespace_creation_experiment_spec.rb' - 'spec/factories/ci/builds.rb' - 'spec/factories/ci/job_artifacts.rb' - 'spec/factories/ci/pipelines.rb' @@ -3930,7 +3842,6 @@ Layout/LineLength: - 'spec/features/issues/user_creates_issue_spec.rb' - 'spec/features/issues/user_edits_issue_spec.rb' - 'spec/features/issues/user_interacts_with_awards_spec.rb' - - 'spec/features/issues/user_sees_empty_state_spec.rb' - 'spec/features/issues/user_sees_live_update_spec.rb' - 'spec/features/issues/user_views_issue_spec.rb' - 'spec/features/labels_hierarchy_spec.rb' @@ -3991,7 +3902,6 @@ Layout/LineLength: - 'spec/features/profiles/two_factor_auths_spec.rb' - 'spec/features/profiles/user_edit_profile_spec.rb' - 'spec/features/projects/artifacts/file_spec.rb' - - 'spec/features/projects/artifacts/user_browses_artifacts_spec.rb' - 'spec/features/projects/artifacts/user_downloads_artifacts_spec.rb' - 'spec/features/projects/blobs/blob_line_permalink_updater_spec.rb' - 'spec/features/projects/blobs/blob_show_spec.rb' @@ -4053,7 +3963,6 @@ Layout/LineLength: - 'spec/features/projects_spec.rb' - 'spec/features/search/user_searches_for_comments_spec.rb' - 'spec/features/search/user_searches_for_merge_requests_spec.rb' - - 'spec/features/search/user_searches_for_projects_spec.rb' - 'spec/features/search/user_uses_header_search_field_spec.rb' - 'spec/features/security/project/internal_access_spec.rb' - 'spec/features/security/project/public_access_spec.rb' @@ -4150,7 +4059,6 @@ Layout/LineLength: - 'spec/graphql/mutations/issues/set_escalation_status_spec.rb' - 'spec/graphql/mutations/issues/update_spec.rb' - 'spec/graphql/mutations/merge_requests/set_labels_spec.rb' - - 'spec/graphql/mutations/namespace/package_settings/update_spec.rb' - 'spec/graphql/mutations/release_asset_links/update_spec.rb' - 'spec/graphql/mutations/releases/delete_spec.rb' - 'spec/graphql/mutations/releases/update_spec.rb' @@ -4435,7 +4343,6 @@ Layout/LineLength: - 'spec/lib/gitlab/background_migration/update_timelogs_project_id_spec.rb' - 'spec/lib/gitlab/background_migration/update_users_where_two_factor_auth_required_from_group_spec.rb' - 'spec/lib/gitlab/bare_repository_import/importer_spec.rb' - - 'spec/lib/gitlab/batch_pop_queueing_spec.rb' - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' - 'spec/lib/gitlab/bitbucket_server_import/importer_spec.rb' - 'spec/lib/gitlab/buffered_io_spec.rb' @@ -4471,7 +4378,6 @@ Layout/LineLength: - 'spec/lib/gitlab/ci/parsers/coverage/cobertura_spec.rb' - 'spec/lib/gitlab/ci/parsers/coverage/sax_document_spec.rb' - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - - 'spec/lib/gitlab/ci/parsers/security/sast_spec.rb' - 'spec/lib/gitlab/ci/parsers/security/validators/schema_validator_spec.rb' - 'spec/lib/gitlab/ci/parsers/test/junit_spec.rb' - 'spec/lib/gitlab/ci/pipeline/chain/cancel_pending_pipelines_spec.rb' @@ -4498,7 +4404,6 @@ Layout/LineLength: - 'spec/lib/gitlab/ci/templates/5_minute_production_app_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/Jobs/deploy_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/auto_devops_gitlab_ci_yaml_spec.rb' - - 'spec/lib/gitlab/ci/templates/npm_spec.rb' - 'spec/lib/gitlab/ci/variables/builder_spec.rb' - 'spec/lib/gitlab/ci/yaml_processor_spec.rb' - 'spec/lib/gitlab/cleanup/orphan_lfs_file_references_spec.rb' @@ -4605,13 +4510,11 @@ Layout/LineLength: - 'spec/lib/gitlab/etag_caching/router/graphql_spec.rb' - 'spec/lib/gitlab/etag_caching/router/rails_spec.rb' - 'spec/lib/gitlab/exception_log_formatter_spec.rb' - - 'spec/lib/gitlab/experimentation/controller_concern_spec.rb' - 'spec/lib/gitlab/form_builders/gitlab_ui_form_builder_spec.rb' - 'spec/lib/gitlab/git/base_error_spec.rb' - 'spec/lib/gitlab/git/commit_spec.rb' - 'spec/lib/gitlab/git/compare_spec.rb' - 'spec/lib/gitlab/git/conflict/file_spec.rb' - - 'spec/lib/gitlab/git/cross_repo_comparer_spec.rb' - 'spec/lib/gitlab/git/diff_spec.rb' - 'spec/lib/gitlab/git/raw_diff_change_spec.rb' - 'spec/lib/gitlab/git/remote_mirror_spec.rb' @@ -4679,7 +4582,6 @@ Layout/LineLength: - 'spec/lib/gitlab/import_export/uploads_manager_spec.rb' - 'spec/lib/gitlab/import_export/version_checker_spec.rb' - 'spec/lib/gitlab/import_sources_spec.rb' - - 'spec/lib/gitlab/incoming_email_spec.rb' - 'spec/lib/gitlab/instrumentation/redis_interceptor_spec.rb' - 'spec/lib/gitlab/issuable_metadata_spec.rb' - 'spec/lib/gitlab/issues/rebalancing/state_spec.rb' @@ -4802,7 +4704,6 @@ Layout/LineLength: - 'spec/lib/gitlab/usage/metrics/instrumentations/redis_hll_metric_spec.rb' - 'spec/lib/gitlab/usage/metrics/name_suggestion_spec.rb' - 'spec/lib/gitlab/usage/metrics/names_suggestions/generator_spec.rb' - - 'spec/lib/gitlab/usage/metrics/names_suggestions/relation_parsers/constraints_spec.rb' - 'spec/lib/gitlab/usage/metrics/names_suggestions/relation_parsers/joins_spec.rb' - 'spec/lib/gitlab/usage/metrics/query_spec.rb' - 'spec/lib/gitlab/usage/service_ping/payload_keys_processor_spec.rb' @@ -4966,7 +4867,6 @@ Layout/LineLength: - 'spec/models/concerns/bulk_insert_safe_spec.rb' - 'spec/models/concerns/cache_markdown_field_spec.rb' - 'spec/models/concerns/cacheable_attributes_spec.rb' - - 'spec/models/concerns/cascading_namespace_setting_attribute_spec.rb' - 'spec/models/concerns/ci/artifactable_spec.rb' - 'spec/models/concerns/clusters/agents/authorization_config_scopes_spec.rb' - 'spec/models/concerns/deployment_platform_spec.rb' @@ -5003,7 +4903,6 @@ Layout/LineLength: - 'spec/models/environment_spec.rb' - 'spec/models/error_tracking/error_spec.rb' - 'spec/models/event_spec.rb' - - 'spec/models/experiment_spec.rb' - 'spec/models/gpg_key_spec.rb' - 'spec/models/grafana_integration_spec.rb' - 'spec/models/group_deploy_key_spec.rb' @@ -5029,9 +4928,7 @@ Layout/LineLength: - 'spec/models/integrations/drone_ci_spec.rb' - 'spec/models/integrations/emails_on_push_spec.rb' - 'spec/models/integrations/jira_spec.rb' - - 'spec/models/integrations/packagist_spec.rb' - 'spec/models/integrations/prometheus_spec.rb' - - 'spec/models/integrations/slack_spec.rb' - 'spec/models/issue_spec.rb' - 'spec/models/jira_import_state_spec.rb' - 'spec/models/key_spec.rb' @@ -5237,7 +5134,6 @@ Layout/LineLength: - 'spec/requests/api/graphql/project/cluster_agents_spec.rb' - 'spec/requests/api/graphql/project/container_repositories_spec.rb' - 'spec/requests/api/graphql/project/issue/designs/designs_spec.rb' - - 'spec/requests/api/graphql/project/issues_spec.rb' - 'spec/requests/api/graphql/project/jira_import_spec.rb' - 'spec/requests/api/graphql/project/jobs_spec.rb' - 'spec/requests/api/graphql/project/milestones_spec.rb' @@ -5377,8 +5273,6 @@ Layout/LineLength: - 'spec/serializers/context_commits_diff_entity_spec.rb' - 'spec/serializers/diff_file_base_entity_spec.rb' - 'spec/serializers/diff_file_entity_spec.rb' - - 'spec/serializers/diffs_entity_spec.rb' - - 'spec/serializers/diffs_metadata_entity_spec.rb' - 'spec/serializers/discussion_entity_spec.rb' - 'spec/serializers/environment_entity_spec.rb' - 'spec/serializers/environment_serializer_spec.rb' @@ -5396,7 +5290,6 @@ Layout/LineLength: - 'spec/serializers/merge_request_poll_widget_entity_spec.rb' - 'spec/serializers/merge_request_serializer_spec.rb' - 'spec/serializers/merge_request_widget_entity_spec.rb' - - 'spec/serializers/paginated_diff_entity_spec.rb' - 'spec/serializers/pipeline_serializer_spec.rb' - 'spec/serializers/review_app_setup_entity_spec.rb' - 'spec/services/alert_management/alerts/update_service_spec.rb' @@ -5434,15 +5327,10 @@ Layout/LineLength: - 'spec/services/ci/test_failure_history_service_spec.rb' - 'spec/services/ci/unlock_artifacts_service_spec.rb' - 'spec/services/ci/update_pending_build_service_spec.rb' - - 'spec/services/clusters/applications/check_installation_progress_service_spec.rb' - - 'spec/services/clusters/applications/check_uninstall_progress_service_spec.rb' - - 'spec/services/clusters/applications/create_service_spec.rb' - - 'spec/services/clusters/applications/uninstall_service_spec.rb' - 'spec/services/clusters/aws/fetch_credentials_service_spec.rb' - 'spec/services/clusters/aws/provision_service_spec.rb' - 'spec/services/clusters/create_service_spec.rb' - 'spec/services/clusters/integrations/prometheus_health_check_service_spec.rb' - - 'spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb' - 'spec/services/clusters/management/validate_management_project_permissions_service_spec.rb' @@ -5491,7 +5379,6 @@ Layout/LineLength: - 'spec/services/import/gitlab_projects/file_acquisition_strategies/remote_file_spec.rb' - 'spec/services/import/validate_remote_git_endpoint_service_spec.rb' - 'spec/services/incident_management/incidents/create_service_spec.rb' - - 'spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb' - 'spec/services/incident_management/pager_duty/create_incident_issue_service_spec.rb' - 'spec/services/incident_management/pager_duty/process_webhook_service_spec.rb' - 'spec/services/integrations/propagate_service_spec.rb' @@ -5561,7 +5448,6 @@ Layout/LineLength: - 'spec/services/milestones/transfer_service_spec.rb' - 'spec/services/namespace_settings/update_service_spec.rb' - 'spec/services/namespaces/in_product_marketing_emails_service_spec.rb' - - 'spec/services/namespaces/package_settings/update_service_spec.rb' - 'spec/services/notes/build_service_spec.rb' - 'spec/services/notes/copy_service_spec.rb' - 'spec/services/notes/create_service_spec.rb' @@ -5597,7 +5483,6 @@ Layout/LineLength: - 'spec/services/pages/migrate_from_legacy_storage_service_spec.rb' - 'spec/services/pages/migrate_legacy_storage_to_deployment_service_spec.rb' - 'spec/services/personal_access_tokens/create_service_spec.rb' - - 'spec/services/personal_access_tokens/revoke_service_spec.rb' - 'spec/services/post_receive_service_spec.rb' - 'spec/services/projects/apple_target_platform_detector_service_spec.rb' - 'spec/services/projects/autocomplete_service_spec.rb' @@ -5664,11 +5549,9 @@ Layout/LineLength: - 'spec/services/users/approve_service_spec.rb' - 'spec/services/users/ban_service_spec.rb' - 'spec/services/users/create_service_spec.rb' - - 'spec/services/users/migrate_to_ghost_user_service_spec.rb' - 'spec/services/users/reject_service_spec.rb' - 'spec/services/users/unban_service_spec.rb' - 'spec/services/users/upsert_credit_card_validation_service_spec.rb' - - 'spec/services/web_hook_service_spec.rb' - 'spec/services/web_hooks/log_execution_service_spec.rb' - 'spec/services/work_items/create_and_link_service_spec.rb' - 'spec/services/work_items/create_from_task_service_spec.rb' @@ -5681,7 +5564,6 @@ Layout/LineLength: - 'spec/support/atlassian/jira_connect/schemata.rb' - 'spec/support/capybara.rb' - 'spec/support/cycle_analytics_helpers/test_generation.rb' - - 'spec/support/database/multiple_databases.rb' - 'spec/support/database/prevent_cross_database_modification.rb' - 'spec/support/database/prevent_cross_joins.rb' - 'spec/support/db_cleaner.rb' @@ -5864,7 +5746,6 @@ Layout/LineLength: - 'spec/support/shared_examples/services/metrics/dashboard_shared_examples.rb' - 'spec/support/shared_examples/services/namespace_package_settings_shared_examples.rb' - 'spec/support/shared_examples/services/packages/debian/generate_distribution_shared_examples.rb' - - 'spec/support/shared_examples/services/packages_shared_examples.rb' - 'spec/support/shared_examples/services/projects/update_repository_storage_service_shared_examples.rb' - 'spec/support/shared_examples/services/rate_limited_service_shared_examples.rb' - 'spec/support/shared_examples/services/repositories/housekeeping_shared_examples.rb' @@ -5877,7 +5758,6 @@ Layout/LineLength: - 'spec/support/shared_examples/workers/concerns/git_garbage_collect_methods_shared_examples.rb' - 'spec/support/shared_examples/workers/gitlab/jira_import/jira_import_workers_shared_examples.rb' - 'spec/support/shared_examples/workers/project_export_shared_examples.rb' - - 'spec/support_specs/database/multiple_databases_spec.rb' - 'spec/support_specs/database/prevent_cross_joins_spec.rb' - 'spec/support_specs/helpers/active_record/query_recorder_spec.rb' - 'spec/support_specs/helpers/graphql_helpers_spec.rb' @@ -5916,11 +5796,9 @@ Layout/LineLength: - 'spec/tooling/rspec_flaky/flaky_examples_collection_spec.rb' - 'spec/tooling/rspec_flaky/report_spec.rb' - 'spec/uploaders/ci/pipeline_artifact_uploader_spec.rb' - - 'spec/uploaders/external_diff_uploader_spec.rb' - 'spec/uploaders/file_mover_spec.rb' - 'spec/uploaders/file_uploader_spec.rb' - 'spec/uploaders/job_artifact_uploader_spec.rb' - - 'spec/uploaders/lfs_object_uploader_spec.rb' - 'spec/uploaders/namespace_file_uploader_spec.rb' - 'spec/uploaders/object_storage_spec.rb' - 'spec/uploaders/pages/deployment_uploader_spec.rb' @@ -5940,7 +5818,6 @@ Layout/LineLength: - 'spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb' - 'spec/views/notify/push_to_merge_request_email.text.haml_spec.rb' - 'spec/views/profiles/keys/_form.html.haml_spec.rb' - - 'spec/views/projects/artifacts/_artifact.html.haml_spec.rb' - 'spec/views/projects/commits/_commit.html.haml_spec.rb' - 'spec/views/projects/imports/new.html.haml_spec.rb' - 'spec/views/projects/jobs/_build.html.haml_spec.rb' @@ -5975,7 +5852,6 @@ Layout/LineLength: - 'spec/workers/ci/pipeline_success_unlock_artifacts_worker_spec.rb' - 'spec/workers/ci/ref_delete_unlock_artifacts_worker_spec.rb' - 'spec/workers/ci/resource_groups/assign_resource_from_resource_group_worker_spec.rb' - - 'spec/workers/cluster_wait_for_app_update_worker_spec.rb' - 'spec/workers/clusters/integrations/check_prometheus_health_worker_spec.rb' - 'spec/workers/concerns/application_worker_spec.rb' - 'spec/workers/concerns/project_import_options_spec.rb' diff --git a/.rubocop_todo/layout/multiline_operation_indentation.yml b/.rubocop_todo/layout/multiline_operation_indentation.yml index cdfa560ef2e..d8311d1fc14 100644 --- a/.rubocop_todo/layout/multiline_operation_indentation.yml +++ b/.rubocop_todo/layout/multiline_operation_indentation.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/MultilineOperationIndentation: Exclude: - 'app/components/pajamas/concerns/checkbox_radio_label_with_help_text.rb' @@ -16,43 +16,36 @@ Layout/MultilineOperationIndentation: - 'app/helpers/whats_new_helper.rb' - 'app/models/concerns/admin_changed_password_notifier.rb' - 'app/models/integrations/prometheus.rb' - - 'app/models/merge_request_diff_file.rb' - 'app/models/namespaces/traversal/linear_scopes.rb' - 'app/models/packages/conan/metadatum.rb' - 'app/models/packages/sem_ver.rb' - 'app/models/project.rb' - - 'app/models/project_statistics.rb' - 'app/models/user.rb' - 'app/models/work_items/parent_link.rb' - 'app/policies/project_policy.rb' - 'app/serializers/deploy_keys/deploy_key_entity.rb' - 'app/services/ci/create_downstream_pipeline_service.rb' - - 'app/services/ci/create_pipeline_service.rb' - 'app/services/git/branch_hooks_service.rb' - 'app/services/groups/transfer_service.rb' - 'app/services/issues/update_service.rb' - 'app/services/labels/promote_service.rb' - 'app/services/labels/transfer_service.rb' - 'app/services/members/approve_access_request_service.rb' - - 'app/services/projects/container_repository/cleanup_tags_service.rb' - 'app/services/webauthn/authenticate_service.rb' - 'app/validators/feature_flag_strategies_validator.rb' - 'app/workers/container_expiration_policies/cleanup_container_repository_worker.rb' - 'app/workers/container_registry/migration/guard_worker.rb' - 'config/initializers/devise_dynamic_password_length_validation.rb' - 'danger/utility_css/Dangerfile' - - 'ee/app/controllers/ee/admin/application_settings_controller.rb' - 'ee/app/controllers/projects/integrations/jira/issues_controller.rb' - 'ee/app/controllers/smartcard_controller.rb' - 'ee/app/graphql/resolvers/boards/epic_lists_resolver.rb' - 'ee/app/helpers/ee/application_settings_helper.rb' - 'ee/app/helpers/ee/boards_helper.rb' - 'ee/app/helpers/ee/groups/group_members_helper.rb' - - 'ee/app/helpers/ee/groups/reporting_helper.rb' - 'ee/app/helpers/ee/projects/project_members_helper.rb' - 'ee/app/helpers/groups/security_features_helper.rb' - 'ee/app/helpers/groups/sso_helper.rb' - - 'ee/app/models/approval_project_rule.rb' - 'ee/app/models/concerns/ee/issuable.rb' - 'ee/app/models/ee/namespace.rb' - 'ee/app/models/ee/project.rb' @@ -68,19 +61,15 @@ Layout/MultilineOperationIndentation: - 'ee/lib/ee/api/geo.rb' - 'ee/lib/ee/api/helpers.rb' - 'ee/lib/ee/api/settings.rb' - - 'ee/lib/ee/gitlab/git_access_project.rb' - 'ee/lib/ee/gitlab/middleware/read_only/controller.rb' - 'ee/lib/ee/gitlab/quick_actions/issue_actions.rb' - 'ee/lib/ee/sidebars/projects/menus/ci_cd_menu.rb' - 'ee/lib/ee/sidebars/projects/menus/issues_menu.rb' - - 'ee/lib/gitlab/incident_management.rb' - 'ee/lib/sidebars/groups/menus/analytics_menu.rb' - - 'ee/lib/sidebars/groups/menus/security_compliance_menu.rb' - 'ee/spec/services/ci/create_pipeline_service/dast_configuration_spec.rb' - 'lib/api/maven_packages.rb' - 'lib/api/users.rb' - 'lib/api/validations/validators/array_none_any.rb' - - 'lib/gitlab/auth/o_auth/user.rb' - 'lib/gitlab/ci/reports/security/finding_key.rb' - 'lib/gitlab/database/load_balancing/connection_proxy.rb' - 'lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb' @@ -104,11 +93,9 @@ Layout/MultilineOperationIndentation: - 'lib/sidebars/projects/menus/analytics_menu.rb' - 'lib/sidebars/projects/menus/deployments_menu.rb' - 'lib/sidebars/projects/menus/hidden_menu.rb' - - 'lib/sidebars/projects/menus/monitor_menu.rb' - 'qa/qa/ee/page/group/roadmap.rb' - 'qa/qa/page/component/snippet.rb' - 'qa/qa/runtime/api/repository_storage_moves.rb' - - 'rubocop/cop/gitlab/keys_first_and_values_first.rb' - 'rubocop/migration_helpers.rb' - 'spec/controllers/graphql_controller_spec.rb' - 'spec/frontend/fixtures/tabs.rb' diff --git a/.rubocop_todo/layout/space_around_operators.yml b/.rubocop_todo/layout/space_around_operators.yml index 9f6c0145723..1ddce55213e 100644 --- a/.rubocop_todo/layout/space_around_operators.yml +++ b/.rubocop_todo/layout/space_around_operators.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/SpaceAroundOperators: Exclude: - 'lib/gitlab/utils/strong_memoize.rb' diff --git a/.rubocop_todo/layout/space_before_block_braces.yml b/.rubocop_todo/layout/space_before_block_braces.yml index 3be90947fee..ff99ad7187a 100644 --- a/.rubocop_todo/layout/space_before_block_braces.yml +++ b/.rubocop_todo/layout/space_before_block_braces.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/SpaceBeforeBlockBraces: Exclude: - 'app/helpers/colors_helper.rb' diff --git a/.rubocop_todo/layout/space_in_lambda_literal.yml b/.rubocop_todo/layout/space_in_lambda_literal.yml index f025680c209..6bb31295fbd 100644 --- a/.rubocop_todo/layout/space_in_lambda_literal.yml +++ b/.rubocop_todo/layout/space_in_lambda_literal.yml @@ -1,17 +1,15 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/SpaceInLambdaLiteral: - # Offense count: 986 + # Offense count: 1061 # Temporarily disabled due to too many offenses Enabled: false Exclude: - 'app/controllers/concerns/issuable_actions.rb' - 'app/controllers/projects/ci/daily_build_group_report_results_controller.rb' - - 'app/controllers/projects/merge_requests/diffs_controller.rb' - 'app/controllers/projects/merge_requests_controller.rb' - 'app/finders/releases/group_releases_finder.rb' - - 'app/finders/user_recent_events_finder.rb' - - 'app/graphql/types/permission_types/base_permission_type.rb' + - 'app/graphql/mutations/ci/runner/update.rb' - 'app/models/abuse_report.rb' - 'app/models/alert_management/alert.rb' - 'app/models/alert_management/http_integration.rb' @@ -47,7 +45,7 @@ Layout/SpaceInLambdaLiteral: - 'app/models/commit_status.rb' - 'app/models/concerns/analytics/cycle_analytics/stage.rb' - 'app/models/concerns/analytics/cycle_analytics/stage_event_model.rb' - - 'app/models/concerns/approvable_base.rb' + - 'app/models/concerns/approvable.rb' - 'app/models/concerns/ci/artifactable.rb' - 'app/models/concerns/ci/has_status.rb' - 'app/models/concerns/ci/has_variable.rb' @@ -55,6 +53,7 @@ Layout/SpaceInLambdaLiteral: - 'app/models/concerns/has_unique_internal_users.rb' - 'app/models/concerns/id_in_ordered.rb' - 'app/models/concerns/incident_management/escalatable.rb' + - 'app/models/concerns/issuable.rb' - 'app/models/concerns/mentionable.rb' - 'app/models/concerns/milestoneable.rb' - 'app/models/concerns/protected_ref_access.rb' @@ -68,10 +67,14 @@ Layout/SpaceInLambdaLiteral: - 'app/models/design_management/version.rb' - 'app/models/diff_note.rb' - 'app/models/environment.rb' + - 'app/models/error_tracking/client_key.rb' - 'app/models/error_tracking/error.rb' - 'app/models/external_pull_request.rb' - 'app/models/group.rb' + - 'app/models/group_group_link.rb' + - 'app/models/incident_management/timeline_event_tag.rb' - 'app/models/integration.rb' + - 'app/models/integrations/base_chat_notification.rb' - 'app/models/integrations/datadog.rb' - 'app/models/internal_id.rb' - 'app/models/issue.rb' @@ -107,6 +110,7 @@ Layout/SpaceInLambdaLiteral: - 'app/models/project_feature_usage.rb' - 'app/models/project_group_link.rb' - 'app/models/project_statistics.rb' + - 'app/models/projects/import_export/relation_export.rb' - 'app/models/projects/topic.rb' - 'app/models/prometheus_alert.rb' - 'app/models/prometheus_alert_event.rb' @@ -116,14 +120,15 @@ Layout/SpaceInLambdaLiteral: - 'app/models/release.rb' - 'app/models/route.rb' - 'app/models/service_desk_setting.rb' - - 'app/models/snippet.rb' - 'app/models/snippet_input_action.rb' - 'app/models/terraform/state.rb' - 'app/models/timelog.rb' - 'app/models/todo.rb' - 'app/models/user.rb' - 'app/models/user_highest_role.rb' + - 'app/models/users/callout.rb' - 'app/models/users/in_product_marketing_email.rb' + - 'app/models/users/phone_number_validation.rb' - 'app/models/users_star_project.rb' - 'app/models/zoom_meeting.rb' - 'app/serializers/analytics/cycle_analytics/stage_entity.rb' @@ -139,6 +144,7 @@ Layout/SpaceInLambdaLiteral: - 'app/serializers/concerns/user_status_tooltip.rb' - 'app/serializers/container_repository_entity.rb' - 'app/serializers/container_tag_entity.rb' + - 'app/serializers/deploy_keys/basic_deploy_key_entity.rb' - 'app/serializers/deployment_cluster_entity.rb' - 'app/serializers/deployment_entity.rb' - 'app/serializers/detailed_status_entity.rb' @@ -160,6 +166,7 @@ Layout/SpaceInLambdaLiteral: - 'app/serializers/merge_request_poll_cached_widget_entity.rb' - 'app/serializers/merge_request_poll_widget_entity.rb' - 'app/serializers/merge_request_widget_entity.rb' + - 'app/serializers/merge_requests/pipeline_entity.rb' - 'app/serializers/note_entity.rb' - 'app/serializers/project_note_entity.rb' - 'app/serializers/review_app_setup_entity.rb' @@ -173,13 +180,16 @@ Layout/SpaceInLambdaLiteral: - 'app/services/ci/job_artifacts/expire_project_build_artifacts_service.rb' - 'app/services/ci/register_job_service.rb' - 'app/services/environments/auto_stop_service.rb' + - 'app/services/incident_management/timeline_events/create_service.rb' - 'app/services/issues/export_csv_service.rb' - 'app/services/issues/referenced_merge_requests_service.rb' - 'app/services/jira_connect_subscriptions/create_service.rb' - 'app/services/merge_requests/export_csv_service.rb' + - 'app/services/packages/mark_packages_for_destruction_service.rb' - 'app/services/projects/fork_service.rb' - 'app/services/resource_access_tokens/create_service.rb' - 'app/workers/issues/reschedule_stuck_issue_rebalances_worker.rb' + - 'app/workers/process_commit_worker.rb' - 'config/initializers/deprecations.rb' - 'config/routes/project.rb' - 'db/post_migrate/20210303121224_update_gitlab_subscriptions_start_at_post_eoa.rb' @@ -196,6 +206,7 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/models/ci/minutes/project_monthly_usage.rb' - 'ee/app/models/concerns/approval_rule_like.rb' - 'ee/app/models/concerns/ee/protected_ref.rb' + - 'ee/app/models/concerns/filterable_by_test_reports.rb' - 'ee/app/models/concerns/issue_widgets/acts_like_requirement.rb' - 'ee/app/models/dast/profile.rb' - 'ee/app/models/dast/profile_schedule.rb' @@ -204,19 +215,24 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/models/dast_site_profile.rb' - 'ee/app/models/dast_site_validation.rb' - 'ee/app/models/dora/daily_metrics.rb' + - 'ee/app/models/ee/application_setting.rb' - 'ee/app/models/ee/audit_event.rb' - 'ee/app/models/ee/ci/build.rb' - 'ee/app/models/ee/ci/job_artifact.rb' + - 'ee/app/models/ee/clusters/agent.rb' - 'ee/app/models/ee/environment.rb' - 'ee/app/models/ee/epic.rb' - 'ee/app/models/ee/gpg_key.rb' - 'ee/app/models/ee/group.rb' + - 'ee/app/models/ee/group_group_link.rb' - 'ee/app/models/ee/issue.rb' - 'ee/app/models/ee/iteration.rb' - 'ee/app/models/ee/list.rb' - 'ee/app/models/ee/member.rb' - 'ee/app/models/ee/namespace.rb' + - 'ee/app/models/ee/namespace_setting.rb' - 'ee/app/models/ee/project.rb' + - 'ee/app/models/ee/project_group_link.rb' - 'ee/app/models/ee/release.rb' - 'ee/app/models/ee/vulnerability.rb' - 'ee/app/models/elasticsearch_indexed_namespace.rb' @@ -232,6 +248,7 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/models/merge_request_block.rb' - 'ee/app/models/merge_requests/compliance_violation.rb' - 'ee/app/models/merge_train.rb' + - 'ee/app/models/namespaces/namespace_ban.rb' - 'ee/app/models/requirements_management/requirement.rb' - 'ee/app/models/resource_iteration_event.rb' - 'ee/app/models/saml_group_link.rb' @@ -241,6 +258,7 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/models/security/scan.rb' - 'ee/app/models/security/training.rb' - 'ee/app/models/security/training_provider.rb' + - 'ee/app/models/slack_integration.rb' - 'ee/app/models/software_license.rb' - 'ee/app/models/software_license_policy.rb' - 'ee/app/models/vulnerabilities/external_issue_link.rb' @@ -255,6 +273,7 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/models/vulnerabilities/read.rb' - 'ee/app/models/vulnerabilities/remediation.rb' - 'ee/app/models/vulnerabilities/scanner.rb' + - 'ee/app/models/vulnerabilities/statistic.rb' - 'ee/app/serializers/blocking_merge_request_entity.rb' - 'ee/app/serializers/clusters/environment_entity.rb' - 'ee/app/serializers/dashboard_operations_project_entity.rb' @@ -289,22 +308,26 @@ Layout/SpaceInLambdaLiteral: - 'ee/app/services/user_permissions/export_service.rb' - 'ee/app/services/vulnerability_exports/exporters/csv_service.rb' - 'ee/app/workers/update_all_mirrors_worker.rb' - - 'ee/lib/api/entities/iteration.rb' - 'ee/lib/api/entities/pending_member.rb' + - 'ee/lib/api/ml/ai_assist.rb' - 'ee/lib/ee/api/entities/ci/job_request/response.rb' - 'ee/lib/ee/api/entities/epic.rb' - - 'ee/lib/ee/api/entities/geo_node_status.rb' - 'ee/lib/ee/api/entities/issue.rb' - 'ee/lib/ee/api/entities/list.rb' - 'ee/lib/ee/api/entities/member.rb' - 'ee/lib/ee/api/entities/project_approval_rule.rb' - 'ee/lib/ee/api/entities/user_basic.rb' - 'ee/lib/ee/api/entities/vulnerability_issue_link.rb' + - 'ee/lib/ee/gitlab/background_migration/backfill_epic_cache_counts.rb' + - 'ee/lib/ee/gitlab/background_migration/delete_approval_rules_with_vulnerability.rb' + - 'ee/lib/ee/gitlab/background_migration/migrate_shared_vulnerability_scanners.rb' + - 'ee/lib/ee/gitlab/background_migration/populate_approval_merge_request_rules_with_security_orchestration.rb' + - 'ee/lib/ee/gitlab/background_migration/populate_approval_project_rules_with_security_orchestration.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/ci/config/entry/need.rb' - 'ee/lib/ee/gitlab/event_store.rb' - 'ee/lib/gitlab/ci/config/entry/vault/secret.rb' + - 'ee/lib/gitlab/insights/executors/dora_executor.rb' - 'ee/spec/frontend/fixtures/dast_profiles.rb' - 'ee/spec/lib/gitlab/ci/reports/security/locations/container_scanning_spec.rb' - 'ee/spec/requests/api/merge_request_approval_rules_spec.rb' @@ -318,7 +341,6 @@ Layout/SpaceInLambdaLiteral: - 'lib/api/entities/ci/variable.rb' - 'lib/api/entities/container_registry.rb' - 'lib/api/entities/deploy_key.rb' - - 'lib/api/entities/environment.rb' - 'lib/api/entities/event.rb' - 'lib/api/entities/group.rb' - 'lib/api/entities/invitation.rb' @@ -335,18 +357,27 @@ Layout/SpaceInLambdaLiteral: - 'lib/api/files.rb' - 'lib/api/helm_packages.rb' - 'lib/api/helpers/caching.rb' + - 'lib/api/merge_requests.rb' + - 'lib/api/metadata.rb' - 'lib/api/metrics/dashboard/annotations.rb' + - 'lib/api/ml/mlflow.rb' - 'lib/api/releases.rb' - - 'lib/api/repositories.rb' - 'lib/api/settings.rb' - 'lib/api/tags.rb' + - 'lib/api/unleash.rb' - 'lib/api/users.rb' - - 'lib/api/version.rb' - 'lib/atlassian/jira_connect/serializers/author_entity.rb' + - 'lib/bulk_imports/groups/transformers/group_attributes_transformer.rb' - 'lib/container_registry/base_client.rb' - 'lib/container_registry/client.rb' + - 'lib/event_filter.rb' - 'lib/file_size_validator.rb' + - 'lib/gitlab/analytics/date_filler.rb' + - 'lib/gitlab/background_migration/backfill_internal_on_notes.rb' + - 'lib/gitlab/background_migration/backfill_project_namespace_on_issues.rb' + - 'lib/gitlab/background_migration/backfill_work_item_type_id_for_issues.rb' - 'lib/gitlab/background_migration/populate_latest_pipeline_ids.rb' + - 'lib/gitlab/background_migration/purge_stale_security_scans.rb' - 'lib/gitlab/background_migration/remove_all_trace_expiration_dates.rb' - 'lib/gitlab/cache/helpers.rb' - 'lib/gitlab/ci/config/entry/inherit/default.rb' @@ -356,29 +387,33 @@ Layout/SpaceInLambdaLiteral: - 'lib/gitlab/ci/config/entry/policy.rb' - 'lib/gitlab/ci/config/entry/product/parallel.rb' - 'lib/gitlab/ci/config/entry/retry.rb' + - 'lib/gitlab/ci/config/entry/rules/rule/changes.rb' - 'lib/gitlab/ci/config/entry/trigger.rb' + - 'lib/gitlab/ci/config/entry/variable.rb' - 'lib/gitlab/database/background_migration_job.rb' - 'lib/gitlab/email/handler/unsubscribe_handler.rb' + - 'lib/gitlab/event_store.rb' - 'lib/gitlab/gl_repository.rb' + - 'lib/gitlab/health_checks/server.rb' - 'lib/gitlab/import_export/import_failure_service.rb' - 'lib/gitlab/merge_requests/commit_message_generator.rb' - 'lib/gitlab/metrics/dashboard/transformers/yml/v1/prometheus_metrics.rb' - 'lib/gitlab/metrics/exporter/base_exporter.rb' - 'lib/gitlab/visibility_level.rb' - - 'rubocop/cop/rspec/modify_sidekiq_middleware.rb' - - 'rubocop/cop/rspec/timecop_freeze.rb' - - 'rubocop/cop/rspec/timecop_travel.rb' - 'spec/deprecation_toolkit_env.rb' - 'spec/features/admin/users/user_spec.rb' - 'spec/helpers/namespaces_helper_spec.rb' - 'spec/lib/backup/gitaly_backup_spec.rb' - 'spec/lib/container_registry/client_spec.rb' - 'spec/lib/csv_builder_spec.rb' + - 'spec/lib/gitlab/analytics/date_filler_spec.rb' + - 'spec/lib/gitlab/background_migration/batched_migration_job_spec.rb' - 'spec/lib/gitlab/batch_worker_context_spec.rb' - 'spec/lib/gitlab/config/entry/simplifiable_spec.rb' - 'spec/lib/gitlab/database/consistency_spec.rb' + - 'spec/lib/gitlab/database/migration_helpers/restrict_gitlab_schema_spec.rb' + - 'spec/lib/gitlab/database/query_analyzers/gitlab_schemas_validate_connection_spec.rb' - 'spec/lib/gitlab/event_store/store_spec.rb' - - 'spec/lib/gitlab/graphql/markdown_field_spec.rb' - 'spec/lib/gitlab/middleware/handle_ip_spoof_attack_error_spec.rb' - 'spec/lib/gitlab/middleware/request_context_spec.rb' - 'spec/lib/gitlab/pagination/keyset/in_operator_optimization/query_builder_spec.rb' @@ -393,4 +428,5 @@ Layout/SpaceInLambdaLiteral: - 'spec/models/concerns/uniquify_spec.rb' - 'spec/models/merge_request_spec.rb' - 'spec/support/shared_examples/lib/cache_helpers_shared_examples.rb' + - 'spec/support/shared_examples/workers/batched_background_migration_worker_shared_examples.rb' - 'spec/workers/concerns/worker_context_spec.rb' diff --git a/.rubocop_todo/layout/space_inside_block_braces.yml b/.rubocop_todo/layout/space_inside_block_braces.yml index c775ad94e46..07cd163103e 100644 --- a/.rubocop_todo/layout/space_inside_block_braces.yml +++ b/.rubocop_todo/layout/space_inside_block_braces.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/SpaceInsideBlockBraces: Exclude: - 'spec/requests/api/groups_spec.rb' diff --git a/.rubocop_todo/layout/space_inside_parens.yml b/.rubocop_todo/layout/space_inside_parens.yml index e6238992619..3e443d9d5d1 100644 --- a/.rubocop_todo/layout/space_inside_parens.yml +++ b/.rubocop_todo/layout/space_inside_parens.yml @@ -1,34 +1,40 @@ --- # Cop supports --autocorrect. Layout/SpaceInsideParens: - # Offense count: 701 + # Offense count: 422 # Temporarily disabled due to too many offenses Enabled: false Exclude: - - 'config/initializers/wikicloth_redos_patch.rb' - 'db/post_migrate/20210722042939_update_issuable_slas_where_issue_closed.rb' + - 'ee/app/models/ee/dependency_proxy/blob.rb' + - 'ee/app/models/ee/dependency_proxy/manifest.rb' - 'ee/lib/ee/gitlab/auth/ldap/access.rb' - 'ee/lib/gitlab/auth/smartcard/session.rb' + - 'ee/lib/system_check/geo/current_node_check.rb' - 'ee/spec/finders/ee/alert_management/http_integrations_finder_spec.rb' - 'ee/spec/finders/epics_finder_spec.rb' + - 'ee/spec/finders/security/findings_finder_spec.rb' - 'ee/spec/finders/security/pipeline_vulnerabilities_finder_spec.rb' + - 'ee/spec/finders/security/vulnerability_feedbacks_finder_spec.rb' - 'ee/spec/frontend/fixtures/analytics/devops_reports/devops_adoption/enabled_namespaces.rb' - 'ee/spec/frontend/fixtures/epic.rb' + - 'ee/spec/frontend/fixtures/namespace.rb' - 'ee/spec/frontend/fixtures/projects.rb' - 'ee/spec/mailers/notify_spec.rb' - 'ee/spec/migrations/add_non_null_constraint_for_escalation_rule_on_pending_alert_escalations_spec.rb' - 'ee/spec/migrations/drop_invalid_remediations_spec.rb' - 'ee/spec/models/allowed_email_domain_spec.rb' + - 'ee/spec/models/audit_events/external_audit_event_destination_spec.rb' - 'ee/spec/models/boards/epic_board_position_spec.rb' - 'ee/spec/models/dora/change_failure_rate_metric_spec.rb' - 'ee/spec/models/ee/integrations/jira_spec.rb' - 'ee/spec/models/ee/iteration_spec.rb' + - 'ee/spec/models/ee/iterations/cadence_spec.rb' - 'ee/spec/models/ee/key_spec.rb' - 'ee/spec/models/ee/system_note_metadata_spec.rb' - 'ee/spec/models/geo/every_geo_event_spec.rb' - 'ee/spec/models/incident_management/escalation_rule_spec.rb' - 'ee/spec/models/ip_restriction_spec.rb' - - 'ee/spec/models/issue_spec.rb' - 'ee/spec/models/ldap_group_link_spec.rb' - 'ee/spec/models/license_spec.rb' - 'ee/spec/models/member_spec.rb' @@ -39,6 +45,7 @@ Layout/SpaceInsideParens: - 'ee/spec/requests/api/boards_spec.rb' - 'ee/spec/requests/api/epics_spec.rb' - 'ee/spec/requests/api/graphql/group/epics_spec.rb' + - 'ee/spec/requests/api/graphql/iteration_spec.rb' - 'ee/spec/requests/api/graphql/mutations/iterations/update_spec.rb' - 'ee/spec/requests/api/graphql/projects/compliance_frameworks_spec.rb' - 'ee/spec/requests/api/group_boards_spec.rb' @@ -51,48 +58,61 @@ Layout/SpaceInsideParens: - 'ee/spec/services/app_sec/dast/site_profile_secret_variables/create_or_update_service_spec.rb' - 'ee/spec/services/app_sec/dast/site_validations/runner_service_spec.rb' - 'ee/spec/services/app_sec/fuzzing/coverage/corpuses/create_service_spec.rb' + - 'ee/spec/services/audit_events/streaming/headers/base_spec.rb' + - 'ee/spec/services/audit_events/streaming/headers/create_service_spec.rb' + - 'ee/spec/services/audit_events/streaming/headers/destroy_service_spec.rb' + - 'ee/spec/services/audit_events/streaming/headers/update_service_spec.rb' - 'ee/spec/services/ci_cd/github_integration_setup_service_spec.rb' - 'ee/spec/services/ci_cd/github_setup_service_spec.rb' - 'ee/spec/services/ee/boards/issues/list_service_spec.rb' - 'ee/spec/services/ee/notification_service_spec.rb' + - 'ee/spec/services/ee/todos/destroy/entity_leave_service_spec.rb' - 'ee/spec/services/ee/users/update_service_spec.rb' - 'ee/spec/services/epic_issues/update_service_spec.rb' + - 'ee/spec/services/epics/related_epic_links/destroy_service_spec.rb' + - 'ee/spec/services/epics/tree_reorder_service_spec.rb' - 'ee/spec/services/geo/container_repository_sync_spec.rb' - 'ee/spec/services/geo/replication_toggle_request_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/create_service_spec.rb' + - 'ee/spec/services/groups/update_service_spec.rb' + - 'ee/spec/services/merge_requests/build_service_spec.rb' - 'ee/spec/services/projects/update_mirror_service_spec.rb' + - 'ee/spec/services/search/global_service_spec.rb' - 'ee/spec/services/search/group_service_spec.rb' - 'ee/spec/services/search/project_service_spec.rb' + - 'ee/spec/services/security/ingestion/tasks/update_vulnerability_uuids_spec.rb' - 'ee/spec/services/security/merge_reports_service_spec.rb' - - 'ee/spec/services/vulnerability_exports/exporters/csv_service_spec.rb' + - 'ee/spec/support/shared_examples/finders/epics_findable_examples.rb' + - 'ee/spec/support/shared_examples/models/concerns/blob_replicator_strategy_shared_examples.rb' - 'ee/spec/support/shared_examples/services/geo/geo_request_service_shared_examples.rb' - 'ee/spec/workers/elastic/migration_worker_spec.rb' - - 'ee/spec/workers/geo/container_repository_sync_dispatch_worker_spec.rb' - 'ee/spec/workers/security/auto_fix_worker_spec.rb' - - 'ee/spec/workers/security/create_orchestration_policy_worker_spec.rb' - 'lib/backup/files.rb' - 'lib/gitlab/ci/reports/security/finding.rb' - 'lib/gitlab/ci/runner_instructions.rb' - 'lib/gitlab/database/partitioning/single_numeric_list_partition.rb' - 'lib/gitlab/database/postgres_hll/buckets.rb' - 'lib/gitlab/diff/parser.rb' - - 'lib/gitlab/diff/rendered/notebook/diff_file.rb' - 'lib/gitlab/gitaly_client/commit_service.rb' + - 'lib/gitlab/import_export/decompressed_archive_size_validator.rb' + - 'lib/gitlab/memory/watchdog/monitor_state.rb' - 'lib/gitlab/prometheus_client.rb' - 'lib/gitlab/sidekiq_daemon/memory_killer.rb' - 'lib/gitlab/tracking/incident_management.rb' - 'lib/gitlab/visibility_level.rb' - 'lib/security/ci_configuration/sast_build_action.rb' + - 'lib/tasks/gitlab/sidekiq.rake' - 'qa/qa/page/group/settings/group_deploy_tokens.rb' - - 'qa/qa/page/merge_request/show.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/scan_result_policy_vulnerabilities_spec.rb' - 'qa/qa/tools/delete_subgroups.rb' - 'qa/spec/runtime/feature_spec.rb' - - 'qa/spec/scenario/template_spec.rb' - 'spec/dependencies/omniauth_saml_spec.rb' + - 'spec/factories/ml/candidates.rb' - 'spec/factories/usage_data.rb' - 'spec/finders/alert_management/http_integrations_finder_spec.rb' - 'spec/finders/events_finder_spec.rb' - 'spec/finders/labels_finder_spec.rb' + - 'spec/helpers/application_helper_spec.rb' - 'spec/helpers/badges_helper_spec.rb' - 'spec/helpers/ci/builds_helper_spec.rb' - 'spec/helpers/ci/runners_helper_spec.rb' @@ -112,30 +132,33 @@ Layout/SpaceInsideParens: - 'spec/lib/banzai/filter/repository_link_filter_spec.rb' - 'spec/lib/bitbucket_server/representation/comment_spec.rb' - 'spec/lib/bulk_imports/common/pipelines/lfs_objects_pipeline_spec.rb' + - 'spec/lib/bulk_imports/groups/pipelines/namespace_settings_pipeline_spec.rb' - 'spec/lib/error_tracking/sentry_client/projects_spec.rb' - 'spec/lib/error_tracking/sentry_client/repo_spec.rb' + - 'spec/lib/feature/gitaly_spec.rb' - 'spec/lib/gitlab/app_text_logger_spec.rb' - 'spec/lib/gitlab/auth/o_auth/auth_hash_spec.rb' - - 'spec/lib/gitlab/auth/o_auth/user_spec.rb' - 'spec/lib/gitlab/auth/saml/auth_hash_spec.rb' - 'spec/lib/gitlab/ci/build/image_spec.rb' - 'spec/lib/gitlab/ci/config/entry/reports_spec.rb' - 'spec/lib/gitlab/ci/config/entry/trigger_spec.rb' + - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - 'spec/lib/gitlab/ci/parsers_spec.rb' - 'spec/lib/gitlab/ci/pipeline/seed/build_spec.rb' - 'spec/lib/gitlab/ci/reports/security/vulnerability_reports_comparer_spec.rb' - 'spec/lib/gitlab/ci/reports/test_suite_spec.rb' - 'spec/lib/gitlab/ci/templates/5_minute_production_app_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/AWS/deploy_ecs_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/MATLAB_spec.rb' - 'spec/lib/gitlab/ci/templates/Terraform/base_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/Terraform/base_latest_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/auto_devops_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/flutter_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/kaniko_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/katalon_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/npm_spec.rb' - 'spec/lib/gitlab/ci/templates/terraform_gitlab_ci_yaml_spec.rb' - 'spec/lib/gitlab/ci/templates/terraform_latest_gitlab_ci_yaml_spec.rb' - - 'spec/lib/gitlab/database/background_migration/batched_job_spec.rb' - 'spec/lib/gitlab/database/migrations/runner_spec.rb' - 'spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb' - 'spec/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_projects_spec.rb' @@ -146,9 +169,10 @@ Layout/SpaceInsideParens: - 'spec/lib/gitlab/git/commit_spec.rb' - 'spec/lib/gitlab/git/diff_spec.rb' - 'spec/lib/gitlab/git/repository_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_request_merged_by_importer_spec.rb' - 'spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/token_logger_spec.rb' - 'spec/lib/gitlab/graphql/lazy_spec.rb' - - 'spec/lib/gitlab/graphql/markdown_field_spec.rb' - 'spec/lib/gitlab/health_checks/simple_check_shared.rb' - 'spec/lib/gitlab/highlight_spec.rb' - 'spec/lib/gitlab/import_export/attributes_permitter_spec.rb' @@ -156,11 +180,11 @@ Layout/SpaceInsideParens: - 'spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb' - 'spec/lib/gitlab/import_export/project/export_task_spec.rb' - 'spec/lib/gitlab/import_export/project/tree_saver_spec.rb' + - 'spec/lib/gitlab/import_export/recursive_merge_folders_spec.rb' - 'spec/lib/gitlab/issuables_count_for_state_spec.rb' - 'spec/lib/gitlab/kubernetes/rollout_status_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/processor_spec.rb' - 'spec/lib/gitlab/middleware/same_site_cookies_spec.rb' - - 'spec/lib/gitlab/puma_logging/json_formatter_spec.rb' - 'spec/lib/gitlab/rack_attack/instrumented_cache_store_spec.rb' - 'spec/lib/gitlab/redis/cache_spec.rb' - 'spec/lib/gitlab/redis/queues_spec.rb' @@ -173,6 +197,7 @@ Layout/SpaceInsideParens: - 'spec/lib/gitlab/usage_data_spec.rb' - 'spec/lib/gitlab/utils/delegator_override/validator_spec.rb' - 'spec/lib/gitlab/utils/usage_data_spec.rb' + - 'spec/lib/gitlab/x509/commit_spec.rb' - 'spec/lib/security/ci_configuration/container_scanning_build_action_spec.rb' - 'spec/lib/security/ci_configuration/sast_build_action_spec.rb' - 'spec/lib/security/ci_configuration/sast_iac_build_action_spec.rb' @@ -180,8 +205,10 @@ Layout/SpaceInsideParens: - 'spec/mailers/emails/profile_spec.rb' - 'spec/migrations/20211130165043_backfill_sequence_column_for_sprints_table_spec.rb' - 'spec/migrations/backfill_issues_upvotes_count_spec.rb' - - 'spec/migrations/schedule_copy_ci_builds_columns_to_security_scans2_spec.rb' + - 'spec/models/ml/candidate_metric_spec.rb' + - 'spec/models/ml/candidate_spec.rb' - 'spec/policies/clusters/agent_policy_spec.rb' + - 'spec/policies/user_policy_spec.rb' - 'spec/presenters/ci/build_presenter_spec.rb' - 'spec/presenters/packages/conan/package_presenter_spec.rb' - 'spec/requests/jwt_controller_spec.rb' @@ -190,16 +217,20 @@ Layout/SpaceInsideParens: - 'spec/requests/projects/releases_controller_spec.rb' - 'spec/requests/search_controller_spec.rb' - 'spec/serializers/analytics_build_entity_spec.rb' - - 'spec/serializers/merge_request_user_entity_spec.rb' + - 'spec/services/bulk_imports/create_service_spec.rb' + - 'spec/services/users/destroy_service_spec.rb' - 'spec/support/helpers/database/partitioning_helpers.rb' - 'spec/support/helpers/dependency_proxy_helpers.rb' + - 'spec/support/helpers/doc_url_helper.rb' - 'spec/support/helpers/javascript_fixtures_helpers.rb' + - 'spec/support/helpers/kubernetes_helpers.rb' - 'spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb' - 'spec/support/shared_examples/ci/badge_template_shared_examples.rb' - 'spec/support/shared_examples/controllers/destroy_hook_shared_examples.rb' - 'spec/support/shared_examples/features/project_features_apply_to_issuables_shared_examples.rb' - 'spec/support/shared_examples/features/wiki/user_views_wiki_page_shared_examples.rb' - 'spec/support/shared_examples/finders/packages/debian/distributions_finder_shared_examples.rb' + - 'spec/support/shared_examples/graphql/types/gitlab_style_deprecations_shared_examples.rb' - 'spec/support/shared_examples/lib/gitlab/position_formatters_shared_examples.rb' - 'spec/support/shared_examples/lib/gitlab/sidekiq_middleware/strategy_shared_examples.rb' - 'spec/support/shared_examples/mailers/notify_shared_examples.rb' @@ -210,7 +241,11 @@ Layout/SpaceInsideParens: - 'spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb' - 'spec/tasks/gitlab/db_rake_spec.rb' - 'spec/validators/devise_email_validator_spec.rb' + - 'spec/views/dashboard/projects/_blank_state_welcome.html.haml_spec.rb' + - 'spec/views/profiles/keys/_form.html.haml_spec.rb' + - 'spec/views/search/_results.html.haml_spec.rb' - 'spec/views/shared/runners/_runner_details.html.haml_spec.rb' + - 'spec/workers/concerns/gitlab/github_import/object_importer_spec.rb' - 'spec/workers/gitlab/jira_import/stage/import_labels_worker_spec.rb' - 'spec/workers/pipeline_schedule_worker_spec.rb' - 'spec/workers/purge_dependency_proxy_cache_worker_spec.rb' diff --git a/.rubocop_todo/layout/trailing_whitespace.yml b/.rubocop_todo/layout/trailing_whitespace.yml index 8e3e0795c03..2cb6c81256c 100644 --- a/.rubocop_todo/layout/trailing_whitespace.yml +++ b/.rubocop_todo/layout/trailing_whitespace.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Layout/TrailingWhitespace: Exclude: - 'app/models/concerns/analytics/cycle_analytics/stage_event_model.rb' @@ -9,7 +9,6 @@ Layout/TrailingWhitespace: - 'lib/gitlab/background_migration/fix_duplicate_project_name_and_path.rb' - 'lib/gitlab/background_migration/populate_topics_non_private_projects_count.rb' - 'lib/gitlab/pagination/keyset/sql_type_missing_error.rb' - - 'qa/qa/specs/features/browser_ui/7_configure/auto_devops/create_project_with_auto_devops_spec.rb' - 'spec/lib/banzai/filter/front_matter_filter_spec.rb' - 'spec/services/suggestions/apply_service_spec.rb' - 'spec/support/helpers/x509_helpers.rb' diff --git a/.rubocop_todo/lint/constant_definition_in_block.yml b/.rubocop_todo/lint/constant_definition_in_block.yml index fc70f4870b1..813e0b22559 100644 --- a/.rubocop_todo/lint/constant_definition_in_block.yml +++ b/.rubocop_todo/lint/constant_definition_in_block.yml @@ -1,6 +1,6 @@ --- Lint/ConstantDefinitionInBlock: - # Offense count: 105 + # Offense count: 111 # Temporarily disabled due to too many offenses Enabled: false Exclude: @@ -10,13 +10,16 @@ Lint/ConstantDefinitionInBlock: - 'config/application.rb' - 'config/initializers/direct_upload_support.rb' - 'config/initializers/elastic_client_setup.rb' + - 'ee/app/graphql/ee/types/work_items/widget_interface.rb' - 'ee/app/models/concerns/ee/issuable_link.rb' - 'ee/app/models/ee/application_setting.rb' - 'ee/app/models/ee/ci/job_artifact.rb' - 'ee/app/models/ee/ci/pipeline.rb' - 'ee/app/models/ee/epic.rb' + - 'ee/app/models/ee/group.rb' - 'ee/app/models/ee/issue.rb' - 'ee/app/models/ee/merge_request_diff.rb' + - 'ee/app/models/ee/namespace_setting.rb' - 'ee/app/models/ee/plan.rb' - 'ee/app/models/ee/project_import_state.rb' - 'ee/app/models/ee/user.rb' @@ -31,8 +34,13 @@ Lint/ConstantDefinitionInBlock: - 'lib/gitlab/quick_actions/issue_actions.rb' - 'lib/tasks/cache.rake' - 'lib/tasks/dev.rake' + - 'lib/tasks/gitlab/backup.rake' + - 'lib/tasks/gitlab/db.rake' + - 'lib/tasks/gitlab/db/decomposition/rollback/bump_ci_sequences.rake' + - 'lib/tasks/gitlab/db/validate_config.rake' - 'lib/tasks/gitlab/docs/compile_deprecations.rake' - 'lib/tasks/gitlab/graphql.rake' + - 'lib/tasks/gitlab/metrics_exporter.rake' - 'lib/tasks/gitlab/refresh_project_statistics_build_artifacts_size.rake' - 'lib/tasks/gitlab/snippets.rake' - 'lib/tasks/gitlab/tw/codeowners.rake' @@ -47,5 +55,4 @@ Lint/ConstantDefinitionInBlock: - 'spec/models/concerns/bulk_insertable_associations_spec.rb' - 'spec/models/concerns/triggerable_hooks_spec.rb' - 'spec/models/repository_spec.rb' - - 'spec/services/clusters/applications/check_installation_progress_service_spec.rb' - 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb' diff --git a/.rubocop_todo/lint/missing_cop_enable_directive.yml b/.rubocop_todo/lint/missing_cop_enable_directive.yml index 5e1421c0f3e..e0b2afe8256 100644 --- a/.rubocop_todo/lint/missing_cop_enable_directive.yml +++ b/.rubocop_todo/lint/missing_cop_enable_directive.yml @@ -147,7 +147,6 @@ Lint/MissingCopEnableDirective: - 'ee/lib/api/scim.rb' - 'ee/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size.rb' - 'ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb' - - 'ee/lib/ee/gitlab/background_migration/purge_stale_security_scans.rb' - 'ee/lib/ee/gitlab/usage_data.rb' - 'ee/lib/gitlab/spdx/license.rb' - 'ee/spec/controllers/projects/legacy_pipelines_controller_spec.rb' @@ -189,7 +188,6 @@ Lint/MissingCopEnableDirective: - 'lib/gitlab/github_import/client.rb' - 'lib/gitlab/github_import/importer/diff_note_importer.rb' - 'lib/gitlab/gon_helper.rb' - - 'lib/gitlab/graphql/pagination/keyset/last_items.rb' - 'lib/gitlab/graphql/standard_graphql_error.rb' - 'lib/gitlab/metrics/methods.rb' - 'lib/gitlab/patch/action_cable_redis_listener.rb' diff --git a/.rubocop_todo/lint/mixed_regexp_capture_types.yml b/.rubocop_todo/lint/mixed_regexp_capture_types.yml index 3dcb9427ef8..70f3773eb31 100644 --- a/.rubocop_todo/lint/mixed_regexp_capture_types.yml +++ b/.rubocop_todo/lint/mixed_regexp_capture_types.yml @@ -12,4 +12,4 @@ Lint/MixedRegexpCaptureTypes: - 'lib/gitlab/metrics/system.rb' - 'lib/gitlab/slash_commands/issue_move.rb' - 'lib/gitlab/slash_commands/issue_new.rb' - - 'lib/gitlab/slash_commands/run.rb'
\ No newline at end of file + - 'lib/gitlab/slash_commands/run.rb' diff --git a/.rubocop_todo/lint/redundant_cop_disable_directive.yml b/.rubocop_todo/lint/redundant_cop_disable_directive.yml index b0b5697536e..a2dd002b54f 100644 --- a/.rubocop_todo/lint/redundant_cop_disable_directive.yml +++ b/.rubocop_todo/lint/redundant_cop_disable_directive.yml @@ -1,12 +1,12 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Lint/RedundantCopDisableDirective: - # Used to be enabled in "grace period" and is now disabled due to too many - # silenced offenses. - # See https://gitlab.com/gitlab-org/gitlab/-/issues/376133 + # Offense count: 357 + # Temporarily disabled due to too many offenses Enabled: false Exclude: - 'app/controllers/concerns/enforces_two_factor_authentication.rb' + - 'app/controllers/concerns/issuable_actions.rb' - 'app/controllers/concerns/web_hooks/hook_log_actions.rb' - 'app/controllers/groups/autocomplete_sources_controller.rb' - 'app/controllers/groups/labels_controller.rb' @@ -14,7 +14,6 @@ Lint/RedundantCopDisableDirective: - 'app/finders/autocomplete/acts_as_taggable_on/tags_finder.rb' - 'app/finders/autocomplete/move_to_project_finder.rb' - 'app/finders/autocomplete/routes_finder.rb' - - 'app/finders/autocomplete/users_finder.rb' - 'app/finders/ci/daily_build_group_report_results_finder.rb' - 'app/finders/ci/runner_jobs_finder.rb' - 'app/finders/groups_finder.rb' @@ -24,6 +23,7 @@ Lint/RedundantCopDisableDirective: - 'app/graphql/resolvers/project_milestones_resolver.rb' - 'app/graphql/types/base_enum.rb' - 'app/graphql/types/ci/runner_web_url_edge.rb' + - 'app/graphql/types/commit_signatures/verification_status_enum.rb' - 'app/graphql/types/packages/helm/dependency_type.rb' - 'app/graphql/types/projects/service_type_enum.rb' - 'app/helpers/diff_helper.rb' @@ -34,6 +34,7 @@ Lint/RedundantCopDisableDirective: - 'app/models/concerns/from_except.rb' - 'app/models/concerns/from_intersect.rb' - 'app/models/concerns/from_union.rb' + - 'app/models/concerns/redis_cacheable.rb' - 'app/models/project_statistics.rb' - 'app/models/user.rb' - 'app/presenters/dev_ops_report/metric_presenter.rb' @@ -43,7 +44,9 @@ Lint/RedundantCopDisableDirective: - 'app/services/ci/job_artifacts/destroy_batch_service.rb' - 'app/services/ci/register_job_service.rb' - 'app/services/ci/retry_job_service.rb' + - 'app/services/ci/runners/bulk_delete_runners_service.rb' - 'app/services/database/consistency_check_service.rb' + - 'app/services/groups/import_export/import_service.rb' - 'app/services/issues/export_csv_service.rb' - 'app/services/labels/transfer_service.rb' - 'app/services/members/create_service.rb' @@ -52,8 +55,9 @@ Lint/RedundantCopDisableDirective: - 'app/services/members/standard_member_builder.rb' - 'app/services/projects/auto_devops/disable_service.rb' - 'app/services/projects/open_issues_count_service.rb' + - 'app/services/releases/create_service.rb' + - 'app/services/releases/update_service.rb' - 'app/services/spam/spam_action_service.rb' - - 'app/services/users/migrate_to_ghost_user_service.rb' - 'app/services/web_hook_service.rb' - 'app/uploaders/object_storage/cdn/google_ip_cache.rb' - 'app/workers/authorized_project_update/user_refresh_over_user_range_worker.rb' @@ -85,6 +89,7 @@ Lint/RedundantCopDisableDirective: - 'db/post_migrate/20220328100457_schedule20220328_reset_duplicate_ci_runners_token_values_on_projects.rb' - 'db/post_migrate/20220720090354_remove_pending_builds_covering_index_from_ci_builds.rb' - 'db/post_migrate/20220902204048_move_security_findings_table_to_gitlab_partitions_dynamic_schema.rb' + - 'ee/app/controllers/ee/admin/application_settings_controller.rb' - 'ee/app/controllers/ee/groups/group_members_controller.rb' - 'ee/app/controllers/ee/projects/settings/ci_cd_controller.rb' - 'ee/app/controllers/groups/todos_controller.rb' @@ -103,13 +108,12 @@ Lint/RedundantCopDisableDirective: - 'ee/app/models/dast/branch.rb' - 'ee/app/models/ee/vulnerability.rb' - 'ee/app/models/geo/event_log.rb' + - 'ee/app/models/protected_environments/approval_rules/summarizable.rb' - 'ee/app/services/analytics/cycle_analytics/consistency_check_service.rb' - 'ee/app/services/analytics/cycle_analytics/data_loader_service.rb' - 'ee/app/services/ee/boards/issues/list_service.rb' - 'ee/app/services/ee/ci/queue/build_queue_service.rb' - 'ee/app/services/ee/search_service.rb' - - 'ee/app/services/ee/users/migrate_to_ghost_user_service.rb' - - 'ee/app/services/geo/repository_base_sync_service.rb' - 'ee/app/workers/ee/issuable_export_csv_worker.rb' - 'ee/app/workers/ee/namespaces/in_product_marketing_emails_worker.rb' - 'ee/app/workers/geo/design_repository_shard_sync_worker.rb' @@ -120,6 +124,7 @@ Lint/RedundantCopDisableDirective: - 'ee/db/geo/migrate/20210504143244_add_verification_to_merge_request_diff_registry.rb' - 'ee/lib/analytics/merge_request_metrics_calculator.rb' - 'ee/lib/api/audit_events.rb' + - 'ee/lib/api/dora/metrics.rb' - 'ee/lib/api/scim.rb' - 'ee/lib/ee/api/entities/analytics/code_review/merge_request.rb' - 'ee/lib/ee/gitlab/background_migration/backfill_epic_cache_counts.rb' @@ -131,12 +136,15 @@ Lint/RedundantCopDisableDirective: - 'ee/lib/gitlab/elastic/bool_expr.rb' - 'ee/lib/gitlab/spdx/license.rb' - 'ee/lib/gitlab/status_page/storage/object.rb' + - 'ee/spec/contracts/provider/pact_helpers/project/merge_request/show/suggested_reviewers_helper.rb' + - 'ee/spec/elastic/migrate/20221026082700_backfill_users_spec.rb' - 'ee/spec/features/boards/user_visits_board_spec.rb' - 'ee/spec/features/groups/settings/domain_verification_spec.rb' - 'ee/spec/helpers/ee/releases_helper_spec.rb' - 'ee/spec/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size_spec.rb' - 'ee/spec/lib/ee/gitlab/issuable_metadata_spec.rb' - 'ee/spec/lib/elastic/latest/project_instance_proxy_spec.rb' + - 'ee/spec/lib/gitlab/usage/metrics/instrumentations/count_user_merge_requests_for_projects_with_applied_scan_result_policies_metric_spec.rb' - 'ee/spec/lib/gitlab/usage/metrics/instrumentations/protected_environment_approval_rules_required_approvals_average_metric_spec.rb' - 'ee/spec/requests/api/graphql/mutations/boards/epic_boards/epic_move_list_spec.rb' - 'ee/spec/services/security/merge_reports_service_spec.rb' @@ -181,13 +189,14 @@ Lint/RedundantCopDisableDirective: - 'lib/gitlab/database/migrations/observation.rb' - 'lib/gitlab/database/rename_reserved_paths_migration/v1/rename_namespaces.rb' - 'lib/gitlab/diff/file.rb' - - 'lib/gitlab/diff/file_collection/merge_request_diff_batch.rb' + - 'lib/gitlab/diff/file_collection/paginated_diffs.rb' - 'lib/gitlab/diff/pair_selector.rb' - 'lib/gitlab/diff/parser.rb' - 'lib/gitlab/encrypted_ldap_command.rb' - 'lib/gitlab/encrypted_smtp_command.rb' - 'lib/gitlab/git/commit.rb' - 'lib/gitlab/git/patches/collection.rb' + - 'lib/gitlab/github_import/markdown_text.rb' - 'lib/gitlab/github_import/user_finder.rb' - 'lib/gitlab/gitlab_import/importer.rb' - 'lib/gitlab/graphql/pagination/keyset/connection.rb' @@ -211,8 +220,9 @@ Lint/RedundantCopDisableDirective: - 'lib/gitlab/utils/usage_data.rb' - 'lib/gitlab/x509/signature.rb' - 'lib/tasks/gitlab/cleanup.rake' - - 'qa/tasks/ci.rake' - - 'scripts/lib/glfm/render_static_html.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/create_merge_request_with_secure_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/security_reports_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/10_govern/vulnerability_management_spec.rb' - 'scripts/security-harness' - 'sidekiq_cluster/cli.rb' - 'sidekiq_cluster/sidekiq_cluster.rb' @@ -225,7 +235,6 @@ Lint/RedundantCopDisableDirective: - 'spec/graphql/mutations/commits/create_spec.rb' - 'spec/graphql/resolvers/base_resolver_spec.rb' - 'spec/helpers/releases_helper_spec.rb' - - 'spec/initializers/memory_watchdog_spec.rb' - 'spec/lib/gitlab/avatar_cache_spec.rb' - 'spec/lib/gitlab/background_migration/backfill_cluster_agents_has_vulnerabilities_spec.rb' - 'spec/lib/gitlab/background_migration/backfill_project_member_namespace_id_spec.rb' @@ -241,6 +250,7 @@ Lint/RedundantCopDisableDirective: - 'spec/lib/gitlab/doorkeeper_secret_storing/token/pbkdf2_sha512_spec.rb' - 'spec/lib/gitlab/git/tree_spec.rb' - 'spec/lib/gitlab/import_export/project/relation_saver_spec.rb' + - 'spec/lib/gitlab/memory/watchdog/configurator_spec.rb' - 'spec/lib/gitlab/pagination/keyset/iterator_spec.rb' - 'spec/lib/gitlab/rack_attack/request_spec.rb' - 'spec/lib/gitlab/shard_health_cache_spec.rb' @@ -252,6 +262,7 @@ Lint/RedundantCopDisableDirective: - 'spec/migrations/reschedule_backfill_imported_issue_search_data_spec.rb' - 'spec/models/ci/build_trace_chunk_spec.rb' - 'spec/models/ci/pipeline_spec.rb' + - 'spec/models/concerns/encrypted_user_password_spec.rb' - 'spec/models/namespace/package_setting_spec.rb' - 'spec/models/namespace_spec.rb' - 'spec/models/project_feature_spec.rb' @@ -263,6 +274,7 @@ Lint/RedundantCopDisableDirective: - 'spec/requests/api/graphql/ci/config_spec.rb' - 'spec/rubocop/cop/ruby_interpolation_in_translation_spec.rb' - 'spec/services/alert_management/metric_images/upload_service_spec.rb' + - 'spec/services/boards/lists/list_service_spec.rb' - 'spec/services/projects/update_statistics_service_spec.rb' - 'spec/services/spam/spam_verdict_service_spec.rb' - 'spec/services/topics/merge_service_spec.rb' diff --git a/.rubocop_todo/metrics/abc_size.yml b/.rubocop_todo/metrics/abc_size.yml index f5646151592..01e7a5c9688 100644 --- a/.rubocop_todo/metrics/abc_size.yml +++ b/.rubocop_todo/metrics/abc_size.yml @@ -1,15 +1,11 @@ --- Metrics/AbcSize: Exclude: - - 'app/controllers/concerns/issuable_actions.rb' - 'app/helpers/issuables_helper.rb' - 'app/helpers/nav/top_nav_helper.rb' - - 'app/helpers/search_helper.rb' - 'app/models/instance_configuration.rb' - 'app/services/projects/create_service.rb' - - 'ee/app/workers/elastic/migration_worker.rb' - - 'ee/lib/ee/audit/project_changes_auditor.rb' + - 'ee/db/seeds/awesome_co/awesome_co.rb' - 'lib/gitlab/analytics/cycle_analytics/request_params.rb' - 'lib/gitlab/sidekiq_middleware/server_metrics.rb' - 'qa/qa/resource/repository/push.rb' - - 'ee/db/seeds/awesome_co/**/*.rb' diff --git a/.rubocop_todo/metrics/cyclomatic_complexity.yml b/.rubocop_todo/metrics/cyclomatic_complexity.yml index 71efe9d5a3a..634ec6221f4 100644 --- a/.rubocop_todo/metrics/cyclomatic_complexity.yml +++ b/.rubocop_todo/metrics/cyclomatic_complexity.yml @@ -13,11 +13,9 @@ Metrics/CyclomaticComplexity: - 'lib/banzai/filter/references/abstract_reference_filter.rb' - 'lib/gitlab/conflict/file.rb' - 'lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb' - - 'lib/gitlab/diff/parser.rb' - 'lib/gitlab/utils/merge_hash.rb' - 'lib/kramdown/parser/atlassian_document_format.rb' - 'qa/qa/runtime/browser.rb' - 'qa/qa/support/repeater.rb' - - 'rubocop/cop/gitlab/mark_used_feature_flags.rb' - 'sidekiq_cluster/cli.rb' - 'spec/support/cycle_analytics_helpers/test_generation.rb' diff --git a/.rubocop_todo/metrics/perceived_complexity.yml b/.rubocop_todo/metrics/perceived_complexity.yml index 0f2d3030064..5f5f1858ed6 100644 --- a/.rubocop_todo/metrics/perceived_complexity.yml +++ b/.rubocop_todo/metrics/perceived_complexity.yml @@ -11,13 +11,10 @@ Metrics/PerceivedComplexity: - 'ee/lib/elastic/latest/git_class_proxy.rb' - 'lib/banzai/filter/references/abstract_reference_filter.rb' - 'lib/banzai/renderer.rb' - - 'lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid.rb' - 'lib/gitlab/conflict/file.rb' - 'lib/gitlab/database/query_analyzers/prevent_cross_database_modification.rb' - - 'lib/gitlab/diff/parser.rb' - 'lib/gitlab/utils/merge_hash.rb' - 'qa/qa/runtime/browser.rb' - - 'qa/qa/specs/runner.rb' - 'qa/qa/support/repeater.rb' - 'rubocop/cop/gitlab/mark_used_feature_flags.rb' - 'sidekiq_cluster/cli.rb' diff --git a/.rubocop_todo/migration/background_migration_base_class.yml b/.rubocop_todo/migration/background_migration_base_class.yml index 9e42e85cce8..56b6a4294d4 100644 --- a/.rubocop_todo/migration/background_migration_base_class.yml +++ b/.rubocop_todo/migration/background_migration_base_class.yml @@ -2,10 +2,9 @@ Migration/BackgroundMigrationBaseClass: Exclude: - 'lib/gitlab/background_migration/add_primary_email_to_emails_if_user_confirmed.rb' - - 'lib/gitlab/background_migration/backfill_ci_namespace_mirrors.rb' - - 'lib/gitlab/background_migration/backfill_ci_project_mirrors.rb' - 'lib/gitlab/background_migration/backfill_ci_queuing_tables.rb' - 'lib/gitlab/background_migration/backfill_draft_status_on_merge_requests.rb' + - 'lib/gitlab/background_migration/backfill_integrations_enable_ssl_verification.rb' - 'lib/gitlab/background_migration/backfill_integrations_type_new.rb' - 'lib/gitlab/background_migration/backfill_issue_search_data.rb' - 'lib/gitlab/background_migration/backfill_iteration_cadence_id_for_boards.rb' @@ -16,14 +15,12 @@ Migration/BackgroundMigrationBaseClass: - 'lib/gitlab/background_migration/backfill_namespace_traversal_ids_children.rb' - 'lib/gitlab/background_migration/backfill_namespace_traversal_ids_roots.rb' - 'lib/gitlab/background_migration/backfill_note_discussion_id.rb' - - 'lib/gitlab/background_migration/backfill_projects_with_coverage.rb' - 'lib/gitlab/background_migration/backfill_project_repositories.rb' - 'lib/gitlab/background_migration/backfill_project_settings.rb' - 'lib/gitlab/background_migration/backfill_snippet_repositories.rb' - 'lib/gitlab/background_migration/backfill_topics_title.rb' - 'lib/gitlab/background_migration/backfill_upvotes_count_on_issues.rb' - 'lib/gitlab/background_migration/backfill_user_namespace.rb' - - 'lib/gitlab/background_migration/backfill_work_item_type_id_for_issues.rb' - 'lib/gitlab/background_migration/cleanup_draft_data_from_faulty_regex.rb' - 'lib/gitlab/background_migration/cleanup_orphaned_lfs_objects_projects.rb' - 'lib/gitlab/background_migration/create_security_setting.rb' @@ -31,7 +28,6 @@ Migration/BackgroundMigrationBaseClass: - 'lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images.rb' - 'lib/gitlab/background_migration/drop_invalid_remediations.rb' - 'lib/gitlab/background_migration/drop_invalid_security_findings.rb' - - 'lib/gitlab/background_migration/drop_invalid_vulnerabilities.rb' - 'lib/gitlab/background_migration/encrypt_integration_properties.rb' - 'lib/gitlab/background_migration/encrypt_static_object_token.rb' - 'lib/gitlab/background_migration/extract_project_topics_into_separate_table.rb' @@ -42,8 +38,9 @@ Migration/BackgroundMigrationBaseClass: - 'lib/gitlab/background_migration/fix_projects_without_project_feature.rb' - 'lib/gitlab/background_migration/fix_projects_without_prometheus_service.rb' - 'lib/gitlab/background_migration/fix_vulnerability_occurrences_with_hashes_as_raw_metadata.rb' - - 'lib/gitlab/background_migration/legacy_uploads_migrator.rb' - 'lib/gitlab/background_migration/legacy_upload_mover.rb' + - 'lib/gitlab/background_migration/legacy_uploads_migrator.rb' + - 'lib/gitlab/background_migration/mailers/unconfirm_mailer.rb' - 'lib/gitlab/background_migration/merge_topics_with_same_name.rb' - 'lib/gitlab/background_migration/migrate_approver_to_approval_rules.rb' - 'lib/gitlab/background_migration/migrate_approver_to_approval_rules_check_progress.rb' @@ -63,28 +60,21 @@ Migration/BackgroundMigrationBaseClass: - 'lib/gitlab/background_migration/populate_latest_pipeline_ids.rb' - 'lib/gitlab/background_migration/populate_namespace_statistics.rb' - 'lib/gitlab/background_migration/populate_resolved_on_default_branch_column.rb' - - 'lib/gitlab/background_migration/populate_status_column_of_security_scans.rb' - 'lib/gitlab/background_migration/populate_test_reports_issue_id.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_uuids_for_security_findings.rb' - 'lib/gitlab/background_migration/populate_vulnerability_reads.rb' - - 'lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid.rb' + - 'lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb' + - 'lib/gitlab/background_migration/project_namespaces/models/namespace.rb' + - 'lib/gitlab/background_migration/project_namespaces/models/project.rb' - 'lib/gitlab/background_migration/recalculate_vulnerability_finding_signatures_for_findings.rb' - 'lib/gitlab/background_migration/remove_all_trace_expiration_dates.rb' - - 'lib/gitlab/background_migration/remove_duplicate_vulnerabilities_findings.rb' - - 'lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb' - 'lib/gitlab/background_migration/remove_vulnerability_finding_links.rb' - 'lib/gitlab/background_migration/reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' - 'lib/gitlab/background_migration/reset_duplicate_ci_runners_token_values_on_projects.rb' - 'lib/gitlab/background_migration/steal_migrate_merge_request_diff_commit_users.rb' - - 'lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url.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/background_migration/update_vulnerability_occurrences_location.rb' - - 'lib/gitlab/background_migration/mailers/unconfirm_mailer.rb' - - 'lib/gitlab/background_migration/project_namespaces/models/project.rb' - - 'lib/gitlab/background_migration/project_namespaces/models/namespace.rb' - - 'lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb' - - 'lib/gitlab/background_migration/backfill_integrations_enable_ssl_verification.rb' diff --git a/.rubocop_todo/migration/background_migration_record.yml b/.rubocop_todo/migration/background_migration_record.yml index b4feb944d75..567926e33a2 100644 --- a/.rubocop_todo/migration/background_migration_record.yml +++ b/.rubocop_todo/migration/background_migration_record.yml @@ -1,54 +1,50 @@ --- Migration/BackgroundMigrationRecord: Exclude: - - lib/gitlab/background_migration/add_primary_email_to_emails_if_user_confirmed.rb - - lib/gitlab/background_migration/backfill_ci_namespace_mirrors.rb - - lib/gitlab/background_migration/backfill_ci_project_mirrors.rb - - lib/gitlab/background_migration/backfill_ci_queuing_tables.rb - - lib/gitlab/background_migration/backfill_draft_status_on_merge_requests.rb - - lib/gitlab/background_migration/backfill_namespace_traversal_ids_children.rb - - lib/gitlab/background_migration/backfill_namespace_traversal_ids_roots.rb - - lib/gitlab/background_migration/backfill_project_repositories.rb - - lib/gitlab/background_migration/backfill_projects_with_coverage.rb - - lib/gitlab/background_migration/backfill_topics_title.rb - - lib/gitlab/background_migration/cleanup_draft_data_from_faulty_regex.rb - - lib/gitlab/background_migration/cleanup_orphaned_lfs_objects_projects.rb - - lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images.rb - - lib/gitlab/background_migration/drop_invalid_security_findings.rb - - lib/gitlab/background_migration/drop_invalid_vulnerabilities.rb - - lib/gitlab/background_migration/encrypt_integration_properties.rb - - lib/gitlab/background_migration/encrypt_static_object_token.rb - - lib/gitlab/background_migration/extract_project_topics_into_separate_table.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_prometheus_service.rb - - lib/gitlab/background_migration/fix_vulnerability_occurrences_with_hashes_as_raw_metadata.rb - - lib/gitlab/background_migration/merge_topics_with_same_name.rb - - lib/gitlab/background_migration/migrate_merge_request_diff_commit_users.rb - - lib/gitlab/background_migration/migrate_null_private_profile_to_false.rb - - lib/gitlab/background_migration/migrate_project_taggings_context_from_tags_to_topics.rb - - lib/gitlab/background_migration/migrate_u2f_webauthn.rb - - lib/gitlab/background_migration/populate_latest_pipeline_ids.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/project_namespaces/models/namespace.rb - - lib/gitlab/background_migration/project_namespaces/models/project.rb - - lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid.rb - - lib/gitlab/background_migration/remove_all_trace_expiration_dates.rb - - lib/gitlab/background_migration/remove_duplicate_vulnerabilities_findings.rb - - lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb - - lib/gitlab/background_migration/reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb - - lib/gitlab/background_migration/reset_duplicate_ci_runners_token_values_on_projects.rb - - lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url.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/drop_invalid_remediations.rb - - ee/lib/ee/gitlab/background_migration/fix_incorrect_max_seats_used.rb - - ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb - - ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch.rb - - ee/lib/ee/gitlab/background_migration/migrate_requirements_to_work_items.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_uuids_for_security_findings.rb - - ee/lib/ee/gitlab/background_migration/update_vulnerability_occurrences_location.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/drop_invalid_remediations.rb' + - 'ee/lib/ee/gitlab/background_migration/fix_incorrect_max_seats_used.rb' + - 'ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb' + - 'ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch.rb' + - 'ee/lib/ee/gitlab/background_migration/migrate_requirements_to_work_items.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_uuids_for_security_findings.rb' + - 'ee/lib/ee/gitlab/background_migration/update_vulnerability_occurrences_location.rb' + - 'lib/gitlab/background_migration/add_primary_email_to_emails_if_user_confirmed.rb' + - 'lib/gitlab/background_migration/backfill_ci_queuing_tables.rb' + - 'lib/gitlab/background_migration/backfill_draft_status_on_merge_requests.rb' + - 'lib/gitlab/background_migration/backfill_namespace_traversal_ids_children.rb' + - 'lib/gitlab/background_migration/backfill_namespace_traversal_ids_roots.rb' + - 'lib/gitlab/background_migration/backfill_project_repositories.rb' + - 'lib/gitlab/background_migration/backfill_topics_title.rb' + - 'lib/gitlab/background_migration/cleanup_draft_data_from_faulty_regex.rb' + - 'lib/gitlab/background_migration/cleanup_orphaned_lfs_objects_projects.rb' + - 'lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images.rb' + - 'lib/gitlab/background_migration/drop_invalid_security_findings.rb' + - 'lib/gitlab/background_migration/drop_invalid_vulnerabilities.rb' + - 'lib/gitlab/background_migration/encrypt_integration_properties.rb' + - 'lib/gitlab/background_migration/encrypt_static_object_token.rb' + - 'lib/gitlab/background_migration/extract_project_topics_into_separate_table.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_prometheus_service.rb' + - 'lib/gitlab/background_migration/fix_vulnerability_occurrences_with_hashes_as_raw_metadata.rb' + - 'lib/gitlab/background_migration/merge_topics_with_same_name.rb' + - 'lib/gitlab/background_migration/migrate_merge_request_diff_commit_users.rb' + - 'lib/gitlab/background_migration/migrate_null_private_profile_to_false.rb' + - 'lib/gitlab/background_migration/migrate_project_taggings_context_from_tags_to_topics.rb' + - 'lib/gitlab/background_migration/migrate_u2f_webauthn.rb' + - 'lib/gitlab/background_migration/populate_latest_pipeline_ids.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/project_namespaces/models/namespace.rb' + - 'lib/gitlab/background_migration/project_namespaces/models/project.rb' + - 'lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid.rb' + - 'lib/gitlab/background_migration/remove_all_trace_expiration_dates.rb' + - 'lib/gitlab/background_migration/remove_duplicate_vulnerabilities_findings.rb' + - 'lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb' + - 'lib/gitlab/background_migration/reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' + - 'lib/gitlab/background_migration/reset_duplicate_ci_runners_token_values_on_projects.rb' + - 'lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url.rb' diff --git a/.rubocop_todo/migration/background_migrations.yml b/.rubocop_todo/migration/background_migrations.yml index 17548ef6b87..2219f37901d 100644 --- a/.rubocop_todo/migration/background_migrations.yml +++ b/.rubocop_todo/migration/background_migrations.yml @@ -1,25 +1,10 @@ --- Migration/BackgroundMigrations: Exclude: - - 'ee/db/geo/post_migrate/20220202101354_migrate_job_artifact_registry.rb' - - 'db/post_migrate/20220506124021_schedule_populate_requirements_issue_id.rb' - - 'db/post_migrate/20220502173045_reset_too_many_tags_skipped_registry_imports.rb' - - 'db/post_migrate/20220425121435_backfill_integrations_enable_ssl_verification.rb' - - 'db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb' - - 'db/post_migrate/20220420061450_backfill_null_note_discussion_ids.rb' - - 'db/post_migrate/20220407163559_schedule_purging_stale_security_scans.rb' - - 'db/post_migrate/20220331133802_schedule_backfill_topics_title.rb' - - 'db/post_migrate/20220328100457_schedule20220328_reset_duplicate_ci_runners_token_values_on_projects.rb' - - 'db/post_migrate/20220328100456_schedule20220328_reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' - - 'db/post_migrate/20220324081709_fix_and_backfill_project_namespaces_for_projects_with_duplicate_name.rb' - - 'db/post_migrate/20220324032250_migrate_shimo_confluence_service_category.rb' - - 'db/post_migrate/20220316202640_populate_container_repositories_migration_plan.rb' - - 'db/post_migrate/20220315171129_cleanup_draft_data_from_faulty_regex.rb' - 'db/migrate/20210519154058_schedule_update_users_where_two_factor_auth_required_from_group.rb' - - 'db/post_migrate/20210302150310_schedule_migrate_pages_to_zip_storage.rb' + - 'db/post_migrate/20210302074524_backfill_namespace_statistics_with_wiki_size.rb' - 'db/post_migrate/20210304133508_schedule_remove_duplicate_vulnerabilities_findings2.rb' - 'db/post_migrate/20210415155043_move_container_registry_enabled_to_project_features3.rb' - - 'db/post_migrate/20210421163509_schedule_update_jira_tracker_data_deployment_type_based_on_url.rb' - 'db/post_migrate/20210423160427_schedule_drop_invalid_vulnerabilities.rb' - 'db/post_migrate/20210427212034_schedule_update_timelogs_project_id.rb' - 'db/post_migrate/20210506065000_schedule_backfill_traversal_ids.rb' @@ -27,55 +12,63 @@ Migration/BackgroundMigrations: - 'db/post_migrate/20210511142748_schedule_drop_invalid_vulnerabilities2.rb' - 'db/post_migrate/20210514063252_schedule_cleanup_orphaned_lfs_objects_projects.rb' - 'db/post_migrate/20210518074332_schedule_disable_expiration_policies_linked_to_no_container_images.rb' + - 'db/post_migrate/20210604070207_retry_backfill_traversal_ids.rb' - 'db/post_migrate/20210611080951_fix_missing_traversal_ids.rb' - 'db/post_migrate/20210701111909_backfill_issues_upvotes_count.rb' + - 'db/post_migrate/20210708130419_reschedule_merge_request_diff_users_background_migration.rb' - 'db/post_migrate/20210722010101_reschedule_delete_orphaned_deployments.rb' - 'db/post_migrate/20210729163312_re_schedule_latest_pipeline_id_population_with_all_security_related_artifact_types.rb' - 'db/post_migrate/20210730104800_schedule_extract_project_topics_into_separate_table.rb' - 'db/post_migrate/20210730170823_schedule_security_setting_creation.rb' - - 'db/post_migrate/20210816183304_schedule_copy_ci_builds_columns_to_security_scans2.rb' - - 'db/post_migrate/20210818185845_backfill_projects_with_coverage.rb' + - 'db/post_migrate/20210823113259_steal_merge_request_diff_commit_users_migration.rb' + - 'db/post_migrate/20210825193652_backfill_cadence_id_for_boards_scoped_to_iteration.rb' + - 'db/post_migrate/20210830104800_reschedule_extract_project_topics_into_separate_table.rb' + - 'db/post_migrate/20210901153324_slice_merge_request_diff_commit_migrations.rb' + - 'db/post_migrate/20210909104800_reschedule_extract_project_topics_into_separate_table_2.rb' - 'db/post_migrate/20211004110927_schedule_fix_first_mentioned_in_commit_at_job.rb' - 'db/post_migrate/20211004120135_schedule_add_primary_email_to_emails_if_user_confirmed.rb' + - 'db/post_migrate/20211005010101_rereschedule_delete_orphaned_deployments.rb' - 'db/post_migrate/20211005194425_schedule_requirements_migration.rb' - 'db/post_migrate/20211006060436_schedule_populate_topics_total_projects_count_cache.rb' - - 'db/post_migrate/20211007155221_schedule_populate_status_column_of_security_scans.rb' - 'db/post_migrate/20211018152654_schedule_remove_duplicate_vulnerabilities_findings3.rb' + - 'db/post_migrate/20211028155449_schedule_fix_merge_request_diff_commit_users_migration.rb' - 'db/post_migrate/20211102114802_update_vulnerability_occurrences_location.rb' - 'db/post_migrate/20211110151350_schedule_drop_invalid_security_findings.rb' - 'db/post_migrate/20211116111644_schedule_remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb' - 'db/post_migrate/20211118194239_drop_invalid_remediations.rb' - - 'db/post_migrate/20211208122200_schedule_backfill_ci_namespace_mirrors.rb' - - 'db/post_migrate/20211208122201_schedule_backfill_ci_project_mirrors.rb' + - 'db/post_migrate/20211207135331_schedule_recalculate_uuid_on_vulnerabilities_occurrences4.rb' + - 'db/post_migrate/20211208171402_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb' - 'db/post_migrate/20211209203821_convert_stringified_raw_metadata_hash_to_json.rb' - 'db/post_migrate/20211210140629_encrypt_static_object_token.rb' - 'db/post_migrate/20211215090620_schedule_update_timelogs_null_spent_at.rb' - 'db/post_migrate/20220107064845_populate_vulnerability_reads.rb' - 'db/post_migrate/20220110171049_schedule_populate_test_reports_issue_id.rb' + - 'db/post_migrate/20220113111440_schedule_fix_incorrect_max_seats_used.rb' + - 'db/post_migrate/20220118204039_self_managed_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb' - 'db/post_migrate/20220125122640_schedule_populate_topics_non_private_projects_count.rb' - 'db/post_migrate/20220131000001_schedule_trace_expiry_removal.rb' + - 'db/post_migrate/20220204095121_backfill_namespace_statistics_with_dependency_proxy_size.rb' - 'db/post_migrate/20220204194347_encrypt_integration_properties.rb' - 'db/post_migrate/20220208115439_start_backfill_ci_queuing_tables.rb' + - 'db/post_migrate/20220212120735_schedule_fix_incorrect_max_seats_used2.rb' - 'db/post_migrate/20220215190020_rerun_convert_stringified_raw_metadata_hash_to_json.rb' + - 'db/post_migrate/20220223124428_schedule_merge_topics_with_same_name.rb' - 'db/post_migrate/20220308115219_schedule_reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' - 'db/post_migrate/20220308115502_schedule_reset_duplicate_ci_runners_token_values_on_projects.rb' - - 'db/post_migrate/20211207135331_schedule_recalculate_uuid_on_vulnerabilities_occurrences4.rb' - - 'db/post_migrate/20210604070207_retry_backfill_traversal_ids.rb' - - 'db/post_migrate/20210708130419_reschedule_merge_request_diff_users_background_migration.rb' - - 'db/post_migrate/20210823113259_steal_merge_request_diff_commit_users_migration.rb' - - 'db/post_migrate/20210825193652_backfill_cadence_id_for_boards_scoped_to_iteration.rb' - - 'db/post_migrate/20210830104800_reschedule_extract_project_topics_into_separate_table.rb' - - 'db/post_migrate/20210901153324_slice_merge_request_diff_commit_migrations.rb' - - 'db/post_migrate/20210909104800_reschedule_extract_project_topics_into_separate_table_2.rb' - - 'db/post_migrate/20211005010101_rereschedule_delete_orphaned_deployments.rb' - - 'db/post_migrate/20211028155449_schedule_fix_merge_request_diff_commit_users_migration.rb' - - 'db/post_migrate/20211208171402_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb' - - 'db/post_migrate/20220113111440_schedule_fix_incorrect_max_seats_used.rb' - - 'db/post_migrate/20220118204039_self_managed_reschedule_recalculate_vulnerability_finding_signatures_for_findings.rb' - - 'db/post_migrate/20220204095121_backfill_namespace_statistics_with_dependency_proxy_size.rb' - - 'db/post_migrate/20220212120735_schedule_fix_incorrect_max_seats_used2.rb' - - 'db/post_migrate/20220223124428_schedule_merge_topics_with_same_name.rb' - - 'db/post_migrate/20210302074524_backfill_namespace_statistics_with_wiki_size.rb' + - 'db/post_migrate/20220315171129_cleanup_draft_data_from_faulty_regex.rb' + - 'db/post_migrate/20220316202640_populate_container_repositories_migration_plan.rb' + - 'db/post_migrate/20220324032250_migrate_shimo_confluence_service_category.rb' + - 'db/post_migrate/20220324081709_fix_and_backfill_project_namespaces_for_projects_with_duplicate_name.rb' + - 'db/post_migrate/20220328100456_schedule20220328_reset_duplicate_ci_runners_token_encrypted_values_on_projects.rb' + - 'db/post_migrate/20220328100457_schedule20220328_reset_duplicate_ci_runners_token_values_on_projects.rb' + - 'db/post_migrate/20220331133802_schedule_backfill_topics_title.rb' + - 'db/post_migrate/20220407163559_schedule_purging_stale_security_scans.rb' + - 'db/post_migrate/20220420061450_backfill_null_note_discussion_ids.rb' + - 'db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb' + - 'db/post_migrate/20220425121435_backfill_integrations_enable_ssl_verification.rb' + - 'db/post_migrate/20220502173045_reset_too_many_tags_skipped_registry_imports.rb' + - 'db/post_migrate/20220506124021_schedule_populate_requirements_issue_id.rb' + - 'ee/db/geo/post_migrate/20220202101354_migrate_job_artifact_registry.rb' - 'lib/gitlab/database/migrations/background_migration_helpers.rb' - 'lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb' - 'spec/lib/gitlab/database/migration_helpers/restrict_gitlab_schema_spec.rb' diff --git a/.rubocop_todo/naming/heredoc_delimiter_case.yml b/.rubocop_todo/naming/heredoc_delimiter_case.yml index 8779831da21..2d2337b82ee 100644 --- a/.rubocop_todo/naming/heredoc_delimiter_case.yml +++ b/.rubocop_todo/naming/heredoc_delimiter_case.yml @@ -1,4 +1,5 @@ --- +# Cop supports --autocorrect. Naming/HeredocDelimiterCase: Exclude: - 'spec/lib/gitlab/diff/parser_spec.rb' diff --git a/.rubocop_todo/naming/heredoc_delimiter_naming.yml b/.rubocop_todo/naming/heredoc_delimiter_naming.yml index 29276e529af..d57905c8607 100644 --- a/.rubocop_todo/naming/heredoc_delimiter_naming.yml +++ b/.rubocop_todo/naming/heredoc_delimiter_naming.yml @@ -29,7 +29,6 @@ Naming/HeredocDelimiterNaming: - 'ee/spec/support/helpers/ee/ldap_helpers.rb' - 'ee/spec/tasks/gitlab/elastic_rake_spec.rb' - 'lib/api/metadata.rb' - - 'lib/api/version.rb' - 'lib/backup/helper.rb' - 'lib/feature/shared.rb' - 'lib/gitlab/cache/import/caching.rb' @@ -38,12 +37,10 @@ Naming/HeredocDelimiterNaming: - 'lib/gitlab/database/migration_helpers.rb' - 'lib/gitlab/database/migration_helpers/v2.rb' - 'lib/gitlab/exclusive_lease.rb' - - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb' - 'lib/gitlab/sql/set_operator.rb' - 'lib/gitlab/utils/delegator_override/validator.rb' - 'lib/tasks/gitlab/docs/compile_deprecations.rake' - 'lib/tasks/gitlab/password.rake' - - 'qa/qa/scenario/test/sanity/selectors.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/web_terminal_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/generic_repository_spec.rb' @@ -65,7 +62,6 @@ Naming/HeredocDelimiterNaming: - 'spec/factories/packages/debian/file_metadatum.rb' - 'spec/features/projects/commit/user_comments_on_commit_spec.rb' - 'spec/features/task_lists_spec.rb' - - 'spec/helpers/markup_helper_spec.rb' - 'spec/initializers/100_patch_omniauth_oauth2_spec.rb' - 'spec/initializers/net_http_response_patch_spec.rb' - 'spec/initializers/rack_multipart_patch_spec.rb' diff --git a/.rubocop_todo/performance/active_record_subtransaction_methods.yml b/.rubocop_todo/performance/active_record_subtransaction_methods.yml index 2644f08c4d1..1eeb37ff3fd 100644 --- a/.rubocop_todo/performance/active_record_subtransaction_methods.yml +++ b/.rubocop_todo/performance/active_record_subtransaction_methods.yml @@ -43,7 +43,6 @@ Performance/ActiveRecordSubtransactionMethods: - 'ee/db/fixtures/production/027_plans.rb' - 'ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb' - 'ee/lib/gitlab/elastic/indexer.rb' - - 'lib/gitlab/ci/pipeline/seed/environment.rb' - 'lib/gitlab/ci/pipeline/seed/processable/resource_group.rb' - 'lib/gitlab/ci/trace/chunked_io.rb' - 'lib/gitlab/composer/cache.rb' diff --git a/.rubocop_todo/performance/bind_call.yml b/.rubocop_todo/performance/bind_call.yml index 5adb519793d..732aecc3910 100644 --- a/.rubocop_todo/performance/bind_call.yml +++ b/.rubocop_todo/performance/bind_call.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Performance/BindCall: Exclude: - 'app/services/metrics/dashboard/grafana_metric_embed_service.rb' diff --git a/.rubocop_todo/performance/method_object_as_block.yml b/.rubocop_todo/performance/method_object_as_block.yml index b28f56babfd..8524376772e 100644 --- a/.rubocop_todo/performance/method_object_as_block.yml +++ b/.rubocop_todo/performance/method_object_as_block.yml @@ -11,7 +11,6 @@ Performance/MethodObjectAsBlock: - 'app/models/container_repository.rb' - 'app/models/programming_language.rb' - 'app/presenters/packages/detail/package_presenter.rb' - - 'app/services/bulk_imports/file_download_service.rb' - 'app/services/ci/pipeline_processing/atomic_processing_service.rb' - 'app/services/ci/prometheus_metrics/observe_histograms_service.rb' - 'app/services/concerns/users/participable_service.rb' @@ -26,7 +25,6 @@ Performance/MethodObjectAsBlock: - 'ee/app/finders/security/findings_finder.rb' - 'ee/app/graphql/resolvers/vulnerabilities/scanners_resolver.rb' - 'ee/app/services/dashboard/projects/create_service.rb' - - 'ee/app/services/security/findings/cleanup_service.rb' - 'ee/app/services/security/ingestion/ingest_reports_service.rb' - 'ee/app/services/security/ingestion/tasks/ingest_vulnerability_statistics.rb' - 'ee/app/services/security/store_grouped_scans_service.rb' @@ -75,7 +73,6 @@ Performance/MethodObjectAsBlock: - 'lib/gitlab/uploads/migration_helper.rb' - 'lib/gitlab/utils.rb' - 'lib/peek/views/detailed_view.rb' - - 'lib/tasks/gitlab/assets.rake' - 'lib/unnested_in_filters/rewriter.rb' - 'qa/qa/specs/features/browser_ui/2_plan/email/trigger_email_notification_spec.rb' - 'rubocop/cop/avoid_return_from_blocks.rb' @@ -87,7 +84,6 @@ Performance/MethodObjectAsBlock: - 'spec/lib/gitlab/search_context/builder_spec.rb' - 'spec/models/design_management/version_spec.rb' - 'spec/services/notification_service_spec.rb' - - 'spec/services/projects/container_repository/cleanup_tags_service_spec.rb' - 'spec/support/helpers/migrations_helpers.rb' - 'spec/support/shared_examples/models/active_record_enum_shared_examples.rb' - 'spec/support_specs/helpers/stub_feature_flags_spec.rb' diff --git a/.rubocop_todo/performance/redundant_block_call.yml b/.rubocop_todo/performance/redundant_block_call.yml index 89a67e3fd30..64b185cb6c8 100644 --- a/.rubocop_todo/performance/redundant_block_call.yml +++ b/.rubocop_todo/performance/redundant_block_call.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Performance/RedundantBlockCall: Exclude: - 'ee/app/models/gitlab_subscription.rb' diff --git a/.rubocop_todo/performance/string_include.yml b/.rubocop_todo/performance/string_include.yml index f477593c02a..2a2d0559397 100644 --- a/.rubocop_todo/performance/string_include.yml +++ b/.rubocop_todo/performance/string_include.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Performance/StringInclude: Exclude: - 'app/models/snippet_repository.rb' @@ -7,7 +7,6 @@ Performance/StringInclude: - 'config/spring.rb' - 'ee/app/models/ee/container_registry/event.rb' - 'ee/lib/gitlab/auth/smartcard/certificate.rb' - - 'lib/gitlab/database/migration_helpers.rb' - 'lib/kramdown/parser/atlassian_document_format.rb' - 'lib/prometheus/pid_provider.rb' - 'spec/features/projects/jobs_spec.rb' diff --git a/.rubocop_todo/rails/active_record_callbacks_order.yml b/.rubocop_todo/rails/active_record_callbacks_order.yml index baeba86c4b9..3656a194037 100644 --- a/.rubocop_todo/rails/active_record_callbacks_order.yml +++ b/.rubocop_todo/rails/active_record_callbacks_order.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Rails/ActiveRecordCallbacksOrder: Exclude: - 'app/models/award_emoji.rb' diff --git a/.rubocop_todo/rails/file_path.yml b/.rubocop_todo/rails/file_path.yml index 898d303bd3d..0a652631e0b 100644 --- a/.rubocop_todo/rails/file_path.yml +++ b/.rubocop_todo/rails/file_path.yml @@ -21,9 +21,6 @@ Rails/FilePath: - 'db/post_migrate/20210630025020_migrate_push_event_payloads_event_id_back_to_integer_for_gitlab_com.rb' - 'ee/app/helpers/ee/application_helper.rb' - 'ee/app/services/security/security_orchestration_policies/project_create_service.rb' - - 'ee/db/fixtures/development/20_vulnerabilities.rb' - - 'ee/db/fixtures/development/21_dast_profiles.rb' - - 'ee/db/fixtures/development/32_compliance_report_violations.rb' - 'ee/lib/ee/feature/definition.rb' - 'ee/lib/ee/gitlab/audit/type/definition.rb' - 'ee/lib/ee/gitlab/usage/metric_definition.rb' @@ -40,7 +37,6 @@ Rails/FilePath: - 'ee/spec/models/release_highlight_spec.rb' - 'ee/spec/requests/api/experiments_spec.rb' - 'ee/spec/services/ee/merge_requests/refresh_service_spec.rb' - - 'ee/spec/support/factory_bot.rb' - 'ee/spec/validators/json_schema_validator_spec.rb' - 'lib/api/api.rb' - 'lib/error_tracking/collector/payload_validator.rb' diff --git a/.rubocop_todo/rails/helper_instance_variable.yml b/.rubocop_todo/rails/helper_instance_variable.yml index 53e376730fd..164edaece4e 100644 --- a/.rubocop_todo/rails/helper_instance_variable.yml +++ b/.rubocop_todo/rails/helper_instance_variable.yml @@ -61,7 +61,6 @@ Rails/HelperInstanceVariable: - 'ee/app/helpers/ee/feature_flags_helper.rb' - 'ee/app/helpers/ee/form_helper.rb' - 'ee/app/helpers/ee/graph_helper.rb' - - 'ee/app/helpers/ee/groups/group_members_helper.rb' - 'ee/app/helpers/ee/groups/settings_helper.rb' - 'ee/app/helpers/ee/groups_helper.rb' - 'ee/app/helpers/ee/integrations_helper.rb' @@ -75,7 +74,6 @@ Rails/HelperInstanceVariable: - 'ee/app/helpers/ee/projects/security/configuration_helper.rb' - 'ee/app/helpers/ee/projects_helper.rb' - 'ee/app/helpers/ee/search_helper.rb' - - 'ee/app/helpers/ee/selects_helper.rb' - 'ee/app/helpers/ee/sorting_helper.rb' - 'ee/app/helpers/ee/subscribable_banner_helper.rb' - 'ee/app/helpers/ee/wiki_helper.rb' diff --git a/.rubocop_todo/rails/http_status.yml b/.rubocop_todo/rails/http_status.yml index 1a8ece49304..b1f64f7aa18 100644 --- a/.rubocop_todo/rails/http_status.yml +++ b/.rubocop_todo/rails/http_status.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Rails/HttpStatus: Exclude: - 'app/controllers/concerns/invisible_captcha_on_signup.rb' diff --git a/.rubocop_todo/rails/index_with.yml b/.rubocop_todo/rails/index_with.yml index b7bc2a26959..fea7477fe03 100644 --- a/.rubocop_todo/rails/index_with.yml +++ b/.rubocop_todo/rails/index_with.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Rails/IndexWith: Exclude: - 'app/helpers/ci/jobs_helper.rb' @@ -30,7 +30,6 @@ Rails/IndexWith: - 'lib/gitlab/ci/reports/security/identifier.rb' - 'lib/gitlab/ci/reports/test_suite.rb' - 'lib/gitlab/database/count/exact_count_strategy.rb' - - 'lib/gitlab/database/migration_helpers.rb' - 'lib/gitlab/database/obsolete_ignored_columns.rb' - 'lib/gitlab/database/tables_sorted_by_foreign_keys.rb' - 'lib/gitlab/issuable_metadata.rb' @@ -47,7 +46,6 @@ Rails/IndexWith: - 'spec/lib/google_api/cloud_platform/client_spec.rb' - 'spec/models/event_spec.rb' - 'spec/presenters/projects/security/configuration_presenter_spec.rb' - - 'spec/support/database/multiple_databases.rb' - 'spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb' - 'spec/support/shared_examples/models/concerns/sanitizable_shared_examples.rb' - 'spec/views/admin/dashboard/index.html.haml_spec.rb' diff --git a/.rubocop_todo/rails/inverse_of.yml b/.rubocop_todo/rails/inverse_of.yml index 2ad8d6204c8..a1f49aaf2f5 100644 --- a/.rubocop_todo/rails/inverse_of.yml +++ b/.rubocop_todo/rails/inverse_of.yml @@ -9,7 +9,6 @@ Rails/InverseOf: - 'app/models/board.rb' - 'app/models/bulk_imports/entity.rb' - 'app/models/bulk_imports/tracker.rb' - - 'app/models/ci/bridge.rb' - 'app/models/ci/build.rb' - 'app/models/ci/build_pending_state.rb' - 'app/models/ci/build_trace_chunk.rb' diff --git a/.rubocop_todo/rails/negate_include.yml b/.rubocop_todo/rails/negate_include.yml index c3f9ac25e7e..74f469f325b 100644 --- a/.rubocop_todo/rails/negate_include.yml +++ b/.rubocop_todo/rails/negate_include.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Rails/NegateInclude: Details: grace period Exclude: diff --git a/.rubocop_todo/rails/pluck.yml b/.rubocop_todo/rails/pluck.yml index d9f9f2e571b..6aeca1b7ea8 100644 --- a/.rubocop_todo/rails/pluck.yml +++ b/.rubocop_todo/rails/pluck.yml @@ -1,5 +1,5 @@ --- -# Cop supports --autocorrect but disabled. +# Cop supports --autocorrect. Rails/Pluck: Details: grace period Exclude: diff --git a/.rubocop_todo/rails/redundant_foreign_key.yml b/.rubocop_todo/rails/redundant_foreign_key.yml index 0d23c51caae..3251429876e 100644 --- a/.rubocop_todo/rails/redundant_foreign_key.yml +++ b/.rubocop_todo/rails/redundant_foreign_key.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Rails/RedundantForeignKey: Exclude: - 'app/models/alert_management/metric_image.rb' diff --git a/.rubocop_todo/rails/time_zone.yml b/.rubocop_todo/rails/time_zone.yml index 6b7533d44d8..d8694925792 100644 --- a/.rubocop_todo/rails/time_zone.yml +++ b/.rubocop_todo/rails/time_zone.yml @@ -1,125 +1,117 @@ --- +# Cop supports --autocorrect. Rails/TimeZone: - Enabled: true Exclude: - - lib/gitlab/popen.rb - - ee/lib/delay.rb - - ee/lib/gitlab/elastic/helper.rb - - ee/lib/gitlab/elastic/indexer.rb - - ee/lib/gitlab/geo/event_gap_tracking.rb - - ee/lib/gitlab/geo/log_cursor/events/design_repository_updated_event.rb - - ee/lib/gitlab/geo/log_cursor/events/repository_updated_event.rb - - ee/lib/gitlab/geo/log_cursor/logger.rb - - ee/lib/gitlab/geo/oauth/login_state.rb - - ee/lib/gitlab/prometheus/queries/cluster_query.rb - - ee/spec/lib/ee/gitlab/checks/push_rules/commit_check_spec.rb - - ee/spec/lib/ee/gitlab/ci/pipeline/quota/job_activity_spec.rb - - ee/spec/lib/gitlab/analytics/cycle_analytics/data_collector_spec.rb - - ee/spec/lib/gitlab/analytics/cycle_analytics/summary/group/stage_summary_spec.rb - - ee/spec/lib/gitlab/auth/ldap/access_spec.rb - - ee/spec/lib/gitlab/auth/smartcard/san_extension_spec.rb - - ee/spec/lib/gitlab/auth/smartcard/session_spec.rb - - ee/spec/lib/gitlab/elastic/client_spec.rb - - ee/spec/lib/gitlab/geo/base_request_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/cache_invalidation_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/design_repository_updated_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/hashed_storage_attachments_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/hashed_storage_migrated_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/repositories_changed_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/repository_created_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/repository_deleted_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/repository_renamed_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/repository_updated_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/events/reset_checksum_event_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/logger_spec.rb - - ee/spec/lib/gitlab/git_access_spec.rb - - ee/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb - - ee/spec/lib/gitlab/prometheus/queries/cluster_query_spec.rb - - lib/api/helpers.rb - - lib/api/sidekiq_metrics.rb - - lib/backup/manager.rb - - lib/bitbucket_server/representation/base.rb - - lib/gitlab/auth/current_user_mode.rb - - lib/gitlab/auth/ldap/access.rb - - lib/gitlab/chaos.rb - - lib/gitlab/checks/timed_logger.rb - - lib/gitlab/ci/pipeline/duration.rb - - lib/gitlab/database.rb - - lib/gitlab/external_authorization/access.rb - - lib/gitlab/external_authorization/cache.rb - - lib/gitlab/gitaly_client.rb - - lib/gitlab/gitaly_client/ref_service.rb - - lib/gitlab/github_import/representation.rb - - lib/gitlab/health_checks/base_abstract_check.rb - - lib/gitlab/import_export.rb - - lib/gitlab/instrumentation/elasticsearch_transport.rb - - lib/gitlab/instrumentation_helper.rb - - lib/gitlab/lfs_token.rb - - lib/gitlab/loop_helpers.rb - - lib/gitlab/phabricator_import/representation/task.rb - - lib/gitlab/prometheus/queries/additional_metrics_environment_query.rb - - lib/gitlab/prometheus/queries/matched_metric_query.rb - - lib/gitlab/prometheus_client.rb - - lib/gitlab/task_helpers.rb - - lib/gitlab/x509/tag.rb - - lib/grafana/time_window.rb - - lib/json_web_token/token.rb - - lib/object_storage/direct_upload.rb - - lib/quality/seeders/issues.rb - - lib/tasks/gitlab/assets.rake - - lib/tasks/gitlab/backup.rake - - lib/tasks/gitlab/cleanup.rake - - lib/tasks/gitlab/list_repos.rake - - spec/lib/api/helpers_spec.rb - - spec/lib/gitlab/analytics/cycle_analytics/base_query_builder_spec.rb - - spec/lib/gitlab/app_json_logger_spec.rb - - spec/lib/gitlab/app_text_logger_spec.rb - - spec/lib/gitlab/auth/current_user_mode_spec.rb - - spec/lib/gitlab/bitbucket_import/importer_spec.rb - - spec/lib/gitlab/bitbucket_server_import/importer_spec.rb - - spec/lib/gitlab/checks/timed_logger_spec.rb - - spec/lib/gitlab/ci/cron_parser_spec.rb - - spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb - - spec/lib/gitlab/data_builder/note_spec.rb - - spec/lib/gitlab/database/background_migration_job_spec.rb - - spec/lib/gitlab/database_spec.rb - - spec/lib/gitlab/discussions_diff/file_collection_spec.rb - - spec/lib/gitlab/external_authorization/access_spec.rb - - spec/lib/gitlab/external_authorization/cache_spec.rb - - spec/lib/gitlab/external_authorization/logger_spec.rb - - spec/lib/gitlab/fogbugz_import/importer_spec.rb - - spec/lib/gitlab/git/branch_spec.rb - - spec/lib/gitlab/git/commit_spec.rb - - spec/lib/gitlab/git/repository_spec.rb - - spec/lib/gitlab/git_access_spec.rb - - spec/lib/gitlab/github_import/importer/issue_importer_spec.rb - - spec/lib/gitlab/github_import/importer/issues_importer_spec.rb - - spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb - - spec/lib/gitlab/github_import/importer/note_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb - - spec/lib/gitlab/github_import/importer/releases_importer_spec.rb - - spec/lib/gitlab/github_import/representation/diff_note_spec.rb - - spec/lib/gitlab/github_import/representation/issue_spec.rb - - spec/lib/gitlab/github_import/representation/note_spec.rb - - spec/lib/gitlab/github_import/representation/pull_request_spec.rb - - spec/lib/gitlab/grape_logging/formatters/lograge_with_timestamp_spec.rb - - spec/lib/gitlab/grape_logging/loggers/cloudflare_logger_spec.rb - - spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb - - spec/lib/gitlab/graphql_logger_spec.rb - - spec/lib/gitlab/graphs/commits_spec.rb - - spec/lib/gitlab/import_export/project/relation_factory_spec.rb - - spec/lib/gitlab/json_logger_spec.rb - - spec/lib/gitlab/lfs_token_spec.rb - - spec/lib/gitlab/log_timestamp_formatter_spec.rb - - spec/lib/gitlab/middleware/rails_queue_duration_spec.rb - - spec/lib/gitlab/phabricator_import/issues/task_importer_spec.rb - - spec/lib/gitlab/phabricator_import/representation/task_spec.rb - - spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb - - spec/lib/gitlab/prometheus/queries/deployment_query_spec.rb - - spec/lib/gitlab/prometheus/queries/validate_query_spec.rb - - spec/lib/gitlab/sidekiq_logging/json_formatter_spec.rb - - spec/lib/gitlab/utils/json_size_estimator_spec.rb - - spec/lib/gitlab/x509/signature_spec.rb - - spec/lib/grafana/time_window_spec.rb - - spec/lib/json_web_token/hmac_token_spec.rb + - 'ee/lib/delay.rb' + - 'ee/lib/gitlab/elastic/indexer.rb' + - 'ee/lib/gitlab/geo/event_gap_tracking.rb' + - 'ee/lib/gitlab/geo/log_cursor/events/design_repository_updated_event.rb' + - 'ee/lib/gitlab/geo/log_cursor/events/repository_updated_event.rb' + - 'ee/lib/gitlab/geo/log_cursor/logger.rb' + - 'ee/lib/gitlab/geo/oauth/login_state.rb' + - 'ee/lib/gitlab/prometheus/queries/cluster_query.rb' + - 'ee/spec/lib/gitlab/analytics/cycle_analytics/data_collector_spec.rb' + - 'ee/spec/lib/gitlab/analytics/cycle_analytics/summary/group/stage_summary_spec.rb' + - 'ee/spec/lib/gitlab/auth/ldap/access_spec.rb' + - 'ee/spec/lib/gitlab/auth/smartcard/san_extension_spec.rb' + - 'ee/spec/lib/gitlab/auth/smartcard/session_spec.rb' + - 'ee/spec/lib/gitlab/geo/base_request_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/cache_invalidation_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/design_repository_updated_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/hashed_storage_attachments_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/hashed_storage_migrated_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/repositories_changed_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/repository_created_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/repository_deleted_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/repository_renamed_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/repository_updated_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/events/reset_checksum_event_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/logger_spec.rb' + - 'ee/spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb' + - 'ee/spec/lib/gitlab/prometheus/queries/cluster_query_spec.rb' + - 'lib/api/helpers.rb' + - 'lib/api/sidekiq_metrics.rb' + - 'lib/backup/manager.rb' + - 'lib/bitbucket_server/representation/base.rb' + - 'lib/gitlab/auth/current_user_mode.rb' + - 'lib/gitlab/auth/ldap/access.rb' + - 'lib/gitlab/chaos.rb' + - 'lib/gitlab/checks/timed_logger.rb' + - 'lib/gitlab/ci/pipeline/duration.rb' + - 'lib/gitlab/database.rb' + - 'lib/gitlab/external_authorization/access.rb' + - 'lib/gitlab/external_authorization/cache.rb' + - 'lib/gitlab/gitaly_client.rb' + - 'lib/gitlab/gitaly_client/ref_service.rb' + - 'lib/gitlab/github_import/representation.rb' + - 'lib/gitlab/health_checks/base_abstract_check.rb' + - 'lib/gitlab/import_export.rb' + - 'lib/gitlab/instrumentation/elasticsearch_transport.rb' + - 'lib/gitlab/instrumentation_helper.rb' + - 'lib/gitlab/lfs_token.rb' + - 'lib/gitlab/loop_helpers.rb' + - 'lib/gitlab/phabricator_import/representation/task.rb' + - 'lib/gitlab/popen.rb' + - 'lib/gitlab/prometheus/queries/additional_metrics_environment_query.rb' + - 'lib/gitlab/prometheus/queries/matched_metric_query.rb' + - 'lib/gitlab/prometheus_client.rb' + - 'lib/gitlab/task_helpers.rb' + - 'lib/gitlab/x509/tag.rb' + - 'lib/grafana/time_window.rb' + - 'lib/json_web_token/token.rb' + - 'lib/object_storage/direct_upload.rb' + - 'lib/quality/seeders/issues.rb' + - 'lib/tasks/gitlab/assets.rake' + - 'lib/tasks/gitlab/backup.rake' + - 'lib/tasks/gitlab/cleanup.rake' + - 'lib/tasks/gitlab/list_repos.rake' + - 'spec/lib/api/helpers_spec.rb' + - 'spec/lib/gitlab/analytics/cycle_analytics/base_query_builder_spec.rb' + - 'spec/lib/gitlab/app_json_logger_spec.rb' + - 'spec/lib/gitlab/app_text_logger_spec.rb' + - 'spec/lib/gitlab/auth/current_user_mode_spec.rb' + - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' + - 'spec/lib/gitlab/bitbucket_server_import/importer_spec.rb' + - 'spec/lib/gitlab/checks/timed_logger_spec.rb' + - 'spec/lib/gitlab/ci/cron_parser_spec.rb' + - 'spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb' + - 'spec/lib/gitlab/data_builder/note_spec.rb' + - 'spec/lib/gitlab/database/background_migration_job_spec.rb' + - 'spec/lib/gitlab/database_spec.rb' + - 'spec/lib/gitlab/discussions_diff/file_collection_spec.rb' + - 'spec/lib/gitlab/external_authorization/access_spec.rb' + - 'spec/lib/gitlab/external_authorization/cache_spec.rb' + - 'spec/lib/gitlab/external_authorization/logger_spec.rb' + - 'spec/lib/gitlab/fogbugz_import/importer_spec.rb' + - 'spec/lib/gitlab/git/commit_spec.rb' + - 'spec/lib/gitlab/github_import/importer/issue_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/issues_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/note_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/releases_importer_spec.rb' + - 'spec/lib/gitlab/github_import/representation/diff_note_spec.rb' + - 'spec/lib/gitlab/github_import/representation/issue_spec.rb' + - 'spec/lib/gitlab/github_import/representation/note_spec.rb' + - 'spec/lib/gitlab/github_import/representation/pull_request_spec.rb' + - 'spec/lib/gitlab/grape_logging/formatters/lograge_with_timestamp_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/cloudflare_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb' + - 'spec/lib/gitlab/graphql_logger_spec.rb' + - 'spec/lib/gitlab/graphs/commits_spec.rb' + - 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb' + - 'spec/lib/gitlab/json_logger_spec.rb' + - 'spec/lib/gitlab/lfs_token_spec.rb' + - 'spec/lib/gitlab/log_timestamp_formatter_spec.rb' + - 'spec/lib/gitlab/middleware/rails_queue_duration_spec.rb' + - 'spec/lib/gitlab/phabricator_import/issues/task_importer_spec.rb' + - 'spec/lib/gitlab/phabricator_import/representation/task_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/additional_metrics_deployment_query_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/deployment_query_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/validate_query_spec.rb' + - 'spec/lib/gitlab/sidekiq_logging/json_formatter_spec.rb' + - 'spec/lib/gitlab/utils/json_size_estimator_spec.rb' + - 'spec/lib/gitlab/x509/signature_spec.rb' + - 'spec/lib/grafana/time_window_spec.rb' + - 'spec/lib/json_web_token/hmac_token_spec.rb' diff --git a/.rubocop_todo/rake/require.yml b/.rubocop_todo/rake/require.yml index 5042f0d504e..07138d6b622 100644 --- a/.rubocop_todo/rake/require.yml +++ b/.rubocop_todo/rake/require.yml @@ -22,5 +22,4 @@ Rake/Require: - 'lib/tasks/gitlab/x509/update.rake' - 'lib/tasks/import.rake' - 'lib/tasks/tokens.rake' - - 'qa/tasks/ci.rake' - 'qa/tasks/webdrivers.rake' diff --git a/.rubocop_todo/rspec/any_instance_of.yml b/.rubocop_todo/rspec/any_instance_of.yml index 5ee00cb0e24..f24fbbfbed2 100644 --- a/.rubocop_todo/rspec/any_instance_of.yml +++ b/.rubocop_todo/rspec/any_instance_of.yml @@ -1,463 +1,401 @@ --- +# Cop supports --autocorrect. RSpec/AnyInstanceOf: Exclude: - - ee/spec/controllers/admin/geo/nodes_controller_spec.rb - - ee/spec/controllers/ee/groups_controller_spec.rb - - ee/spec/controllers/groups/analytics/productivity_analytics_controller_spec.rb - - ee/spec/controllers/groups/epics/notes_controller_spec.rb - - ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb - - ee/spec/controllers/oauth/geo_auth_controller_spec.rb - - ee/spec/controllers/projects/environments_controller_spec.rb - - ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb - - ee/spec/controllers/projects/merge_requests_controller_spec.rb - - ee/spec/controllers/projects/path_locks_controller_spec.rb - - ee/spec/controllers/projects_controller_spec.rb - - ee/spec/controllers/subscriptions_controller_spec.rb - - ee/spec/features/admin/admin_audit_logs_spec.rb - - ee/spec/features/admin/admin_reset_pipeline_minutes_spec.rb - - ee/spec/features/admin/admin_users_spec.rb - - ee/spec/features/boards/scoped_issue_board_spec.rb - - ee/spec/features/ci_shared_runner_warnings_spec.rb - - ee/spec/features/groups/group_settings_spec.rb - - ee/spec/features/groups/navbar_spec.rb - - ee/spec/features/groups/saml_providers_spec.rb - - ee/spec/features/issues/form_spec.rb - - ee/spec/features/merge_request/user_creates_merge_request_spec.rb - - ee/spec/features/projects/new_project_spec.rb - - ee/spec/features/registrations/welcome_spec.rb - - ee/spec/features/security/project/internal_access_spec.rb - - ee/spec/features/security/project/private_access_spec.rb - - ee/spec/features/security/project/public_access_spec.rb - - ee/spec/features/trials/select_namespace_spec.rb - - ee/spec/features/users/login_spec.rb - - ee/spec/graphql/mutations/dast_on_demand_scans/create_spec.rb - - ee/spec/graphql/mutations/incident_management/oncall_schedule/create_spec.rb - - ee/spec/graphql/mutations/incident_management/oncall_schedule/destroy_spec.rb - - ee/spec/graphql/mutations/incident_management/oncall_schedule/update_spec.rb - - ee/spec/helpers/application_helper_spec.rb - - ee/spec/lib/ee/api/helpers_spec.rb - - ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb - - ee/spec/lib/ee/gitlab/checks/push_rule_check_spec.rb - - ee/spec/lib/ee/gitlab/checks/push_rules/commit_check_spec.rb - - ee/spec/lib/gitlab/auth/group_saml/membership_enforcer_spec.rb - - ee/spec/lib/gitlab/auth/ldap/access_spec.rb - - ee/spec/lib/gitlab/ci/templates/Jobs/browser_performance_testing_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/Jobs/dast_default_branch_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/Jobs/load_performance_testing_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/Verify/browser_performance_testing_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/Verify/load_performance_testing_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/container_scanning_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/coverage_fuzzing_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/dast_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/dependency_scanning_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/license_scanning_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/ci/templates/sast_gitlab_ci_yaml_spec.rb - - ee/spec/lib/gitlab/elastic/project_search_results_spec.rb - - ee/spec/lib/gitlab/expiring_subscription_message_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/daemon_spec.rb - - ee/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb - - ee/spec/lib/omni_auth/strategies/group_saml_spec.rb - - ee/spec/lib/system_check/geo/geo_database_configured_check_spec.rb - - ee/spec/models/ee/namespace_spec.rb - - ee/spec/models/geo_node_status_spec.rb - - ee/spec/models/issue_spec.rb - - ee/spec/models/merge_request_spec.rb - - ee/spec/models/project_import_state_spec.rb - - ee/spec/models/push_rule_spec.rb - - ee/spec/presenters/ci/pipeline_presenter_spec.rb - - ee/spec/requests/api/geo_nodes_spec.rb - - ee/spec/requests/api/graphql/mutations/dast_on_demand_scans/create_spec.rb - - ee/spec/requests/api/graphql/mutations/dast_site_profiles/delete_spec.rb - - ee/spec/requests/api/issues_spec.rb - - ee/spec/requests/api/projects_spec.rb - - ee/spec/requests/git_http_spec.rb - - ee/spec/requests/groups_controller_spec.rb - - ee/spec/requests/omniauth_kerberos_spec.rb - - ee/spec/requests/repositories/git_http_controller_spec.rb - - ee/spec/services/ee/git/branch_push_service_spec.rb - - ee/spec/services/ee/merge_requests/create_from_vulnerability_data_service_spec.rb - - ee/spec/services/ee/merge_requests/refresh_service_spec.rb - - ee/spec/services/ee/users/create_service_spec.rb - - ee/spec/services/ee/users/destroy_service_spec.rb - - ee/spec/services/geo/container_repository_sync_service_spec.rb - - ee/spec/services/geo/design_repository_sync_service_spec.rb - - ee/spec/services/geo/framework_repository_sync_service_spec.rb - - ee/spec/services/geo/hashed_storage_migration_service_spec.rb - - ee/spec/services/geo/metrics_update_service_spec.rb - - ee/spec/services/geo/move_repository_service_spec.rb - - ee/spec/services/geo/project_housekeeping_service_spec.rb - - ee/spec/services/geo/rename_repository_service_spec.rb - - ee/spec/services/geo/repository_destroy_service_spec.rb - - ee/spec/services/geo/repository_sync_service_spec.rb - - ee/spec/services/geo/wiki_sync_service_spec.rb - - ee/spec/services/groups/destroy_service_spec.rb - - ee/spec/services/groups/update_service_spec.rb - - ee/spec/services/merge_trains/check_status_service_spec.rb - - ee/spec/services/projects/destroy_service_spec.rb - - ee/spec/services/projects/group_links/destroy_service_spec.rb - - ee/spec/services/projects/update_service_spec.rb - - ee/spec/services/slash_commands/global_slack_handler_spec.rb - - ee/spec/support/helpers/ee/stub_configuration.rb - - ee/spec/support/shared_examples/controllers/analytics/cycle_analytics/shared_stage_shared_examples.rb - - ee/spec/support/shared_examples/features/ultimate_trial_callout_shared_examples.rb - - ee/spec/support/shared_examples/lib/gitlab/geo/geo_logs_event_source_info_shared_examples.rb - - ee/spec/support/shared_examples/models/member_shared_examples.rb - - ee/spec/support/shared_examples/services/base_sync_service_shared_examples.rb - - ee/spec/support/shared_examples/services/geo/geo_request_service_shared_examples.rb - - ee/spec/workers/concerns/elastic/indexing_control_spec.rb - - ee/spec/workers/elastic_commit_indexer_worker_spec.rb - - ee/spec/workers/geo/design_repository_shard_sync_worker_spec.rb - - ee/spec/workers/geo/registry_sync_worker_spec.rb - - ee/spec/workers/geo/repository_cleanup_worker_spec.rb - - ee/spec/workers/geo/repository_shard_sync_worker_spec.rb - - ee/spec/workers/project_cache_worker_spec.rb - - ee/spec/workers/repository_import_worker_spec.rb - - ee/spec/workers/vulnerability_exports/export_deletion_worker_spec.rb - - qa/spec/runtime/release_spec.rb - - spec/controllers/admin/sessions_controller_spec.rb - - spec/controllers/application_controller_spec.rb - - spec/controllers/concerns/issuable_actions_spec.rb - - spec/controllers/concerns/static_object_external_storage_spec.rb - - spec/controllers/explore/projects_controller_spec.rb - - spec/controllers/groups/clusters_controller_spec.rb - - spec/controllers/groups/settings/ci_cd_controller_spec.rb - - spec/controllers/groups_controller_spec.rb - - spec/controllers/import/bitbucket_controller_spec.rb - - spec/controllers/oauth/jira_dvcs/authorizations_controller_spec.rb - - spec/controllers/omniauth_callbacks_controller_spec.rb - - spec/controllers/projects/artifacts_controller_spec.rb - - spec/controllers/projects/branches_controller_spec.rb - - spec/controllers/projects/clusters_controller_spec.rb - - spec/controllers/projects/commit_controller_spec.rb - - spec/controllers/projects/commits_controller_spec.rb - - spec/controllers/projects/environments_controller_spec.rb - - spec/controllers/projects/imports_controller_spec.rb - - spec/controllers/projects/issues_controller_spec.rb - - spec/controllers/projects/jobs_controller_spec.rb - - spec/controllers/projects/labels_controller_spec.rb - - spec/controllers/projects/merge_requests_controller_spec.rb - - spec/controllers/projects/pipelines_controller_spec.rb - - spec/controllers/projects/settings/integration_hook_logs_controller_spec.rb - - spec/controllers/projects/settings/integrations_controller_spec.rb - - spec/controllers/projects/tags_controller_spec.rb - - spec/controllers/registrations_controller_spec.rb - - spec/controllers/sessions_controller_spec.rb - - spec/controllers/snippets/notes_controller_spec.rb - - spec/controllers/snippets_controller_spec.rb - - spec/features/admin/admin_mode/login_spec.rb - - spec/features/groups/members/tabs_spec.rb - - spec/features/ide/static_object_external_storage_csp_spec.rb - - spec/features/issuables/issuable_list_spec.rb - - spec/features/issues/form_spec.rb - - spec/features/merge_request/user_creates_image_diff_notes_spec.rb - - spec/features/merge_request/user_reviews_image_spec.rb - - spec/features/merge_request/user_sees_diff_spec.rb - - spec/features/merge_request/user_sees_merge_widget_spec.rb - - spec/features/profiles/personal_access_tokens_spec.rb - - spec/features/projects/clusters/gcp_spec.rb - - spec/features/projects/clusters_spec.rb - - spec/features/projects/container_registry_spec.rb - - spec/features/projects/files/user_browses_lfs_files_spec.rb - - spec/features/projects/jobs_spec.rb - - spec/features/projects/navbar_spec.rb - - spec/features/projects/settings/service_desk_setting_spec.rb - - spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb - - spec/features/snippets/embedded_snippet_spec.rb - - spec/features/usage_stats_consent_spec.rb - - spec/finders/prometheus_metrics_finder_spec.rb - - spec/graphql/mutations/alert_management/create_alert_issue_spec.rb - - spec/graphql/mutations/alert_management/http_integration/create_spec.rb - - spec/graphql/mutations/alert_management/http_integration/destroy_spec.rb - - spec/graphql/mutations/alert_management/http_integration/reset_token_spec.rb - - spec/graphql/mutations/alert_management/http_integration/update_spec.rb - - spec/graphql/mutations/alert_management/prometheus_integration/create_spec.rb - - spec/graphql/mutations/alert_management/prometheus_integration/reset_token_spec.rb - - spec/graphql/mutations/alert_management/prometheus_integration/update_spec.rb - - spec/helpers/projects_helper_spec.rb - - spec/initializers/lograge_spec.rb - - spec/lib/api/entities/merge_request_basic_spec.rb - - spec/lib/api/entities/merge_request_changes_spec.rb - - spec/lib/api/helpers_spec.rb - - spec/lib/backup/files_spec.rb - - spec/lib/backup/manager_spec.rb - - spec/lib/banzai/commit_renderer_spec.rb - - spec/lib/banzai/filter/references/external_issue_reference_filter_spec.rb - - spec/lib/banzai/filter/references/issue_reference_filter_spec.rb - - spec/lib/banzai/filter/repository_link_filter_spec.rb - - spec/lib/banzai/pipeline/gfm_pipeline_spec.rb - - spec/lib/extracts_ref_spec.rb - - spec/lib/feature_spec.rb - - spec/lib/gitlab/app_logger_spec.rb - - spec/lib/gitlab/asciidoc_spec.rb - - spec/lib/gitlab/auth/auth_finders_spec.rb - - spec/lib/gitlab/auth/blocked_user_tracker_spec.rb - - spec/lib/gitlab/auth/request_authenticator_spec.rb - - spec/lib/gitlab/auth_spec.rb - - spec/lib/gitlab/checks/diff_check_spec.rb - - spec/lib/gitlab/checks/lfs_check_spec.rb - - spec/lib/gitlab/checks/lfs_integrity_spec.rb - - spec/lib/gitlab/ci/config/external/file/base_spec.rb - - spec/lib/gitlab/ci/config/external/file/local_spec.rb - - spec/lib/gitlab/ci/config/external/processor_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/build_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/command_spec.rb - - spec/lib/gitlab/ci/templates/AWS/deploy_ecs_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/Jobs/build_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/Jobs/code_quality_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/Jobs/deploy_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/Jobs/test_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/Verify/load_performance_testing_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/auto_devops_gitlab_ci_yaml_spec.rb - - spec/lib/gitlab/ci/templates/npm_spec.rb - - spec/lib/gitlab/ci/trace_spec.rb - - spec/lib/gitlab/current_settings_spec.rb - - spec/lib/gitlab/diff/highlight_cache_spec.rb - - spec/lib/gitlab/diff/highlight_spec.rb - - spec/lib/gitlab/diff/position_spec.rb - - spec/lib/gitlab/email/handler/create_issue_handler_spec.rb - - spec/lib/gitlab/email/handler/create_note_handler_spec.rb - - spec/lib/gitlab/etag_caching/middleware_spec.rb - - spec/lib/gitlab/exclusive_lease_helpers_spec.rb - - spec/lib/gitlab/fogbugz_import/importer_spec.rb - - spec/lib/gitlab/gfm/reference_rewriter_spec.rb - - spec/lib/gitlab/git/repository_spec.rb - - spec/lib/gitlab/gitaly_client/blob_service_spec.rb - - spec/lib/gitlab/gitaly_client/commit_service_spec.rb - - spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb - - spec/lib/gitlab/gitaly_client/health_check_service_spec.rb - - spec/lib/gitlab/gitaly_client/operation_service_spec.rb - - spec/lib/gitlab/gitaly_client/praefect_info_service_spec.rb - - spec/lib/gitlab/gitaly_client/ref_service_spec.rb - - spec/lib/gitlab/gitaly_client/remote_service_spec.rb - - spec/lib/gitlab/gitaly_client/repository_service_spec.rb - - spec/lib/gitlab/gitaly_client/wiki_service_spec.rb - - spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb - - spec/lib/gitlab/gpg/invalid_gpg_signature_updater_spec.rb - - spec/lib/gitlab/hashed_storage/migrator_spec.rb - - spec/lib/gitlab/import/merge_request_helpers_spec.rb - - spec/lib/gitlab/import_export/config_spec.rb - - spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb - - spec/lib/gitlab/import_export/importer_spec.rb - - spec/lib/gitlab/import_export/lfs_restorer_spec.rb - - spec/lib/gitlab/import_export/project/tree_restorer_spec.rb - - spec/lib/gitlab/import_export/snippet_repo_restorer_spec.rb - - spec/lib/gitlab/import_export/snippets_repo_restorer_spec.rb - - spec/lib/gitlab/import_export/version_checker_spec.rb - - spec/lib/gitlab/job_waiter_spec.rb - - spec/lib/gitlab/legacy_github_import/importer_spec.rb - - spec/lib/gitlab/legacy_github_import/project_creator_spec.rb - - spec/lib/gitlab/metrics/exporter/base_exporter_spec.rb - - spec/lib/gitlab/metrics/rack_middleware_spec.rb - - spec/lib/gitlab/metrics/subscribers/active_record_spec.rb - - spec/lib/gitlab/metrics_spec.rb - - spec/lib/gitlab/sidekiq_daemon/monitor_spec.rb - - spec/lib/gitlab/sidekiq_middleware_spec.rb - - spec/lib/gitlab/tracking/destinations/snowplow_spec.rb - - spec/lib/gitlab/tracking_spec.rb - - spec/lib/gitlab/usage_data_spec.rb - - spec/lib/gitlab/workhorse_spec.rb - - spec/lib/gitlab/x509/commit_spec.rb - - spec/lib/gitlab/x509/signature_spec.rb - - spec/lib/google_api/cloud_platform/client_spec.rb - - spec/lib/json_web_token/rsa_token_spec.rb - - spec/lib/mattermost/command_spec.rb - - spec/lib/mattermost/team_spec.rb - - spec/lib/system_check/simple_executor_spec.rb - - spec/models/ci/build_spec.rb - - spec/models/ci/runner_spec.rb - - spec/models/commit_spec.rb - - spec/models/environment_spec.rb - - spec/models/group_spec.rb - - spec/models/hooks/service_hook_spec.rb - - spec/models/hooks/system_hook_spec.rb - - spec/models/hooks/web_hook_spec.rb - - spec/models/integrations/jira_spec.rb - - spec/models/integrations/mattermost_slash_commands_spec.rb - - spec/models/issue_spec.rb - - spec/models/key_spec.rb - - spec/models/member_spec.rb - - spec/models/merge_request_diff_spec.rb - - spec/models/merge_request_spec.rb - - spec/models/note_spec.rb - - spec/models/project_import_state_spec.rb - - spec/models/project_spec.rb - - spec/models/repository_spec.rb - - spec/models/user_spec.rb - - spec/models/x509_certificate_spec.rb - - spec/policies/ci/build_policy_spec.rb - - spec/policies/ci/pipeline_policy_spec.rb - - spec/presenters/gitlab/blame_presenter_spec.rb - - spec/presenters/merge_request_presenter_spec.rb - - spec/requests/api/ci/runner/jobs_artifacts_spec.rb - - spec/requests/api/ci/runner/jobs_put_spec.rb - - spec/requests/api/ci/runner/jobs_request_post_spec.rb - - spec/requests/api/ci/runner/jobs_trace_spec.rb - - spec/requests/api/ci/runner/runners_delete_spec.rb - - spec/requests/api/ci/runner/runners_post_spec.rb - - spec/requests/api/ci/runner/runners_verify_post_spec.rb - - spec/requests/api/graphql/gitlab_schema_spec.rb - - spec/requests/api/graphql/project/error_tracking/sentry_detailed_error_request_spec.rb - - spec/requests/api/graphql_spec.rb - - spec/requests/api/helpers_spec.rb - - spec/requests/api/internal/base_spec.rb - - spec/requests/api/maven_packages_spec.rb - - spec/requests/api/merge_requests_spec.rb - - spec/requests/api/pages/pages_spec.rb - - spec/requests/api/project_export_spec.rb - - spec/requests/api/project_import_spec.rb - - spec/requests/api/projects_spec.rb - - spec/requests/api/snippets_spec.rb - - spec/requests/api/todos_spec.rb - - spec/requests/git_http_spec.rb - - spec/requests/import/gitlab_projects_controller_spec.rb - - spec/routing/routing_spec.rb - - spec/serializers/merge_request_poll_cached_widget_entity_spec.rb - - spec/serializers/merge_request_poll_widget_entity_spec.rb - - spec/services/application_settings/update_service_spec.rb - - spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb - - spec/services/boards/lists/update_service_spec.rb - - spec/services/ci/create_pipeline_service_spec.rb - - spec/services/ci/expire_pipeline_cache_service_spec.rb - - spec/services/ci/list_config_variables_service_spec.rb - - spec/services/ci/register_job_service_spec.rb - - spec/services/ci/resource_groups/assign_resource_from_resource_group_service_spec.rb - - spec/services/ci/retry_pipeline_service_spec.rb - - spec/services/clusters/applications/create_service_spec.rb - - spec/services/clusters/cleanup/project_namespace_service_spec.rb - - spec/services/clusters/cleanup/service_account_service_spec.rb - - spec/services/deployments/older_deployments_drop_service_spec.rb - - spec/services/deployments/update_environment_service_spec.rb - - spec/services/draft_notes/destroy_service_spec.rb - - spec/services/events/render_service_spec.rb - - spec/services/git/branch_push_service_spec.rb - - spec/services/git/process_ref_changes_service_spec.rb - - spec/services/groups/create_service_spec.rb - - spec/services/groups/update_service_spec.rb - - spec/services/integrations/test/project_service_spec.rb - - spec/services/issuable/destroy_service_spec.rb - - spec/services/issues/close_service_spec.rb - - spec/services/issues/reopen_service_spec.rb - - spec/services/members/destroy_service_spec.rb - - spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb - - spec/services/merge_requests/build_service_spec.rb - - spec/services/merge_requests/merge_service_spec.rb - - spec/services/merge_requests/mergeability_check_service_spec.rb - - spec/services/merge_requests/refresh_service_spec.rb - - spec/services/merge_requests/reload_diffs_service_spec.rb - - spec/services/merge_requests/resolved_discussion_notification_service_spec.rb - - spec/services/metrics/dashboard/custom_dashboard_service_spec.rb - - spec/services/metrics/dashboard/transient_embed_service_spec.rb - - spec/services/notes/create_service_spec.rb - - spec/services/notes/render_service_spec.rb - - spec/services/packages/conan/create_package_file_service_spec.rb - - spec/services/packages/nuget/metadata_extraction_service_spec.rb - - spec/services/packages/nuget/update_package_from_metadata_service_spec.rb - - spec/services/post_receive_service_spec.rb - - spec/services/projects/after_rename_service_spec.rb - - spec/services/projects/container_repository/cleanup_tags_service_spec.rb - - spec/services/projects/container_repository/delete_tags_service_spec.rb - - spec/services/projects/container_repository/gitlab/delete_tags_service_spec.rb - - spec/services/projects/container_repository/third_party/delete_tags_service_spec.rb - - spec/services/projects/destroy_service_spec.rb - - spec/services/projects/fork_service_spec.rb - - spec/services/projects/import_service_spec.rb - - spec/services/projects/lfs_pointers/lfs_download_service_spec.rb - - spec/services/projects/lfs_pointers/lfs_object_download_list_service_spec.rb - - spec/services/projects/prometheus/alerts/notify_service_spec.rb - - spec/services/projects/transfer_service_spec.rb - - spec/services/projects/update_remote_mirror_service_spec.rb - - spec/services/projects/update_service_spec.rb - - spec/services/projects/update_statistics_service_spec.rb - - spec/services/resource_events/change_labels_service_spec.rb - - spec/services/search_service_spec.rb - - spec/services/snippets/create_service_spec.rb - - spec/services/test_hooks/project_service_spec.rb - - spec/services/test_hooks/system_service_spec.rb - - spec/services/todo_service_spec.rb - - spec/services/users/destroy_service_spec.rb - - spec/services/users/migrate_to_ghost_user_service_spec.rb - - spec/spec_helper.rb - - spec/support/capybara.rb - - spec/support/helpers/api_helpers.rb - - spec/support/helpers/graphql_helpers.rb - - spec/support/helpers/ldap_helpers.rb - - spec/support/helpers/login_helpers.rb - - spec/support/helpers/metrics_dashboard_url_helpers.rb - - spec/support/helpers/rake_helpers.rb - - spec/support/helpers/stub_configuration.rb - - spec/support/helpers/stub_gitlab_calls.rb - - spec/support/helpers/test_env.rb - - spec/support/import_export/common_util.rb - - spec/support/services/migrate_to_ghost_user_service_shared_examples.rb - - spec/support/shared_contexts/email_shared_context.rb - - spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb - - spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb - - spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb - - spec/support/shared_examples/controllers/issuables_requiring_filter_shared_examples.rb - - spec/support/shared_examples/controllers/repository_lfs_file_load_shared_examples.rb - - spec/support/shared_examples/controllers/set_sort_order_from_user_preference_shared_examples.rb - - spec/support/shared_examples/controllers/unique_visits_shared_examples.rb - - spec/support/shared_examples/controllers/update_invalid_issuable_shared_examples.rb - - spec/support/shared_examples/controllers/uploads_actions_shared_examples.rb - - spec/support/shared_examples/features/archive_download_buttons_shared_examples.rb - - spec/support/shared_examples/features/snippets_shared_examples.rb - - spec/support/shared_examples/lib/gitlab/ci/ci_trace_shared_examples.rb - - spec/support/shared_examples/models/atomic_internal_id_shared_examples.rb - - spec/support/shared_examples/models/diff_note_after_commit_shared_examples.rb - - spec/support/shared_examples/models/integrations/base_slash_commands_shared_examples.rb - - spec/support/shared_examples/models/mentionable_shared_examples.rb - - spec/support/shared_examples/models/with_uploads_shared_examples.rb - - spec/support/shared_examples/path_extraction_shared_examples.rb - - spec/support/shared_examples/requests/api/discussions_shared_examples.rb - - spec/support/shared_examples/requests/api/snippets_shared_examples.rb - - spec/support/shared_examples/requests/rack_attack_shared_examples.rb - - spec/support/shared_examples/requests/snippet_shared_examples.rb - - spec/support/shared_examples/services/alert_management_shared_examples.rb - - spec/support/shared_examples/services/boards/boards_list_service_shared_examples.rb - - spec/support/shared_examples/services/boards/issues_list_service_shared_examples.rb - - spec/support/shared_examples/services/boards/issues_move_service_shared_examples.rb - - spec/support/shared_examples/services/issuable_shared_examples.rb - - spec/support/shared_examples/uploaders/object_storage_shared_examples.rb - - spec/support/shared_examples/workers/authorized_projects_worker_shared_example.rb - - spec/support/shared_examples/workers/reactive_cacheable_shared_examples.rb - - spec/tasks/gitlab/cleanup_rake_spec.rb - - spec/tasks/gitlab/container_registry_rake_spec.rb - - spec/tasks/gitlab/db_rake_spec.rb - - spec/tasks/gitlab/git_rake_spec.rb - - spec/tasks/gitlab/praefect_rake_spec.rb - - spec/tasks/gitlab/shell_rake_spec.rb - - spec/tasks/gitlab/x509/update_rake_spec.rb - - spec/uploaders/file_mover_spec.rb - - spec/uploaders/records_uploads_spec.rb - - spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb - - spec/views/layouts/_head.html.haml_spec.rb - - spec/views/projects/artifacts/_artifact.html.haml_spec.rb - - spec/workers/archive_trace_worker_spec.rb - - spec/workers/build_hooks_worker_spec.rb - - spec/workers/ci/build_schedule_worker_spec.rb - - spec/workers/ci/daily_build_group_report_results_worker_spec.rb - - spec/workers/cluster_configure_istio_worker_spec.rb - - spec/workers/cluster_provision_worker_spec.rb - - spec/workers/clusters/cleanup/project_namespace_worker_spec.rb - - spec/workers/clusters/cleanup/service_account_worker_spec.rb - - spec/workers/concerns/project_import_options_spec.rb - - spec/workers/create_commit_signature_worker_spec.rb - - spec/workers/create_note_diff_file_worker_spec.rb - - spec/workers/delete_diff_files_worker_spec.rb - - spec/workers/email_receiver_worker_spec.rb - - spec/workers/emails_on_push_worker_spec.rb - - spec/workers/error_tracking_issue_link_worker_spec.rb - - spec/workers/group_export_worker_spec.rb - - spec/workers/group_import_worker_spec.rb - - spec/workers/namespaces/root_statistics_worker_spec.rb - - spec/workers/new_note_worker_spec.rb - - spec/workers/object_pool/create_worker_spec.rb - - spec/workers/packages/nuget/extraction_worker_spec.rb - - spec/workers/pipeline_hooks_worker_spec.rb - - spec/workers/pipeline_process_worker_spec.rb - - spec/workers/pipeline_schedule_worker_spec.rb - - spec/workers/project_cache_worker_spec.rb - - spec/workers/stage_update_worker_spec.rb - - spec/workers/stuck_ci_jobs_worker_spec.rb - - spec/workers/wait_for_cluster_creation_worker_spec.rb - - ee/spec/workers/security/auto_fix_worker_spec.rb + - 'ee/spec/controllers/admin/geo/nodes_controller_spec.rb' + - 'ee/spec/controllers/ee/groups_controller_spec.rb' + - 'ee/spec/controllers/groups/analytics/productivity_analytics_controller_spec.rb' + - 'ee/spec/controllers/groups/epics/notes_controller_spec.rb' + - 'ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb' + - 'ee/spec/controllers/oauth/geo_auth_controller_spec.rb' + - 'ee/spec/controllers/projects/integrations/jira/issues_controller_spec.rb' + - 'ee/spec/controllers/projects/merge_requests_controller_spec.rb' + - 'ee/spec/controllers/projects/path_locks_controller_spec.rb' + - 'ee/spec/controllers/projects_controller_spec.rb' + - 'ee/spec/controllers/subscriptions_controller_spec.rb' + - 'ee/spec/features/admin/admin_audit_logs_spec.rb' + - 'ee/spec/features/admin/admin_reset_pipeline_minutes_spec.rb' + - 'ee/spec/features/admin/admin_users_spec.rb' + - 'ee/spec/features/ci_shared_runner_warnings_spec.rb' + - 'ee/spec/features/groups/group_settings_spec.rb' + - 'ee/spec/features/issues/form_spec.rb' + - 'ee/spec/features/merge_request/user_creates_merge_request_spec.rb' + - 'ee/spec/features/projects/new_project_spec.rb' + - 'ee/spec/features/registrations/welcome_spec.rb' + - 'ee/spec/features/security/project/internal_access_spec.rb' + - 'ee/spec/features/security/project/private_access_spec.rb' + - 'ee/spec/features/security/project/public_access_spec.rb' + - 'ee/spec/features/users/login_spec.rb' + - 'ee/spec/graphql/mutations/dast_on_demand_scans/create_spec.rb' + - 'ee/spec/graphql/mutations/incident_management/oncall_schedule/create_spec.rb' + - 'ee/spec/graphql/mutations/incident_management/oncall_schedule/destroy_spec.rb' + - 'ee/spec/graphql/mutations/incident_management/oncall_schedule/update_spec.rb' + - 'ee/spec/helpers/application_helper_spec.rb' + - 'ee/spec/lib/ee/api/helpers_spec.rb' + - 'ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb' + - 'ee/spec/lib/ee/gitlab/checks/push_rule_check_spec.rb' + - 'ee/spec/lib/ee/gitlab/checks/push_rules/commit_check_spec.rb' + - 'ee/spec/lib/gitlab/auth/group_saml/membership_enforcer_spec.rb' + - 'ee/spec/lib/gitlab/auth/ldap/access_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/daemon_spec.rb' + - 'ee/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb' + - 'ee/spec/models/ee/namespace_spec.rb' + - 'ee/spec/models/geo_node_status_spec.rb' + - 'ee/spec/models/issue_spec.rb' + - 'ee/spec/models/merge_request_spec.rb' + - 'ee/spec/models/project_import_state_spec.rb' + - 'ee/spec/models/push_rule_spec.rb' + - 'ee/spec/presenters/ci/pipeline_presenter_spec.rb' + - 'ee/spec/requests/api/geo_nodes_spec.rb' + - 'ee/spec/requests/api/issues_spec.rb' + - 'ee/spec/requests/api/projects_spec.rb' + - 'ee/spec/requests/git_http_spec.rb' + - 'ee/spec/requests/groups_controller_spec.rb' + - 'ee/spec/requests/omniauth_kerberos_spec.rb' + - 'ee/spec/requests/repositories/git_http_controller_spec.rb' + - 'ee/spec/services/ee/git/branch_push_service_spec.rb' + - 'ee/spec/services/ee/merge_requests/create_from_vulnerability_data_service_spec.rb' + - 'ee/spec/services/ee/merge_requests/refresh_service_spec.rb' + - 'ee/spec/services/ee/users/create_service_spec.rb' + - 'ee/spec/services/geo/container_repository_sync_service_spec.rb' + - 'ee/spec/services/geo/design_repository_sync_service_spec.rb' + - 'ee/spec/services/geo/framework_repository_sync_service_spec.rb' + - 'ee/spec/services/geo/hashed_storage_migration_service_spec.rb' + - 'ee/spec/services/geo/metrics_update_service_spec.rb' + - 'ee/spec/services/geo/move_repository_service_spec.rb' + - 'ee/spec/services/geo/project_housekeeping_service_spec.rb' + - 'ee/spec/services/geo/rename_repository_service_spec.rb' + - 'ee/spec/services/geo/repository_destroy_service_spec.rb' + - 'ee/spec/services/geo/repository_sync_service_spec.rb' + - 'ee/spec/services/groups/destroy_service_spec.rb' + - 'ee/spec/services/groups/update_service_spec.rb' + - 'ee/spec/services/merge_trains/check_status_service_spec.rb' + - 'ee/spec/services/projects/destroy_service_spec.rb' + - 'ee/spec/services/projects/group_links/destroy_service_spec.rb' + - 'ee/spec/services/projects/update_service_spec.rb' + - 'ee/spec/services/slash_commands/global_slack_handler_spec.rb' + - 'ee/spec/support/helpers/ee/stub_configuration.rb' + - 'ee/spec/support/shared_examples/controllers/analytics/cycle_analytics/shared_stage_shared_examples.rb' + - 'ee/spec/support/shared_examples/features/ultimate_trial_callout_shared_examples.rb' + - 'ee/spec/support/shared_examples/lib/gitlab/geo/geo_logs_event_source_info_shared_examples.rb' + - 'ee/spec/support/shared_examples/models/member_shared_examples.rb' + - 'ee/spec/support/shared_examples/services/base_sync_service_shared_examples.rb' + - 'ee/spec/workers/concerns/elastic/indexing_control_spec.rb' + - 'ee/spec/workers/geo/design_repository_shard_sync_worker_spec.rb' + - 'ee/spec/workers/geo/registry_sync_worker_spec.rb' + - 'ee/spec/workers/geo/repository_cleanup_worker_spec.rb' + - 'ee/spec/workers/geo/repository_shard_sync_worker_spec.rb' + - 'ee/spec/workers/project_cache_worker_spec.rb' + - 'ee/spec/workers/repository_import_worker_spec.rb' + - 'ee/spec/workers/security/auto_fix_worker_spec.rb' + - 'ee/spec/workers/vulnerability_exports/export_deletion_worker_spec.rb' + - 'spec/controllers/admin/sessions_controller_spec.rb' + - 'spec/controllers/application_controller_spec.rb' + - 'spec/controllers/concerns/issuable_actions_spec.rb' + - 'spec/controllers/concerns/static_object_external_storage_spec.rb' + - 'spec/controllers/explore/projects_controller_spec.rb' + - 'spec/controllers/groups/clusters_controller_spec.rb' + - 'spec/controllers/groups/settings/ci_cd_controller_spec.rb' + - 'spec/controllers/groups_controller_spec.rb' + - 'spec/controllers/import/bitbucket_controller_spec.rb' + - 'spec/controllers/oauth/jira_dvcs/authorizations_controller_spec.rb' + - 'spec/controllers/omniauth_callbacks_controller_spec.rb' + - 'spec/controllers/projects/artifacts_controller_spec.rb' + - 'spec/controllers/projects/branches_controller_spec.rb' + - 'spec/controllers/projects/clusters_controller_spec.rb' + - 'spec/controllers/projects/commit_controller_spec.rb' + - 'spec/controllers/projects/commits_controller_spec.rb' + - 'spec/controllers/projects/environments_controller_spec.rb' + - 'spec/controllers/projects/imports_controller_spec.rb' + - 'spec/controllers/projects/jobs_controller_spec.rb' + - 'spec/controllers/projects/labels_controller_spec.rb' + - 'spec/controllers/projects/merge_requests_controller_spec.rb' + - 'spec/controllers/projects/pipelines_controller_spec.rb' + - 'spec/controllers/projects/settings/integration_hook_logs_controller_spec.rb' + - 'spec/controllers/projects/settings/integrations_controller_spec.rb' + - 'spec/controllers/projects/tags_controller_spec.rb' + - 'spec/controllers/registrations_controller_spec.rb' + - 'spec/controllers/sessions_controller_spec.rb' + - 'spec/controllers/snippets/notes_controller_spec.rb' + - 'spec/controllers/snippets_controller_spec.rb' + - 'spec/features/admin/admin_mode/login_spec.rb' + - 'spec/features/groups/members/tabs_spec.rb' + - 'spec/features/ide/static_object_external_storage_csp_spec.rb' + - 'spec/features/issuables/issuable_list_spec.rb' + - 'spec/features/issues/form_spec.rb' + - 'spec/features/merge_request/user_creates_image_diff_notes_spec.rb' + - 'spec/features/merge_request/user_reviews_image_spec.rb' + - 'spec/features/merge_request/user_sees_diff_spec.rb' + - 'spec/features/merge_request/user_sees_merge_widget_spec.rb' + - 'spec/features/projects/clusters/gcp_spec.rb' + - 'spec/features/projects/clusters_spec.rb' + - 'spec/features/projects/container_registry_spec.rb' + - 'spec/features/projects/files/user_browses_lfs_files_spec.rb' + - 'spec/features/projects/jobs_spec.rb' + - 'spec/features/projects/settings/service_desk_setting_spec.rb' + - 'spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb' + - 'spec/features/snippets/embedded_snippet_spec.rb' + - 'spec/features/usage_stats_consent_spec.rb' + - 'spec/finders/prometheus_metrics_finder_spec.rb' + - 'spec/graphql/mutations/alert_management/create_alert_issue_spec.rb' + - 'spec/graphql/mutations/alert_management/http_integration/create_spec.rb' + - 'spec/graphql/mutations/alert_management/http_integration/destroy_spec.rb' + - 'spec/graphql/mutations/alert_management/http_integration/reset_token_spec.rb' + - 'spec/graphql/mutations/alert_management/http_integration/update_spec.rb' + - 'spec/graphql/mutations/alert_management/prometheus_integration/create_spec.rb' + - 'spec/graphql/mutations/alert_management/prometheus_integration/reset_token_spec.rb' + - 'spec/graphql/mutations/alert_management/prometheus_integration/update_spec.rb' + - 'spec/helpers/projects_helper_spec.rb' + - 'spec/initializers/lograge_spec.rb' + - 'spec/lib/api/entities/merge_request_basic_spec.rb' + - 'spec/lib/api/entities/merge_request_changes_spec.rb' + - 'spec/lib/api/helpers_spec.rb' + - 'spec/lib/backup/files_spec.rb' + - 'spec/lib/backup/manager_spec.rb' + - 'spec/lib/banzai/commit_renderer_spec.rb' + - 'spec/lib/banzai/filter/references/external_issue_reference_filter_spec.rb' + - 'spec/lib/banzai/filter/references/issue_reference_filter_spec.rb' + - 'spec/lib/banzai/filter/repository_link_filter_spec.rb' + - 'spec/lib/banzai/pipeline/gfm_pipeline_spec.rb' + - 'spec/lib/extracts_ref_spec.rb' + - 'spec/lib/feature_spec.rb' + - 'spec/lib/gitlab/app_logger_spec.rb' + - 'spec/lib/gitlab/asciidoc_spec.rb' + - 'spec/lib/gitlab/auth/auth_finders_spec.rb' + - 'spec/lib/gitlab/auth/blocked_user_tracker_spec.rb' + - 'spec/lib/gitlab/auth/request_authenticator_spec.rb' + - 'spec/lib/gitlab/auth_spec.rb' + - 'spec/lib/gitlab/checks/lfs_check_spec.rb' + - 'spec/lib/gitlab/checks/lfs_integrity_spec.rb' + - 'spec/lib/gitlab/ci/config/external/file/base_spec.rb' + - 'spec/lib/gitlab/ci/config/external/file/local_spec.rb' + - 'spec/lib/gitlab/ci/config/external/processor_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/build_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/command_spec.rb' + - 'spec/lib/gitlab/ci/templates/AWS/deploy_ecs_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/Jobs/build_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/Jobs/code_quality_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/Jobs/deploy_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/Jobs/test_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/Verify/load_performance_testing_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/auto_devops_gitlab_ci_yaml_spec.rb' + - 'spec/lib/gitlab/ci/templates/npm_spec.rb' + - 'spec/lib/gitlab/ci/trace_spec.rb' + - 'spec/lib/gitlab/current_settings_spec.rb' + - 'spec/lib/gitlab/diff/highlight_cache_spec.rb' + - 'spec/lib/gitlab/diff/highlight_spec.rb' + - 'spec/lib/gitlab/diff/position_spec.rb' + - 'spec/lib/gitlab/email/handler/create_issue_handler_spec.rb' + - 'spec/lib/gitlab/etag_caching/middleware_spec.rb' + - 'spec/lib/gitlab/exclusive_lease_helpers_spec.rb' + - 'spec/lib/gitlab/gfm/reference_rewriter_spec.rb' + - 'spec/lib/gitlab/git/repository_spec.rb' + - 'spec/lib/gitlab/gitaly_client/blob_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/commit_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/health_check_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/operation_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/praefect_info_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/ref_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/remote_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/repository_service_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb' + - 'spec/lib/gitlab/gpg/invalid_gpg_signature_updater_spec.rb' + - 'spec/lib/gitlab/hashed_storage/migrator_spec.rb' + - 'spec/lib/gitlab/import/merge_request_helpers_spec.rb' + - 'spec/lib/gitlab/import_export/config_spec.rb' + - 'spec/lib/gitlab/import_export/fast_hash_serializer_spec.rb' + - 'spec/lib/gitlab/import_export/importer_spec.rb' + - 'spec/lib/gitlab/import_export/lfs_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/project/tree_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/snippet_repo_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/snippets_repo_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/version_checker_spec.rb' + - 'spec/lib/gitlab/job_waiter_spec.rb' + - 'spec/lib/gitlab/legacy_github_import/importer_spec.rb' + - 'spec/lib/gitlab/legacy_github_import/project_creator_spec.rb' + - 'spec/lib/gitlab/metrics/exporter/base_exporter_spec.rb' + - 'spec/lib/gitlab/metrics/rack_middleware_spec.rb' + - 'spec/lib/gitlab/metrics_spec.rb' + - 'spec/lib/gitlab/sidekiq_daemon/monitor_spec.rb' + - 'spec/lib/gitlab/tracking/destinations/snowplow_spec.rb' + - 'spec/lib/gitlab/tracking_spec.rb' + - 'spec/lib/gitlab/usage_data_spec.rb' + - 'spec/lib/gitlab/workhorse_spec.rb' + - 'spec/lib/gitlab/x509/commit_spec.rb' + - 'spec/lib/gitlab/x509/signature_spec.rb' + - 'spec/lib/google_api/cloud_platform/client_spec.rb' + - 'spec/lib/json_web_token/rsa_token_spec.rb' + - 'spec/lib/mattermost/command_spec.rb' + - 'spec/lib/mattermost/team_spec.rb' + - 'spec/lib/system_check/simple_executor_spec.rb' + - 'spec/models/ci/build_spec.rb' + - 'spec/models/ci/runner_spec.rb' + - 'spec/models/commit_spec.rb' + - 'spec/models/environment_spec.rb' + - 'spec/models/hooks/service_hook_spec.rb' + - 'spec/models/hooks/system_hook_spec.rb' + - 'spec/models/integrations/jira_spec.rb' + - 'spec/models/key_spec.rb' + - 'spec/models/member_spec.rb' + - 'spec/models/merge_request_diff_spec.rb' + - 'spec/models/merge_request_spec.rb' + - 'spec/models/note_spec.rb' + - 'spec/models/project_import_state_spec.rb' + - 'spec/models/project_spec.rb' + - 'spec/models/repository_spec.rb' + - 'spec/models/user_spec.rb' + - 'spec/models/x509_certificate_spec.rb' + - 'spec/policies/ci/build_policy_spec.rb' + - 'spec/policies/ci/pipeline_policy_spec.rb' + - 'spec/presenters/gitlab/blame_presenter_spec.rb' + - 'spec/presenters/merge_request_presenter_spec.rb' + - 'spec/requests/api/ci/runner/jobs_artifacts_spec.rb' + - 'spec/requests/api/ci/runner/jobs_put_spec.rb' + - 'spec/requests/api/ci/runner/jobs_request_post_spec.rb' + - 'spec/requests/api/ci/runner/jobs_trace_spec.rb' + - 'spec/requests/api/ci/runner/runners_delete_spec.rb' + - 'spec/requests/api/ci/runner/runners_post_spec.rb' + - 'spec/requests/api/ci/runner/runners_verify_post_spec.rb' + - 'spec/requests/api/graphql/gitlab_schema_spec.rb' + - 'spec/requests/api/graphql/project/error_tracking/sentry_detailed_error_request_spec.rb' + - 'spec/requests/api/helpers_spec.rb' + - 'spec/requests/api/internal/base_spec.rb' + - 'spec/requests/api/maven_packages_spec.rb' + - 'spec/requests/api/merge_requests_spec.rb' + - 'spec/requests/api/project_export_spec.rb' + - 'spec/requests/api/project_import_spec.rb' + - 'spec/requests/api/projects_spec.rb' + - 'spec/requests/api/snippets_spec.rb' + - 'spec/requests/api/todos_spec.rb' + - 'spec/requests/git_http_spec.rb' + - 'spec/requests/import/gitlab_projects_controller_spec.rb' + - 'spec/routing/routing_spec.rb' + - 'spec/serializers/merge_request_poll_cached_widget_entity_spec.rb' + - 'spec/serializers/merge_request_poll_widget_entity_spec.rb' + - 'spec/services/application_settings/update_service_spec.rb' + - 'spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb' + - 'spec/services/ci/create_pipeline_service_spec.rb' + - 'spec/services/ci/register_job_service_spec.rb' + - 'spec/services/ci/resource_groups/assign_resource_from_resource_group_service_spec.rb' + - 'spec/services/ci/retry_pipeline_service_spec.rb' + - 'spec/services/clusters/cleanup/project_namespace_service_spec.rb' + - 'spec/services/clusters/cleanup/service_account_service_spec.rb' + - 'spec/services/deployments/older_deployments_drop_service_spec.rb' + - 'spec/services/deployments/update_environment_service_spec.rb' + - 'spec/services/draft_notes/destroy_service_spec.rb' + - 'spec/services/events/render_service_spec.rb' + - 'spec/services/git/branch_push_service_spec.rb' + - 'spec/services/git/process_ref_changes_service_spec.rb' + - 'spec/services/groups/create_service_spec.rb' + - 'spec/services/groups/update_service_spec.rb' + - 'spec/services/issuable/destroy_service_spec.rb' + - 'spec/services/issues/close_service_spec.rb' + - 'spec/services/issues/reopen_service_spec.rb' + - 'spec/services/members/destroy_service_spec.rb' + - 'spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb' + - 'spec/services/merge_requests/build_service_spec.rb' + - 'spec/services/merge_requests/merge_service_spec.rb' + - 'spec/services/merge_requests/mergeability_check_service_spec.rb' + - 'spec/services/merge_requests/refresh_service_spec.rb' + - 'spec/services/merge_requests/reload_diffs_service_spec.rb' + - 'spec/services/merge_requests/resolved_discussion_notification_service_spec.rb' + - 'spec/services/metrics/dashboard/custom_dashboard_service_spec.rb' + - 'spec/services/metrics/dashboard/transient_embed_service_spec.rb' + - 'spec/services/notes/create_service_spec.rb' + - 'spec/services/notes/render_service_spec.rb' + - 'spec/services/packages/conan/create_package_file_service_spec.rb' + - 'spec/services/packages/nuget/metadata_extraction_service_spec.rb' + - 'spec/services/post_receive_service_spec.rb' + - 'spec/services/projects/after_rename_service_spec.rb' + - 'spec/services/projects/container_repository/delete_tags_service_spec.rb' + - 'spec/services/projects/container_repository/gitlab/delete_tags_service_spec.rb' + - 'spec/services/projects/container_repository/third_party/delete_tags_service_spec.rb' + - 'spec/services/projects/destroy_service_spec.rb' + - 'spec/services/projects/fork_service_spec.rb' + - 'spec/services/projects/import_service_spec.rb' + - 'spec/services/projects/lfs_pointers/lfs_download_service_spec.rb' + - 'spec/services/projects/lfs_pointers/lfs_object_download_list_service_spec.rb' + - 'spec/services/projects/transfer_service_spec.rb' + - 'spec/services/projects/update_remote_mirror_service_spec.rb' + - 'spec/services/projects/update_service_spec.rb' + - 'spec/services/projects/update_statistics_service_spec.rb' + - 'spec/services/resource_events/change_labels_service_spec.rb' + - 'spec/services/search_service_spec.rb' + - 'spec/services/snippets/create_service_spec.rb' + - 'spec/services/todo_service_spec.rb' + - 'spec/services/users/destroy_service_spec.rb' + - 'spec/spec_helper.rb' + - 'spec/support/capybara.rb' + - 'spec/support/helpers/api_helpers.rb' + - 'spec/support/helpers/graphql_helpers.rb' + - 'spec/support/helpers/ldap_helpers.rb' + - 'spec/support/helpers/login_helpers.rb' + - 'spec/support/helpers/metrics_dashboard_url_helpers.rb' + - 'spec/support/helpers/rake_helpers.rb' + - 'spec/support/helpers/stub_configuration.rb' + - 'spec/support/helpers/stub_gitlab_calls.rb' + - 'spec/support/import_export/common_util.rb' + - 'spec/support/services/migrate_to_ghost_user_service_shared_examples.rb' + - 'spec/support/shared_contexts/email_shared_context.rb' + - 'spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb' + - 'spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb' + - 'spec/support/shared_examples/controllers/issuable_notes_filter_shared_examples.rb' + - 'spec/support/shared_examples/controllers/issuables_requiring_filter_shared_examples.rb' + - 'spec/support/shared_examples/controllers/repository_lfs_file_load_shared_examples.rb' + - 'spec/support/shared_examples/controllers/set_sort_order_from_user_preference_shared_examples.rb' + - 'spec/support/shared_examples/controllers/update_invalid_issuable_shared_examples.rb' + - 'spec/support/shared_examples/controllers/uploads_actions_shared_examples.rb' + - 'spec/support/shared_examples/features/archive_download_buttons_shared_examples.rb' + - 'spec/support/shared_examples/features/snippets_shared_examples.rb' + - 'spec/support/shared_examples/lib/gitlab/ci/ci_trace_shared_examples.rb' + - 'spec/support/shared_examples/models/atomic_internal_id_shared_examples.rb' + - 'spec/support/shared_examples/models/diff_note_after_commit_shared_examples.rb' + - 'spec/support/shared_examples/models/integrations/base_slash_commands_shared_examples.rb' + - 'spec/support/shared_examples/models/mentionable_shared_examples.rb' + - 'spec/support/shared_examples/models/with_uploads_shared_examples.rb' + - 'spec/support/shared_examples/path_extraction_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/discussions_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/snippets_shared_examples.rb' + - 'spec/support/shared_examples/requests/rack_attack_shared_examples.rb' + - 'spec/support/shared_examples/requests/snippet_shared_examples.rb' + - 'spec/support/shared_examples/services/boards/issues_list_service_shared_examples.rb' + - 'spec/support/shared_examples/services/boards/issues_move_service_shared_examples.rb' + - 'spec/support/shared_examples/services/issuable_shared_examples.rb' + - 'spec/support/shared_examples/uploaders/object_storage_shared_examples.rb' + - 'spec/support/shared_examples/workers/authorized_projects_worker_shared_example.rb' + - 'spec/support/shared_examples/workers/reactive_cacheable_shared_examples.rb' + - 'spec/tasks/gitlab/cleanup_rake_spec.rb' + - 'spec/tasks/gitlab/container_registry_rake_spec.rb' + - 'spec/tasks/gitlab/db_rake_spec.rb' + - 'spec/tasks/gitlab/praefect_rake_spec.rb' + - 'spec/tasks/gitlab/shell_rake_spec.rb' + - 'spec/tasks/gitlab/x509/update_rake_spec.rb' + - 'spec/uploaders/file_mover_spec.rb' + - 'spec/uploaders/records_uploads_spec.rb' + - 'spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb' + - 'spec/views/layouts/_head.html.haml_spec.rb' + - 'spec/workers/build_hooks_worker_spec.rb' + - 'spec/workers/ci/build_schedule_worker_spec.rb' + - 'spec/workers/ci/daily_build_group_report_results_worker_spec.rb' + - 'spec/workers/cluster_provision_worker_spec.rb' + - 'spec/workers/clusters/cleanup/project_namespace_worker_spec.rb' + - 'spec/workers/clusters/cleanup/service_account_worker_spec.rb' + - 'spec/workers/concerns/project_import_options_spec.rb' + - 'spec/workers/create_commit_signature_worker_spec.rb' + - 'spec/workers/create_note_diff_file_worker_spec.rb' + - 'spec/workers/delete_diff_files_worker_spec.rb' + - 'spec/workers/email_receiver_worker_spec.rb' + - 'spec/workers/emails_on_push_worker_spec.rb' + - 'spec/workers/error_tracking_issue_link_worker_spec.rb' + - 'spec/workers/group_export_worker_spec.rb' + - 'spec/workers/group_import_worker_spec.rb' + - 'spec/workers/namespaces/root_statistics_worker_spec.rb' + - 'spec/workers/new_note_worker_spec.rb' + - 'spec/workers/object_pool/create_worker_spec.rb' + - 'spec/workers/packages/nuget/extraction_worker_spec.rb' + - 'spec/workers/pipeline_process_worker_spec.rb' + - 'spec/workers/pipeline_schedule_worker_spec.rb' + - 'spec/workers/project_cache_worker_spec.rb' + - 'spec/workers/stage_update_worker_spec.rb' + - 'spec/workers/wait_for_cluster_creation_worker_spec.rb' diff --git a/.rubocop_todo/rspec/context_wording.yml b/.rubocop_todo/rspec/context_wording.yml index 5e9e80402b4..523cc1bfad9 100644 --- a/.rubocop_todo/rspec/context_wording.yml +++ b/.rubocop_todo/rspec/context_wording.yml @@ -1,7 +1,6 @@ --- RSpec/ContextWording: Exclude: - - 'ee/spec/components/namespaces/free_user_cap/personal_usage_quota_limitations_alert_component_spec.rb' - 'ee/spec/controllers/admin/application_settings_controller_spec.rb' - 'ee/spec/controllers/admin/audit_logs_controller_spec.rb' - 'ee/spec/controllers/admin/dev_ops_report_controller_spec.rb' @@ -11,7 +10,6 @@ RSpec/ContextWording: - 'ee/spec/controllers/admin/push_rules_controller_spec.rb' - 'ee/spec/controllers/admin/users_controller_spec.rb' - 'ee/spec/controllers/autocomplete_controller_spec.rb' - - 'ee/spec/controllers/boards/lists_controller_spec.rb' - 'ee/spec/controllers/dashboard_controller_spec.rb' - 'ee/spec/controllers/ee/groups/variables_controller_spec.rb' - 'ee/spec/controllers/ee/groups_controller_spec.rb' @@ -24,7 +22,6 @@ RSpec/ContextWording: - 'ee/spec/controllers/groups/analytics/cycle_analytics_controller_spec.rb' - 'ee/spec/controllers/groups/audit_events_controller_spec.rb' - 'ee/spec/controllers/groups/billings_controller_spec.rb' - - 'ee/spec/controllers/groups/boards_controller_spec.rb' - 'ee/spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb' - 'ee/spec/controllers/groups/epic_boards_controller_spec.rb' - 'ee/spec/controllers/groups/epics/notes_controller_spec.rb' @@ -36,7 +33,6 @@ RSpec/ContextWording: - 'ee/spec/controllers/groups/push_rules_controller_spec.rb' - 'ee/spec/controllers/groups/saml_providers_controller_spec.rb' - 'ee/spec/controllers/groups/scim_oauth_controller_spec.rb' - - 'ee/spec/controllers/groups/security/merge_commit_reports_controller_spec.rb' - 'ee/spec/controllers/groups/sso_controller_spec.rb' - 'ee/spec/controllers/ldap/omniauth_callbacks_controller_spec.rb' - 'ee/spec/controllers/oauth/applications_controller_spec.rb' @@ -44,7 +40,6 @@ RSpec/ContextWording: - 'ee/spec/controllers/operations_controller_spec.rb' - 'ee/spec/controllers/profiles_controller_spec.rb' - 'ee/spec/controllers/projects/audit_events_controller_spec.rb' - - 'ee/spec/controllers/projects/boards_controller_spec.rb' - 'ee/spec/controllers/projects/environments_controller_spec.rb' - 'ee/spec/controllers/projects/imports_controller_spec.rb' - 'ee/spec/controllers/projects/incident_management/escalation_policies_controller_spec.rb' @@ -115,18 +110,15 @@ RSpec/ContextWording: - 'ee/spec/features/groups/group_settings_spec.rb' - 'ee/spec/features/groups/groups_security_credentials_spec.rb' - 'ee/spec/features/groups/issues_spec.rb' - - 'ee/spec/features/groups/iteration_spec.rb' - 'ee/spec/features/groups/iterations/user_edits_iteration_spec.rb' - 'ee/spec/features/groups/ldap_group_links_spec.rb' - 'ee/spec/features/groups/members/manage_groups_spec.rb' - - 'ee/spec/features/groups/members/manage_members_spec.rb' - 'ee/spec/features/groups/push_rules_spec.rb' - 'ee/spec/features/groups/saml_enforcement_spec.rb' - 'ee/spec/features/groups/saml_providers_spec.rb' - 'ee/spec/features/groups/security/compliance_dashboards_spec.rb' - 'ee/spec/features/groups/sso_spec.rb' - 'ee/spec/features/groups_spec.rb' - - 'ee/spec/features/ide/user_commits_changes_spec.rb' - 'ee/spec/features/ide/user_opens_ide_spec.rb' - 'ee/spec/features/issues/epic_in_issue_sidebar_spec.rb' - 'ee/spec/features/issues/filtered_search/filter_issues_by_iteration_spec.rb' @@ -180,9 +172,7 @@ RSpec/ContextWording: - 'ee/spec/features/projects/settings/push_rules_settings_spec.rb' - 'ee/spec/features/promotion_spec.rb' - 'ee/spec/features/protected_branches_spec.rb' - - 'ee/spec/features/registrations/saas_user_registration_spec.rb' - 'ee/spec/features/registrations/welcome_spec.rb' - - 'ee/spec/features/search/elastic/global_search_spec.rb' - 'ee/spec/features/signup_spec.rb' - 'ee/spec/features/trial_registrations/company_information_spec.rb' - 'ee/spec/features/trials/select_namespace_spec.rb' @@ -289,7 +279,6 @@ RSpec/ContextWording: - 'ee/spec/helpers/ee/gitlab_routing_helper_spec.rb' - 'ee/spec/helpers/ee/groups/group_members_helper_spec.rb' - 'ee/spec/helpers/ee/groups_helper_spec.rb' - - 'ee/spec/helpers/ee/integrations_helper_spec.rb' - 'ee/spec/helpers/ee/issuables_helper_spec.rb' - 'ee/spec/helpers/ee/issues_helper_spec.rb' - 'ee/spec/helpers/ee/lock_helper_spec.rb' @@ -318,7 +307,6 @@ RSpec/ContextWording: - 'ee/spec/lib/banzai/reference_parser/iteration_parser_spec.rb' - 'ee/spec/lib/container_registry/client_spec.rb' - 'ee/spec/lib/ee/api/entities/analytics/group_activity_spec.rb' - - 'ee/spec/lib/ee/api/entities/billable_member_spec.rb' - 'ee/spec/lib/ee/api/entities/geo_node_status_spec.rb' - 'ee/spec/lib/ee/api/entities/project_spec.rb' - 'ee/spec/lib/ee/api/entities/user_with_admin_spec.rb' @@ -378,23 +366,17 @@ RSpec/ContextWording: - 'ee/spec/lib/gitlab/auth/smartcard/ldap_certificate_spec.rb' - 'ee/spec/lib/gitlab/auth/smartcard/san_extension_spec.rb' - 'ee/spec/lib/gitlab/checks/diff_check_spec.rb' - - 'ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb' - 'ee/spec/lib/gitlab/ci/minutes/runners_availability_spec.rb' - 'ee/spec/lib/gitlab/ci/pipeline/chain/create_cross_database_associations_spec.rb' - 'ee/spec/lib/gitlab/ci/reports/dependency_list/dependency_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/Jobs/dast_default_branch_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/api_security_gitlab_ci_yaml_spec.rb' - - 'ee/spec/lib/gitlab/ci/templates/api_security_latest_gitlab_ci_yaml_spec.rb' - - 'ee/spec/lib/gitlab/ci/templates/container_scanning_gitlab_ci_yaml_spec.rb' - - 'ee/spec/lib/gitlab/ci/templates/coverage_fuzzing_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/dast_api_gitlab_ci_yaml_spec.rb' - - 'ee/spec/lib/gitlab/ci/templates/dast_api_latest_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/dast_latest_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/dependency_scanning_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/license_scanning_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/sast_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/sast_iac_gitlab_ci_yaml_spec.rb' - - 'ee/spec/lib/gitlab/ci/templates/sast_iac_latest_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/sast_latest_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/templates/secret_detection_gitlab_ci_yaml_spec.rb' - 'ee/spec/lib/gitlab/ci/yaml_processor_spec.rb' @@ -438,7 +420,6 @@ RSpec/ContextWording: - 'ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb' - 'ee/spec/lib/gitlab/insights/project_insights_config_spec.rb' - 'ee/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb' - - 'ee/spec/lib/gitlab/pagination_delegate_spec.rb' - 'ee/spec/lib/gitlab/search/aggregation_parser_spec.rb' - 'ee/spec/lib/gitlab/sitemaps/url_extractor_spec.rb' - 'ee/spec/lib/gitlab/slash_commands/presenters/issue_show_spec.rb' @@ -546,7 +527,6 @@ RSpec/ContextWording: - 'ee/spec/models/project_spec.rb' - 'ee/spec/models/project_team_spec.rb' - 'ee/spec/models/protected_environment_spec.rb' - - 'ee/spec/models/protected_environments/approval_summary_spec.rb' - 'ee/spec/models/push_rule_spec.rb' - 'ee/spec/models/release_highlight_spec.rb' - 'ee/spec/models/requirements_management/test_report_spec.rb' @@ -670,7 +650,6 @@ RSpec/ContextWording: - 'ee/spec/requests/git_http_geo_spec.rb' - 'ee/spec/requests/groups/roadmap_controller_spec.rb' - 'ee/spec/requests/groups/security/credentials_controller_spec.rb' - - 'ee/spec/requests/groups/settings/reporting_controller_spec.rb' - 'ee/spec/requests/groups_controller_spec.rb' - 'ee/spec/requests/jwt_controller_spec.rb' - 'ee/spec/requests/projects/on_demand_scans_controller_spec.rb' @@ -687,7 +666,6 @@ RSpec/ContextWording: - 'ee/spec/routing/user_routing_spec.rb' - 'ee/spec/serializers/analytics/cycle_analytics/value_stream_errors_serializer_spec.rb' - 'ee/spec/serializers/blocking_merge_request_entity_spec.rb' - - 'ee/spec/serializers/board_serializer_spec.rb' - 'ee/spec/serializers/clusters/environment_entity_spec.rb' - 'ee/spec/serializers/dashboard_operations_project_entity_spec.rb' - 'ee/spec/serializers/ee/group_child_entity_spec.rb' @@ -743,10 +721,8 @@ RSpec/ContextWording: - 'ee/spec/services/ee/ip_restrictions/update_service_spec.rb' - 'ee/spec/services/ee/issuable/bulk_update_service_spec.rb' - 'ee/spec/services/ee/issues/clone_service_spec.rb' - - 'ee/spec/services/ee/issues/close_service_spec.rb' - 'ee/spec/services/ee/issues/create_service_spec.rb' - 'ee/spec/services/ee/issues/move_service_spec.rb' - - 'ee/spec/services/ee/issues/reopen_service_spec.rb' - 'ee/spec/services/ee/issues/update_service_spec.rb' - 'ee/spec/services/ee/keys/destroy_service_spec.rb' - 'ee/spec/services/ee/members/create_service_spec.rb' @@ -769,8 +745,6 @@ RSpec/ContextWording: - 'ee/spec/services/ee/resource_events/merge_into_notes_service_spec.rb' - 'ee/spec/services/ee/users/build_service_spec.rb' - 'ee/spec/services/ee/users/create_service_spec.rb' - - 'ee/spec/services/ee/users/destroy_service_spec.rb' - - 'ee/spec/services/ee/users/migrate_to_ghost_user_service_spec.rb' - 'ee/spec/services/ee/users/reject_service_spec.rb' - 'ee/spec/services/ee/users/update_service_spec.rb' - 'ee/spec/services/ee/vulnerability_feedback_module/update_service_spec.rb' @@ -792,7 +766,6 @@ RSpec/ContextWording: - 'ee/spec/services/geo/container_repository_sync_service_spec.rb' - 'ee/spec/services/geo/container_repository_sync_spec.rb' - 'ee/spec/services/geo/design_repository_sync_service_spec.rb' - - 'ee/spec/services/geo/file_registry_removal_service_spec.rb' - 'ee/spec/services/geo/framework_repository_sync_service_spec.rb' - 'ee/spec/services/geo/hashed_storage_migration_service_spec.rb' - 'ee/spec/services/geo/move_repository_service_spec.rb' @@ -804,8 +777,6 @@ RSpec/ContextWording: - 'ee/spec/services/geo/repository_sync_service_spec.rb' - 'ee/spec/services/geo/repository_verification_reset_spec.rb' - 'ee/spec/services/geo/wiki_sync_service_spec.rb' - - 'ee/spec/services/gitlab_subscriptions/activate_awaiting_users_service_spec.rb' - - 'ee/spec/services/gitlab_subscriptions/apply_trial_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/create_hand_raise_lead_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/create_service_spec.rb' - 'ee/spec/services/gitlab_subscriptions/extend_reactivate_trial_service_spec.rb' @@ -830,7 +801,6 @@ RSpec/ContextWording: - 'ee/spec/services/incident_management/pending_escalations/create_service_spec.rb' - 'ee/spec/services/incident_management/pending_escalations/process_service_spec.rb' - 'ee/spec/services/issues/build_service_spec.rb' - - 'ee/spec/services/issues/export_csv_service_spec.rb' - 'ee/spec/services/iterations/cadences/create_service_spec.rb' - 'ee/spec/services/iterations/create_service_spec.rb' - 'ee/spec/services/iterations/update_service_spec.rb' @@ -839,7 +809,6 @@ RSpec/ContextWording: - 'ee/spec/services/members/activate_service_spec.rb' - 'ee/spec/services/merge_commits/export_csv_service_spec.rb' - 'ee/spec/services/merge_request_approval_settings/update_service_spec.rb' - - 'ee/spec/services/merge_requests/approval_service_spec.rb' - 'ee/spec/services/merge_requests/build_service_spec.rb' - 'ee/spec/services/merge_requests/merge_service_spec.rb' - 'ee/spec/services/merge_requests/reload_merge_head_diff_service_spec.rb' @@ -868,14 +837,12 @@ RSpec/ContextWording: - 'ee/spec/services/protected_environments/update_service_spec.rb' - 'ee/spec/services/quick_actions/interpret_service_spec.rb' - 'ee/spec/services/requirements_management/export_csv_service_spec.rb' - - 'ee/spec/services/requirements_management/update_requirement_service_spec.rb' - 'ee/spec/services/resource_access_tokens/create_service_spec.rb' - 'ee/spec/services/resource_access_tokens/revoke_service_spec.rb' - 'ee/spec/services/search/global_service_spec.rb' - 'ee/spec/services/search/group_service_spec.rb' - 'ee/spec/services/search/project_service_spec.rb' - 'ee/spec/services/search/snippet_service_spec.rb' - - 'ee/spec/services/search_service_spec.rb' - 'ee/spec/services/security/dependency_list_service_spec.rb' - 'ee/spec/services/security/ingestion/tasks/ingest_vulnerabilities/create_spec.rb' - 'ee/spec/services/security/ingestion/tasks/update_vulnerability_uuids_spec.rb' @@ -959,7 +926,6 @@ RSpec/ContextWording: - 'ee/spec/views/layouts/nav/sidebar/_group.html.haml_spec.rb' - 'ee/spec/views/layouts/nav/sidebar/_push_rules_link.html.haml_spec.rb' - 'ee/spec/views/profiles/preferences/show.html.haml_spec.rb' - - 'ee/spec/views/projects/edit.html.haml_spec.rb' - 'ee/spec/views/projects/security/discover/show.html.haml_spec.rb' - 'ee/spec/views/registrations/welcome/show.html.haml_spec.rb' - 'ee/spec/views/search/_category.html.haml_spec.rb' @@ -968,7 +934,6 @@ RSpec/ContextWording: - 'ee/spec/views/shared/_mirror_update_button.html.haml_spec.rb' - 'ee/spec/views/shared/credentials_inventory/gpg_keys/_gpg_key.html.haml_spec.rb' - 'ee/spec/views/shared/credentials_inventory/personal_access_tokens/_personal_access_token.html.haml_spec.rb' - - 'ee/spec/views/shared/credentials_inventory/project_access_tokens/_project_access_token.html.haml_spec.rb' - 'ee/spec/views/shared/credentials_inventory/ssh_keys/_ssh_key.html.haml_spec.rb' - 'ee/spec/views/shared/issuable/_sidebar.html.haml_spec.rb' - 'ee/spec/views/subscriptions/groups/edit.html.haml_spec.rb' @@ -1006,60 +971,29 @@ RSpec/ContextWording: - 'ee/spec/workers/sync_seat_link_worker_spec.rb' - 'ee/spec/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker_spec.rb' - 'qa/qa/specs/features/api/1_manage/user_access_termination_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/automatic_failover_and_recovery_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/backend_node_recovery_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/distributed_reads_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/gitaly_mtls_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/praefect_connectivity_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/praefect_dataloss_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/praefect_replication_queue_spec.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/praefect_repo_sync_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/login/2fa_ssh_recovery_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/project/invite_group_to_project_spec.rb' - - 'qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/milestone/assign_milestone_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/suggestions/batch_suggestion_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/suggestions/custom_commit_suggestion_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/file/create_file_via_web_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/file/delete_file_via_web_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/repository/file/edit_file_via_web_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/repository/ssh_key_support_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/server_hooks_custom_error_message_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/content_editor_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_content_creation_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_content_manipulation_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_directory_management_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_list_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/wiki/project_based_page_deletion_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/maven/maven_group_level_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/pypi_repository_spec.rb' - - 'qa/qa/specs/features/browser_ui/7_configure/kubernetes/kubernetes_integration_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/cloud_activation_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/license_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/free_tier_group_namespace_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/purchase_ci_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/purchase_storage_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/http_push_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/http_push_to_secondary_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/ssh_push_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/ssh_push_to_secondary_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/wiki_http_push_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/wiki_ssh_push_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/13_secure/license_compliance_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_2_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_ldap_sync_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/insights/default_insights_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/2_plan/epic/epics_management_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/project_issue_boards_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/3_create/wiki/create_group_wiki_page_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/new_discussion_not_dropping_merge_trains_mr_spec.rb' - 'qa/spec/git/repository_spec.rb' - 'qa/spec/page/element_spec.rb' @@ -1134,7 +1068,6 @@ RSpec/ContextWording: - 'spec/controllers/passwords_controller_spec.rb' - 'spec/controllers/profiles/emails_controller_spec.rb' - 'spec/controllers/profiles/notifications_controller_spec.rb' - - 'spec/controllers/profiles/personal_access_tokens_controller_spec.rb' - 'spec/controllers/projects/alerting/notifications_controller_spec.rb' - 'spec/controllers/projects/artifacts_controller_spec.rb' - 'spec/controllers/projects/badges_controller_spec.rb' @@ -1143,7 +1076,6 @@ RSpec/ContextWording: - 'spec/controllers/projects/boards_controller_spec.rb' - 'spec/controllers/projects/branches_controller_spec.rb' - 'spec/controllers/projects/ci/lints_controller_spec.rb' - - 'spec/controllers/projects/ci/secure_files_controller_spec.rb' - 'spec/controllers/projects/clusters_controller_spec.rb' - 'spec/controllers/projects/commit_controller_spec.rb' - 'spec/controllers/projects/commits_controller_spec.rb' @@ -1175,7 +1107,6 @@ RSpec/ContextWording: - 'spec/controllers/projects/pages_domains_controller_spec.rb' - 'spec/controllers/projects/performance_monitoring/dashboards_controller_spec.rb' - 'spec/controllers/projects/pipelines_controller_spec.rb' - - 'spec/controllers/projects/product_analytics_controller_spec.rb' - 'spec/controllers/projects/project_members_controller_spec.rb' - 'spec/controllers/projects/prometheus/alerts_controller_spec.rb' - 'spec/controllers/projects/prometheus/metrics_controller_spec.rb' @@ -1342,7 +1273,6 @@ RSpec/ContextWording: - 'spec/features/merge_requests/user_lists_merge_requests_spec.rb' - 'spec/features/merge_requests/user_mass_updates_spec.rb' - 'spec/features/milestones/user_views_milestone_spec.rb' - - 'spec/features/monitor_sidebar_link_spec.rb' - 'spec/features/nav/top_nav_responsive_spec.rb' - 'spec/features/oauth_login_spec.rb' - 'spec/features/one_trust_spec.rb' @@ -1481,7 +1411,6 @@ RSpec/ContextWording: - 'spec/finders/license_template_finder_spec.rb' - 'spec/finders/merge_request_target_project_finder_spec.rb' - 'spec/finders/merge_requests/by_approvals_finder_spec.rb' - - 'spec/finders/merge_requests_finder/params_spec.rb' - 'spec/finders/merge_requests_finder_spec.rb' - 'spec/finders/metrics/dashboards/annotations_finder_spec.rb' - 'spec/finders/metrics/users_starred_dashboards_finder_spec.rb' @@ -1519,7 +1448,6 @@ RSpec/ContextWording: - 'spec/frontend/fixtures/search.rb' - 'spec/frontend/fixtures/u2f.rb' - 'spec/frontend/fixtures/webauthn.rb' - - 'spec/graphql/features/feature_flag_spec.rb' - 'spec/graphql/mutations/alert_management/create_alert_issue_spec.rb' - 'spec/graphql/mutations/alert_management/http_integration/create_spec.rb' - 'spec/graphql/mutations/alert_management/http_integration/destroy_spec.rb' @@ -1630,7 +1558,6 @@ RSpec/ContextWording: - 'spec/helpers/routing/pseudonymization_helper_spec.rb' - 'spec/helpers/search_helper_spec.rb' - 'spec/helpers/sorting_helper_spec.rb' - - 'spec/helpers/storage_helper_spec.rb' - 'spec/helpers/submodule_helper_spec.rb' - 'spec/helpers/timeboxes_helper_spec.rb' - 'spec/helpers/todos_helper_spec.rb' @@ -1752,10 +1679,7 @@ RSpec/ContextWording: - 'spec/lib/container_registry/migration_spec.rb' - 'spec/lib/container_registry/registry_spec.rb' - 'spec/lib/container_registry/tag_spec.rb' - - 'spec/lib/error_tracking/sentry_client/event_spec.rb' - - 'spec/lib/error_tracking/sentry_client/issue_link_spec.rb' - 'spec/lib/error_tracking/sentry_client/projects_spec.rb' - - 'spec/lib/error_tracking/sentry_client/repo_spec.rb' - 'spec/lib/expand_variables_spec.rb' - 'spec/lib/extracts_path_spec.rb' - 'spec/lib/extracts_ref_spec.rb' @@ -1792,7 +1716,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/avatar_cache_spec.rb' - 'spec/lib/gitlab/background_migration/backfill_ci_queuing_tables_spec.rb' - 'spec/lib/gitlab/background_migration/backfill_imported_issue_search_data_spec.rb' - - 'spec/lib/gitlab/background_migration/batching_strategies/primary_key_batching_strategy_spec.rb' - 'spec/lib/gitlab/background_migration/cleanup_draft_data_from_faulty_regex_spec.rb' - 'spec/lib/gitlab/background_migration/copy_column_using_background_migration_job_spec.rb' - 'spec/lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images_spec.rb' @@ -1983,8 +1906,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/error_tracking/processor/sidekiq_processor_spec.rb' - 'spec/lib/gitlab/error_tracking_spec.rb' - 'spec/lib/gitlab/exclusive_lease_helpers/sleeping_lock_spec.rb' - - 'spec/lib/gitlab/experimentation/controller_concern_spec.rb' - - 'spec/lib/gitlab/experimentation_spec.rb' - 'spec/lib/gitlab/external_authorization/access_spec.rb' - 'spec/lib/gitlab/favicon_spec.rb' - 'spec/lib/gitlab/file_hook_spec.rb' @@ -1999,7 +1920,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/git/commit_spec.rb' - 'spec/lib/gitlab/git/compare_spec.rb' - 'spec/lib/gitlab/git/conflict/parser_spec.rb' - - 'spec/lib/gitlab/git/cross_repo_comparer_spec.rb' - 'spec/lib/gitlab/git/diff_collection_spec.rb' - 'spec/lib/gitlab/git/diff_spec.rb' - 'spec/lib/gitlab/git/merge_base_spec.rb' @@ -2076,9 +1996,7 @@ RSpec/ContextWording: - 'spec/lib/gitlab/import_export/project/tree_restorer_spec.rb' - 'spec/lib/gitlab/import_export/project/tree_saver_spec.rb' - 'spec/lib/gitlab/import_export/version_checker_spec.rb' - - 'spec/lib/gitlab/incoming_email_spec.rb' - 'spec/lib/gitlab/instrumentation/redis_base_spec.rb' - - 'spec/lib/gitlab/instrumentation/redis_cluster_validator_spec.rb' - 'spec/lib/gitlab/instrumentation_helper_spec.rb' - 'spec/lib/gitlab/internal_post_receive/response_spec.rb' - 'spec/lib/gitlab/issuable/clone/attributes_rewriter_spec.rb' @@ -2115,7 +2033,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/metrics/dashboard/validator/post_schema_validator_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/validator_spec.rb' - 'spec/lib/gitlab/metrics/exporter/base_exporter_spec.rb' - - 'spec/lib/gitlab/metrics/method_call_spec.rb' - 'spec/lib/gitlab/metrics/methods_spec.rb' - 'spec/lib/gitlab/metrics/requests_rack_middleware_spec.rb' - 'spec/lib/gitlab/metrics/samplers/threads_sampler_spec.rb' @@ -2179,7 +2096,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/search/sort_options_spec.rb' - 'spec/lib/gitlab/search_context/controller_concern_spec.rb' - 'spec/lib/gitlab/search_results_spec.rb' - - 'spec/lib/gitlab/service_desk_email_spec.rb' - 'spec/lib/gitlab/sidekiq_config/worker_router_spec.rb' - 'spec/lib/gitlab/sidekiq_daemon/memory_killer_spec.rb' - 'spec/lib/gitlab/sidekiq_logging/json_formatter_spec.rb' @@ -2207,7 +2123,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/spamcheck/client_spec.rb' - 'spec/lib/gitlab/ssh_public_key_spec.rb' - 'spec/lib/gitlab/submodule_links_spec.rb' - - 'spec/lib/gitlab/subscription_portal_spec.rb' - 'spec/lib/gitlab/suggestions/commit_message_spec.rb' - 'spec/lib/gitlab/template/finders/global_template_finder_spec.rb' - 'spec/lib/gitlab/time_tracking_formatter_spec.rb' @@ -2223,7 +2138,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/url_sanitizer_spec.rb' - 'spec/lib/gitlab/usage/metric_definition_spec.rb' - 'spec/lib/gitlab/usage/metric_spec.rb' - - 'spec/lib/gitlab/usage/metrics/aggregates/aggregate_spec.rb' - 'spec/lib/gitlab/usage/metrics/aggregates/sources/postgres_hll_spec.rb' - 'spec/lib/gitlab/usage/metrics/instrumentations/redis_hll_metric_spec.rb' - 'spec/lib/gitlab/usage/metrics/instrumentations/redis_metric_spec.rb' @@ -2232,7 +2146,6 @@ RSpec/ContextWording: - 'spec/lib/gitlab/usage/service_ping/payload_keys_processor_spec.rb' - 'spec/lib/gitlab/usage/service_ping_report_spec.rb' - 'spec/lib/gitlab/usage_data/topology_spec.rb' - - 'spec/lib/gitlab/usage_data_counters/ci_template_unique_counter_spec.rb' - 'spec/lib/gitlab/usage_data_counters/hll_redis_counter_spec.rb' - 'spec/lib/gitlab/usage_data_counters/ipynb_diff_activity_counter_spec.rb' - 'spec/lib/gitlab/usage_data_counters/kubernetes_agent_counter_spec.rb' @@ -2360,7 +2273,6 @@ RSpec/ContextWording: - 'spec/models/concerns/ci/artifactable_spec.rb' - 'spec/models/concerns/ci/has_ref_spec.rb' - 'spec/models/concerns/ci/has_status_spec.rb' - - 'spec/models/concerns/cross_database_modification_spec.rb' - 'spec/models/concerns/deployment_platform_spec.rb' - 'spec/models/concerns/ignorable_columns_spec.rb' - 'spec/models/concerns/issuable_spec.rb' @@ -2397,13 +2309,11 @@ RSpec/ContextWording: - 'spec/models/environment_status_spec.rb' - 'spec/models/error_tracking/error_spec.rb' - 'spec/models/event_spec.rb' - - 'spec/models/experiment_spec.rb' - 'spec/models/external_pull_request_spec.rb' - 'spec/models/gpg_key_spec.rb' - 'spec/models/grafana_integration_spec.rb' - 'spec/models/group_label_spec.rb' - 'spec/models/group_spec.rb' - - 'spec/models/hooks/active_hook_filter_spec.rb' - 'spec/models/hooks/project_hook_spec.rb' - 'spec/models/hooks/system_hook_spec.rb' - 'spec/models/identity_spec.rb' @@ -2429,7 +2339,6 @@ RSpec/ContextWording: - 'spec/models/integrations/microsoft_teams_spec.rb' - 'spec/models/integrations/pipelines_email_spec.rb' - 'spec/models/integrations/prometheus_spec.rb' - - 'spec/models/integrations/slack_spec.rb' - 'spec/models/integrations/teamcity_spec.rb' - 'spec/models/internal_id_spec.rb' - 'spec/models/issue/metrics_spec.rb' @@ -2446,7 +2355,6 @@ RSpec/ContextWording: - 'spec/models/merge_request_assignee_spec.rb' - 'spec/models/merge_request_diff_file_spec.rb' - 'spec/models/merge_request_diff_spec.rb' - - 'spec/models/merge_request_reviewer_spec.rb' - 'spec/models/merge_request_spec.rb' - 'spec/models/metrics/dashboard/annotation_spec.rb' - 'spec/models/metrics/users_starred_dashboard_spec.rb' @@ -2610,7 +2518,6 @@ RSpec/ContextWording: - 'spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb' - 'spec/requests/api/graphql/mutations/alert_management/alerts/todo/create_spec.rb' - 'spec/requests/api/graphql/mutations/boards/issues/issue_move_list_spec.rb' - - 'spec/requests/api/graphql/mutations/branches/create_spec.rb' - 'spec/requests/api/graphql/mutations/ci/runners_registration_token/reset_spec.rb' - 'spec/requests/api/graphql/mutations/commits/create_spec.rb' - 'spec/requests/api/graphql/mutations/custom_emoji/destroy_spec.rb' @@ -2620,19 +2527,16 @@ RSpec/ContextWording: - 'spec/requests/api/graphql/mutations/issues/set_crm_contacts_spec.rb' - 'spec/requests/api/graphql/mutations/issues/update_spec.rb' - 'spec/requests/api/graphql/mutations/merge_requests/create_spec.rb' - - 'spec/requests/api/graphql/mutations/merge_requests/request_attention_spec.rb' - 'spec/requests/api/graphql/mutations/notes/create/diff_note_spec.rb' - 'spec/requests/api/graphql/mutations/releases/create_spec.rb' - 'spec/requests/api/graphql/mutations/releases/delete_spec.rb' - 'spec/requests/api/graphql/mutations/releases/update_spec.rb' - - 'spec/requests/api/graphql/mutations/remove_attention_request_spec.rb' - 'spec/requests/api/graphql/mutations/todos/create_spec.rb' - 'spec/requests/api/graphql/mutations/work_items/create_from_task_spec.rb' - 'spec/requests/api/graphql/mutations/work_items/create_spec.rb' - 'spec/requests/api/graphql/mutations/work_items/delete_task_spec.rb' - 'spec/requests/api/graphql/mutations/work_items/update_spec.rb' - 'spec/requests/api/graphql/mutations/work_items/update_task_spec.rb' - - 'spec/requests/api/graphql/mutations/work_items/update_widgets_spec.rb' - 'spec/requests/api/graphql/namespace_query_spec.rb' - 'spec/requests/api/graphql/packages/maven_spec.rb' - 'spec/requests/api/graphql/packages/package_spec.rb' @@ -2643,7 +2547,6 @@ RSpec/ContextWording: - 'spec/requests/api/graphql/project/issue/design_collection/version_spec.rb' - 'spec/requests/api/graphql/project/issue/designs/designs_spec.rb' - 'spec/requests/api/graphql/project/issue_spec.rb' - - 'spec/requests/api/graphql/project/issues_spec.rb' - 'spec/requests/api/graphql/project/jira_import_spec.rb' - 'spec/requests/api/graphql/project/merge_request/diff_notes_spec.rb' - 'spec/requests/api/graphql/project/milestones_spec.rb' @@ -2720,7 +2623,6 @@ RSpec/ContextWording: - 'spec/requests/api/terraform/state_version_spec.rb' - 'spec/requests/api/todos_spec.rb' - 'spec/requests/api/usage_data_spec.rb' - - 'spec/requests/api/user_counts_spec.rb' - 'spec/requests/api/users_preferences_spec.rb' - 'spec/requests/api/users_spec.rb' - 'spec/requests/api/v3/github_spec.rb' @@ -2744,8 +2646,6 @@ RSpec/ContextWording: - 'spec/requests/mailgun/webhooks_controller_spec.rb' - 'spec/requests/oauth_tokens_spec.rb' - 'spec/requests/openid_connect_spec.rb' - - 'spec/requests/product_analytics/collector_app_attack_spec.rb' - - 'spec/requests/product_analytics/collector_app_spec.rb' - 'spec/requests/projects/clusters/integrations_controller_spec.rb' - 'spec/requests/projects/commits_controller_spec.rb' - 'spec/requests/projects/google_cloud/configuration_controller_spec.rb' @@ -2795,12 +2695,10 @@ RSpec/ContextWording: - 'spec/rubocop/cop/rspec/factory_bot/inline_association_spec.rb' - 'spec/scripts/pipeline_test_report_builder_spec.rb' - 'spec/serializers/analytics_build_entity_spec.rb' - - 'spec/serializers/board_serializer_spec.rb' - 'spec/serializers/ci/pipeline_entity_spec.rb' - 'spec/serializers/cluster_application_entity_spec.rb' - 'spec/serializers/deploy_keys/basic_deploy_key_entity_spec.rb' - 'spec/serializers/diff_file_base_entity_spec.rb' - - 'spec/serializers/diff_file_entity_spec.rb' - 'spec/serializers/diffs_entity_spec.rb' - 'spec/serializers/environment_entity_spec.rb' - 'spec/serializers/environment_serializer_spec.rb' @@ -2811,8 +2709,6 @@ RSpec/ContextWording: - 'spec/serializers/member_serializer_spec.rb' - 'spec/serializers/merge_request_diff_entity_spec.rb' - 'spec/serializers/merge_request_serializer_spec.rb' - - 'spec/serializers/merge_request_user_entity_spec.rb' - - 'spec/serializers/paginated_diff_entity_spec.rb' - 'spec/serializers/pipeline_details_entity_spec.rb' - 'spec/serializers/user_serializer_spec.rb' - 'spec/services/access_token_validation_service_spec.rb' @@ -2838,7 +2734,6 @@ RSpec/ContextWording: - 'spec/services/ci/create_pipeline_service/cache_spec.rb' - 'spec/services/ci/create_pipeline_service/custom_config_content_spec.rb' - 'spec/services/ci/create_pipeline_service/include_spec.rb' - - 'spec/services/ci/create_pipeline_service/logger_spec.rb' - 'spec/services/ci/create_pipeline_service/merge_requests_spec.rb' - 'spec/services/ci/create_pipeline_service/needs_spec.rb' - 'spec/services/ci/create_pipeline_service/parallel_spec.rb' @@ -2865,13 +2760,7 @@ RSpec/ContextWording: - 'spec/services/clusters/agent_tokens/track_usage_service_spec.rb' - 'spec/services/clusters/agents/delete_expired_events_service_spec.rb' - 'spec/services/clusters/agents/refresh_authorization_service_spec.rb' - - 'spec/services/clusters/applications/check_uninstall_progress_service_spec.rb' - - 'spec/services/clusters/applications/create_service_spec.rb' - - 'spec/services/clusters/applications/destroy_service_spec.rb' - 'spec/services/clusters/applications/install_service_spec.rb' - - 'spec/services/clusters/applications/patch_service_spec.rb' - - 'spec/services/clusters/applications/uninstall_service_spec.rb' - - 'spec/services/clusters/applications/update_service_spec.rb' - 'spec/services/clusters/applications/upgrade_service_spec.rb' - 'spec/services/clusters/aws/authorize_role_service_spec.rb' - 'spec/services/clusters/aws/fetch_credentials_service_spec.rb' @@ -2881,7 +2770,6 @@ RSpec/ContextWording: - 'spec/services/clusters/build_kubernetes_namespace_service_spec.rb' - 'spec/services/clusters/create_service_spec.rb' - 'spec/services/clusters/gcp/finalize_creation_service_spec.rb' - - 'spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb' - 'spec/services/clusters/management/validate_management_project_permissions_service_spec.rb' @@ -2942,7 +2830,6 @@ RSpec/ContextWording: - 'spec/services/import/gitlab_projects/file_acquisition_strategies/remote_file_spec.rb' - 'spec/services/incident_management/incidents/create_service_spec.rb' - 'spec/services/incident_management/issuable_escalation_statuses/create_service_spec.rb' - - 'spec/services/incident_management/timeline_events/destroy_service_spec.rb' - 'spec/services/integrations/test/project_service_spec.rb' - 'spec/services/issuable/common_system_notes_service_spec.rb' - 'spec/services/issue_links/list_service_spec.rb' @@ -2974,7 +2861,6 @@ RSpec/ContextWording: - 'spec/services/merge_requests/approval_service_spec.rb' - 'spec/services/merge_requests/base_service_spec.rb' - 'spec/services/merge_requests/build_service_spec.rb' - - 'spec/services/merge_requests/bulk_remove_attention_requested_service_spec.rb' - 'spec/services/merge_requests/cleanup_refs_service_spec.rb' - 'spec/services/merge_requests/close_service_spec.rb' - 'spec/services/merge_requests/create_from_issue_service_spec.rb' @@ -2993,8 +2879,6 @@ RSpec/ContextWording: - 'spec/services/merge_requests/reload_diffs_service_spec.rb' - 'spec/services/merge_requests/reopen_service_spec.rb' - 'spec/services/merge_requests/squash_service_spec.rb' - - 'spec/services/merge_requests/toggle_attention_requested_service_spec.rb' - - 'spec/services/merge_requests/update_assignees_service_spec.rb' - 'spec/services/merge_requests/update_service_spec.rb' - 'spec/services/metrics/dashboard/annotations/create_service_spec.rb' - 'spec/services/metrics/dashboard/annotations/delete_service_spec.rb' @@ -3034,7 +2918,6 @@ RSpec/ContextWording: - 'spec/services/packages/conan/create_package_service_spec.rb' - 'spec/services/packages/create_package_file_service_spec.rb' - 'spec/services/packages/debian/create_distribution_service_spec.rb' - - 'spec/services/packages/debian/create_package_file_service_spec.rb' - 'spec/services/packages/debian/extract_metadata_service_spec.rb' - 'spec/services/packages/debian/find_or_create_incoming_service_spec.rb' - 'spec/services/packages/debian/find_or_create_package_service_spec.rb' @@ -3129,7 +3012,6 @@ RSpec/ContextWording: - 'spec/services/users/approve_service_spec.rb' - 'spec/services/users/ban_service_spec.rb' - 'spec/services/users/destroy_service_spec.rb' - - 'spec/services/users/migrate_to_ghost_user_service_spec.rb' - 'spec/services/users/refresh_authorized_projects_service_spec.rb' - 'spec/services/users/reject_service_spec.rb' - 'spec/services/users/set_status_service_spec.rb' @@ -3285,7 +3167,6 @@ RSpec/ContextWording: - 'spec/support/shared_examples/models/concerns/incident_management/escalatable_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/integrations/slack_mattermost_notifier_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/repository_storage_movable_shared_examples.rb' - - 'spec/support/shared_examples/models/concerns/timebox_shared_examples.rb' - 'spec/support/shared_examples/models/cycle_analytics_stage_shared_examples.rb' - 'spec/support/shared_examples/models/diff_positionable_note_shared_examples.rb' - 'spec/support/shared_examples/models/integrations/base_slash_commands_shared_examples.rb' @@ -3446,7 +3327,6 @@ RSpec/ContextWording: - 'spec/workers/authorized_project_update/user_refresh_over_user_range_worker_spec.rb' - 'spec/workers/ci/build_prepare_worker_spec.rb' - 'spec/workers/cleanup_container_repository_worker_spec.rb' - - 'spec/workers/cluster_update_app_worker_spec.rb' - 'spec/workers/clusters/agents/delete_expired_events_worker_spec.rb' - 'spec/workers/concerns/application_worker_spec.rb' - 'spec/workers/concerns/waitable_worker_spec.rb' diff --git a/.rubocop_todo/rspec/described_class.yml b/.rubocop_todo/rspec/described_class.yml index 516eda12675..0c12b4eb01b 100644 --- a/.rubocop_todo/rspec/described_class.yml +++ b/.rubocop_todo/rspec/described_class.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/DescribedClass: Exclude: - 'ee/spec/controllers/concerns/gitlab_subscriptions/seat_count_alert_spec.rb' @@ -8,7 +8,6 @@ RSpec/DescribedClass: - 'ee/spec/controllers/repositories/git_http_controller_spec.rb' - 'ee/spec/frontend/fixtures/epic.rb' - 'ee/spec/graphql/ee/types/todoable_interface_spec.rb' - - 'ee/spec/lib/ee/gitlab/background_migration/migrate_shared_vulnerability_scanners_spec.rb' - 'ee/spec/lib/ee/gitlab/elastic/helper_spec.rb' - 'ee/spec/lib/ee/gitlab/git_access_snippet_spec.rb' - 'ee/spec/lib/gitlab/auth/saml/config_spec.rb' @@ -63,7 +62,6 @@ RSpec/DescribedClass: - 'ee/spec/models/vulnerabilities/flag_spec.rb' - 'ee/spec/models/vulnerabilities/read_spec.rb' - 'ee/spec/services/arkose/blocked_users_report_service_spec.rb' - - 'ee/spec/services/arkose/user_verification_service_spec.rb' - 'ee/spec/services/ee/resource_events/synthetic_weight_notes_builder_service_spec.rb' - 'ee/spec/services/ee/users/reject_service_spec.rb' - 'ee/spec/services/resource_access_tokens/create_service_spec.rb' @@ -74,7 +72,6 @@ RSpec/DescribedClass: - 'ee/spec/workers/geo/secondary/registry_consistency_worker_spec.rb' - 'ee/spec/workers/geo/verification_state_backfill_worker_spec.rb' - 'qa/spec/service/docker_run/base_spec.rb' - - 'qa/spec/support/formatters/test_stats_formatter_spec.rb' - 'qa/spec/support/loglinking_spec.rb' - 'qa/spec/support/page_error_checker_spec.rb' - 'spec/config/settings_spec.rb' @@ -136,7 +133,6 @@ RSpec/DescribedClass: - 'spec/lib/gitlab/email/hook/smime_signature_interceptor_spec.rb' - 'spec/lib/gitlab/encrypted_configuration_spec.rb' - 'spec/lib/gitlab/error_tracking/logger_spec.rb' - - 'spec/lib/gitlab/experimentation/controller_concern_spec.rb' - 'spec/lib/gitlab/git/blame_spec.rb' - 'spec/lib/gitlab/git/blob_spec.rb' - 'spec/lib/gitlab/git/commit_spec.rb' @@ -205,7 +201,6 @@ RSpec/DescribedClass: - 'spec/models/customer_relations/organization_spec.rb' - 'spec/models/dependency_proxy/manifest_spec.rb' - 'spec/models/deployment_spec.rb' - - 'spec/models/experiment_spec.rb' - 'spec/models/group_spec.rb' - 'spec/models/import_failure_spec.rb' - 'spec/models/integration_spec.rb' @@ -259,7 +254,6 @@ RSpec/DescribedClass: - 'spec/services/auth/dependency_proxy_authentication_service_spec.rb' - 'spec/services/ci/register_job_service_spec.rb' - 'spec/services/incident_management/issuable_escalation_statuses/after_update_service_spec.rb' - - 'spec/services/incident_management/issuable_escalation_statuses/prepare_update_service_spec.rb' - 'spec/services/issuable/process_assignees_spec.rb' - 'spec/services/loose_foreign_keys/cleaner_service_spec.rb' - 'spec/services/merge_requests/update_service_spec.rb' @@ -267,7 +261,6 @@ RSpec/DescribedClass: - 'spec/services/projects/create_service_spec.rb' - 'spec/services/resource_access_tokens/create_service_spec.rb' - 'spec/services/resource_events/synthetic_label_notes_builder_service_spec.rb' - - 'spec/services/service_ping/submit_service_ping_service_spec.rb' - 'spec/services/snippets/update_service_spec.rb' - 'spec/services/system_hooks_service_spec.rb' - 'spec/services/user_project_access_changed_service_spec.rb' diff --git a/.rubocop_todo/rspec/empty_example_group.yml b/.rubocop_todo/rspec/empty_example_group.yml deleted file mode 100644 index 09906638cd8..00000000000 --- a/.rubocop_todo/rspec/empty_example_group.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -RSpec/EmptyExampleGroup: - Exclude: - - 'ee/spec/services/personal_access_tokens/revoke_invalid_tokens_spec.rb' - - 'spec/services/projects/prometheus/alerts/notify_service_spec.rb' diff --git a/.rubocop_todo/rspec/empty_line_after_example_group.yml b/.rubocop_todo/rspec/empty_line_after_example_group.yml index 80d60ee181e..e298b1b89b8 100644 --- a/.rubocop_todo/rspec/empty_line_after_example_group.yml +++ b/.rubocop_todo/rspec/empty_line_after_example_group.yml @@ -1,9 +1,8 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/EmptyLineAfterExampleGroup: Exclude: - 'ee/spec/controllers/groups/clusters_controller_spec.rb' - - 'ee/spec/controllers/groups/groups_controller_spec.rb' - 'ee/spec/features/projects/feature_flags/user_sees_feature_flag_list_spec.rb' - 'ee/spec/features/security/group/private_access_spec.rb' - 'ee/spec/lib/gitlab/vulnerabilities/container_scanning_vulnerability_spec.rb' @@ -15,7 +14,6 @@ RSpec/EmptyLineAfterExampleGroup: - 'ee/spec/services/vulnerabilities/revert_to_detected_service_spec.rb' - 'ee/spec/services/vulnerability_issue_links/create_service_spec.rb' - 'ee/spec/services/vulnerability_issue_links/delete_service_spec.rb' - - 'qa/spec/support/loglinking_spec.rb' - 'spec/controllers/explore/projects_controller_spec.rb' - 'spec/controllers/projects/notes_controller_spec.rb' - 'spec/factories/projects/ci_feature_usages.rb' @@ -27,13 +25,11 @@ RSpec/EmptyLineAfterExampleGroup: - 'spec/lib/bulk_imports/projects/pipelines/issues_pipeline_spec.rb' - 'spec/lib/gitlab/blob_helper_spec.rb' - 'spec/lib/gitlab/file_type_detection_spec.rb' - - 'spec/lib/gitlab/git/repository_spec.rb' - 'spec/lib/gitlab/sidekiq_daemon/memory_killer_spec.rb' - 'spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb' - 'spec/models/note_spec.rb' - 'spec/models/project_feature_spec.rb' - 'spec/models/user_spec.rb' - 'spec/models/zoom_meeting_spec.rb' - - 'spec/requests/api/graphql/project/issues_spec.rb' - 'spec/requests/api/projects_spec.rb' - 'spec/routing/project_routing_spec.rb' diff --git a/.rubocop_todo/rspec/empty_line_after_hook.yml b/.rubocop_todo/rspec/empty_line_after_hook.yml index 125055044de..041eaa1a1a1 100644 --- a/.rubocop_todo/rspec/empty_line_after_hook.yml +++ b/.rubocop_todo/rspec/empty_line_after_hook.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/EmptyLineAfterHook: Exclude: - 'ee/spec/controllers/projects/integrations/zentao/issues_controller_spec.rb' @@ -7,7 +7,6 @@ RSpec/EmptyLineAfterHook: - 'ee/spec/features/issues/user_bulk_edits_issues_spec.rb' - 'ee/spec/features/profiles/usage_quotas_spec.rb' - 'ee/spec/lib/ee/api/entities/user_with_admin_spec.rb' - - 'ee/spec/lib/ee/audit/compliance_framework_changes_auditor_spec.rb' - 'ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb' - 'ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb' - 'ee/spec/lib/gitlab/audit/auditor_spec.rb' @@ -16,17 +15,13 @@ RSpec/EmptyLineAfterHook: - 'ee/spec/models/ee/key_spec.rb' - 'ee/spec/models/project_spec.rb' - 'ee/spec/requests/api/users_spec.rb' - - 'ee/spec/requests/search_controller_spec.rb' - 'ee/spec/services/ci/sync_reports_to_approval_rules_service_spec.rb' - 'ee/spec/services/ee/gpg_keys/destroy_service_spec.rb' - - 'ee/spec/services/ee/two_factor/destroy_service_spec.rb' - 'ee/spec/services/external_status_checks/update_service_spec.rb' - 'ee/spec/services/group_saml/saml_group_links/destroy_service_spec.rb' - 'ee/spec/services/groups/memberships/export_service_spec.rb' - 'ee/spec/services/merge_requests/approval_service_spec.rb' - 'ee/spec/support/shared_examples/policies/protected_environments_shared_examples.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb' - 'qa/spec/specs/helpers/quarantine_spec.rb' - 'qa/spec/support/page_error_checker_spec.rb' - 'spec/controllers/admin/spam_logs_controller_spec.rb' diff --git a/.rubocop_todo/rspec/expect_in_hook.yml b/.rubocop_todo/rspec/expect_in_hook.yml index 70b4105fc89..aa0f5f005d7 100644 --- a/.rubocop_todo/rspec/expect_in_hook.yml +++ b/.rubocop_todo/rspec/expect_in_hook.yml @@ -4,7 +4,6 @@ RSpec/ExpectInHook: - 'ee/spec/controllers/ee/projects/merge_requests/content_controller_spec.rb' - 'ee/spec/controllers/groups/analytics/productivity_analytics_controller_spec.rb' - 'ee/spec/controllers/groups/seat_usage_controller_spec.rb' - - 'ee/spec/controllers/projects/boards_controller_spec.rb' - 'ee/spec/controllers/projects/settings/slacks_controller_spec.rb' - 'ee/spec/controllers/subscriptions_controller_spec.rb' - 'ee/spec/elastic/migrate/20220118150500_delete_orphaned_commits_spec.rb' @@ -14,11 +13,8 @@ RSpec/ExpectInHook: - 'ee/spec/features/projects/feature_flags/user_creates_feature_flag_spec.rb' - 'ee/spec/features/projects/feature_flags/user_deletes_feature_flag_spec.rb' - 'ee/spec/features/projects/settings/ee/service_desk_setting_spec.rb' - - 'ee/spec/features/registrations/saas_user_registration_spec.rb' - - 'ee/spec/features/registrations/trial_during_signup_flow_spec.rb' - 'ee/spec/features/signup_spec.rb' - 'ee/spec/features/trial_registrations/company_information_spec.rb' - - 'ee/spec/features/trials/select_namespace_spec.rb' - 'ee/spec/finders/license_template_finder_spec.rb' - 'ee/spec/finders/projects/integrations/jira/issues_finder_spec.rb' - 'ee/spec/finders/template_finder_spec.rb' @@ -60,7 +56,6 @@ RSpec/ExpectInHook: - 'ee/spec/models/ee/namespace_spec.rb' - 'ee/spec/models/gitlab_subscription_spec.rb' - 'ee/spec/models/license_spec.rb' - - 'ee/spec/models/member_spec.rb' - 'ee/spec/models/project_import_state_spec.rb' - 'ee/spec/models/project_spec.rb' - 'ee/spec/presenters/group_member_presenter_spec.rb' @@ -72,7 +67,6 @@ RSpec/ExpectInHook: - 'ee/spec/services/app_sec/dast/profiles/update_service_spec.rb' - 'ee/spec/services/auto_merge/add_to_merge_train_when_pipeline_succeeds_service_spec.rb' - 'ee/spec/services/ci/minutes/batch_reset_service_spec.rb' - - 'ee/spec/services/ci/runners/assign_runner_service_spec.rb' - 'ee/spec/services/ci/runners/register_runner_service_spec.rb' - 'ee/spec/services/ci/runners/reset_registration_token_service_spec.rb' - 'ee/spec/services/ci/runners/unassign_runner_service_spec.rb' @@ -89,14 +83,12 @@ RSpec/ExpectInHook: - 'ee/spec/services/gitlab_subscriptions/reconciliations/calculate_seat_count_data_service_spec.rb' - 'ee/spec/services/groups/update_repository_storage_service_spec.rb' - 'ee/spec/services/members/await_service_spec.rb' - - 'ee/spec/services/merge_requests/approval_service_spec.rb' - 'ee/spec/services/merge_requests/mergeability/check_approved_service_spec.rb' - 'ee/spec/services/merge_requests/mergeability/check_blocked_by_other_mrs_service_spec.rb' - 'ee/spec/services/merge_requests/mergeability/check_denied_policies_service_spec.rb' - 'ee/spec/services/projects/create_from_template_service_spec.rb' - 'ee/spec/services/projects/mark_for_deletion_service_spec.rb' - 'ee/spec/services/projects/update_mirror_service_spec.rb' - - 'ee/spec/services/security/findings/cleanup_service_spec.rb' - 'ee/spec/services/upcoming_reconciliations/update_service_spec.rb' - 'ee/spec/support/shared_examples/lib/gitlab/graphql/issuables_lazy_links_aggregate_shared_examples.rb' - 'ee/spec/support/shared_examples/models/concerns/elastic/cannot_read_cross_project_shared_examples.rb' @@ -112,16 +104,11 @@ RSpec/ExpectInHook: - 'ee/spec/workers/elastic_remove_expired_namespace_subscriptions_from_index_cron_worker_spec.rb' - 'ee/spec/workers/geo/secondary/registry_consistency_worker_spec.rb' - 'ee/spec/workers/geo/verification_state_backfill_worker_spec.rb' - - 'qa/qa/specs/features/browser_ui/3_create/jira/jira_basic_integration_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/dependency_proxy/dependency_proxy_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/composer_registry_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/generic_repository_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/package_registry/pypi_repository_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/license/cloud_activation_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/12_geo/wiki_http_push_to_secondary_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb' - 'spec/commands/metrics_server/metrics_server_spec.rb' - 'spec/controllers/admin/runners_controller_spec.rb' - 'spec/controllers/autocomplete_controller_spec.rb' @@ -340,7 +327,6 @@ RSpec/ExpectInHook: - 'spec/models/member_spec.rb' - 'spec/models/merge_request_diff_spec.rb' - 'spec/models/merge_request_spec.rb' - - 'spec/models/personal_access_token_spec.rb' - 'spec/models/postgresql/replication_slot_spec.rb' - 'spec/models/project_import_state_spec.rb' - 'spec/models/project_spec.rb' @@ -381,7 +367,6 @@ RSpec/ExpectInHook: - 'spec/requests/api/project_debian_distributions_spec.rb' - 'spec/requests/api/project_packages_spec.rb' - 'spec/requests/api/projects_spec.rb' - - 'spec/requests/api/protected_branches_spec.rb' - 'spec/requests/api/v3/github_spec.rb' - 'spec/requests/health_controller_spec.rb' - 'spec/requests/import/gitlab_groups_controller_spec.rb' @@ -396,25 +381,17 @@ RSpec/ExpectInHook: - 'spec/services/auto_merge/merge_when_pipeline_succeeds_service_spec.rb' - 'spec/services/award_emojis/add_service_spec.rb' - 'spec/services/captcha/captcha_verification_service_spec.rb' - - 'spec/services/ci/create_pipeline_service/logger_spec.rb' - 'spec/services/ci/create_pipeline_service_spec.rb' - 'spec/services/ci/delete_objects_service_spec.rb' - 'spec/services/ci/generate_kubeconfig_service_spec.rb' - 'spec/services/ci/job_artifacts/destroy_all_expired_service_spec.rb' - 'spec/services/ci/job_artifacts/destroy_batch_service_spec.rb' - 'spec/services/ci/register_job_service_spec.rb' - - 'spec/services/clusters/applications/check_installation_progress_service_spec.rb' - - 'spec/services/clusters/applications/check_uninstall_progress_service_spec.rb' - - 'spec/services/clusters/applications/create_service_spec.rb' - 'spec/services/clusters/applications/install_service_spec.rb' - - 'spec/services/clusters/applications/patch_service_spec.rb' - - 'spec/services/clusters/applications/prometheus_update_service_spec.rb' - - 'spec/services/clusters/applications/uninstall_service_spec.rb' - 'spec/services/clusters/applications/upgrade_service_spec.rb' - 'spec/services/clusters/aws/fetch_credentials_service_spec.rb' - 'spec/services/clusters/integrations/prometheus_health_check_service_spec.rb' - 'spec/services/container_expiration_policies/cleanup_service_spec.rb' - - 'spec/services/database/consistency_check_service_spec.rb' - 'spec/services/dependency_proxy/find_cached_manifest_service_spec.rb' - 'spec/services/dependency_proxy/image_ttl_group_policies/update_service_spec.rb' - 'spec/services/design_management/copy_design_collection/copy_service_spec.rb' @@ -464,7 +441,6 @@ RSpec/ExpectInHook: - 'spec/services/pages_domains/obtain_lets_encrypt_certificate_service_spec.rb' - 'spec/services/projects/after_rename_service_spec.rb' - 'spec/services/projects/branches_by_mode_service_spec.rb' - - 'spec/services/projects/container_repository/cleanup_tags_service_spec.rb' - 'spec/services/projects/container_repository/delete_tags_service_spec.rb' - 'spec/services/projects/container_repository/gitlab/delete_tags_service_spec.rb' - 'spec/services/projects/container_repository/third_party/delete_tags_service_spec.rb' @@ -480,9 +456,6 @@ RSpec/ExpectInHook: - 'spec/services/projects/update_pages_service_spec.rb' - 'spec/services/projects/update_remote_mirror_service_spec.rb' - 'spec/services/projects/update_repository_storage_service_spec.rb' - - 'spec/services/protected_branches/create_service_spec.rb' - - 'spec/services/protected_branches/destroy_service_spec.rb' - - 'spec/services/protected_branches/update_service_spec.rb' - 'spec/services/search_service_spec.rb' - 'spec/services/serverless/associate_domain_service_spec.rb' - 'spec/services/snippets/update_repository_storage_service_spec.rb' @@ -491,8 +464,6 @@ RSpec/ExpectInHook: - 'spec/services/system_notes/commit_service_spec.rb' - 'spec/services/system_notes/issuables_service_spec.rb' - 'spec/services/user_project_access_changed_service_spec.rb' - - 'spec/support/services/issuable_update_service_shared_examples.rb' - - 'spec/support/services/migrate_to_ghost_user_service_shared_examples.rb' - 'spec/support/shared_examples/controllers/wiki_actions_shared_examples.rb' - 'spec/support/shared_examples/csp.rb' - 'spec/support/shared_examples/features/wiki/user_views_wiki_page_shared_examples.rb' @@ -506,7 +477,6 @@ RSpec/ExpectInHook: - 'spec/support/shared_examples/models/concerns/has_wiki_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/update_namespace_statistics_shared_examples.rb' - 'spec/support/shared_examples/models/mentionable_shared_examples.rb' - - 'spec/support/shared_examples/models/wiki_shared_examples.rb' - 'spec/support/shared_examples/quick_actions/issuable/close_quick_action_shared_examples.rb' - 'spec/support/shared_examples/requests/api/helm_packages_shared_examples.rb' - 'spec/support/shared_examples/requests/api/repositories_shared_context.rb' @@ -525,14 +495,11 @@ RSpec/ExpectInHook: - 'spec/tasks/gitlab/praefect_rake_spec.rb' - 'spec/tasks/gitlab/task_helpers_spec.rb' - 'spec/tooling/danger/feature_flag_spec.rb' - - 'spec/tooling/danger/specs_spec.rb' - 'spec/tooling/rspec_flaky/listener_spec.rb' - 'spec/uploaders/file_mover_spec.rb' - 'spec/uploaders/gitlab_uploader_spec.rb' - 'spec/uploaders/object_storage_spec.rb' - - 'spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb' - 'spec/views/shared/runners/_runner_details.html.haml_spec.rb' - - 'spec/workers/build_finished_worker_spec.rb' - 'spec/workers/bulk_imports/pipeline_worker_spec.rb' - 'spec/workers/ci/build_finished_worker_spec.rb' - 'spec/workers/concerns/gitlab/github_import/object_importer_spec.rb' diff --git a/.rubocop_todo/rspec/factory_bot/avoid_create.yml b/.rubocop_todo/rspec/factory_bot/avoid_create.yml index 33ffaed3b1c..fa258f880e4 100644 --- a/.rubocop_todo/rspec/factory_bot/avoid_create.yml +++ b/.rubocop_todo/rspec/factory_bot/avoid_create.yml @@ -218,7 +218,6 @@ RSpec/FactoryBot/AvoidCreate: - 'spec/serializers/impersonation_access_token_serializer_spec.rb' - 'spec/serializers/import/manifest_provider_repo_entity_spec.rb' - 'spec/serializers/integrations/event_entity_spec.rb' - - 'spec/serializers/integrations/field_entity_spec.rb' - 'spec/serializers/integrations/harbor_serializers/artifact_entity_spec.rb' - 'spec/serializers/integrations/harbor_serializers/repository_entity_spec.rb' - 'spec/serializers/integrations/harbor_serializers/tag_entity_spec.rb' diff --git a/.rubocop_todo/rspec/file_path.yml b/.rubocop_todo/rspec/file_path.yml index 6811d228c95..9cc2e1b5b6c 100644 --- a/.rubocop_todo/rspec/file_path.yml +++ b/.rubocop_todo/rspec/file_path.yml @@ -18,7 +18,6 @@ RSpec/FilePath: - 'ee/spec/services/ci/create_pipeline_service/compliance_spec.rb' - 'ee/spec/services/ci/create_pipeline_service/cross_needs_artifacts_spec.rb' - 'ee/spec/services/ci/create_pipeline_service/dast_configuration_spec.rb' - - 'ee/spec/services/ci/create_pipeline_service/limit_active_jobs_spec.rb' - 'ee/spec/services/ci/create_pipeline_service/needs_spec.rb' - 'ee/spec/services/ci/create_pipeline_service/runnable_builds_spec.rb' - 'spec/benchmarks/banzai_benchmark.rb' @@ -53,7 +52,6 @@ RSpec/FilePath: - 'spec/services/ci/create_pipeline_service/evaluate_runner_tags_spec.rb' - 'spec/services/ci/create_pipeline_service/include_spec.rb' - 'spec/services/ci/create_pipeline_service/limit_active_jobs_spec.rb' - - 'spec/services/ci/create_pipeline_service/logger_spec.rb' - 'spec/services/ci/create_pipeline_service/merge_requests_spec.rb' - 'spec/services/ci/create_pipeline_service/needs_spec.rb' - 'spec/services/ci/create_pipeline_service/parallel_spec.rb' @@ -63,6 +61,6 @@ RSpec/FilePath: - 'spec/services/ci/create_pipeline_service/pre_post_stages_spec.rb' - 'spec/services/ci/create_pipeline_service/rate_limit_spec.rb' - 'spec/services/ci/create_pipeline_service/rules_spec.rb' + - 'spec/services/ci/create_pipeline_service/scripts_spec.rb' - 'spec/services/ci/create_pipeline_service/tags_spec.rb' - 'spec/services/ci/create_pipeline_service/variables_spec.rb' - - 'spec/services/ci/create_pipeline_service/scripts_spec.rb' diff --git a/.rubocop_todo/rspec/hooks_before_examples.yml b/.rubocop_todo/rspec/hooks_before_examples.yml index 0de9ff4b6c0..01756f4d8c3 100644 --- a/.rubocop_todo/rspec/hooks_before_examples.yml +++ b/.rubocop_todo/rspec/hooks_before_examples.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/HooksBeforeExamples: Exclude: - 'ee/spec/features/boards/swimlanes/epics_swimlanes_spec.rb' @@ -30,20 +30,16 @@ RSpec/HooksBeforeExamples: - 'qa/qa/specs/features/api/1_manage/user_inherited_access_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/login/log_in_with_2fa_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb' - - 'qa/qa/specs/features/browser_ui/1_manage/project/create_project_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/project/project_access_token_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/user/follow_user_activity_spec.rb' - - 'qa/qa/specs/features/browser_ui/1_manage/user/user_access_termination_spec.rb' - 'qa/qa/specs/features/browser_ui/1_manage/user/user_inherited_access_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/revert/revert_commit_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/open_fork_in_web_ide_spec.rb' - 'qa/qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_enforced_sso_git_access_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_enforced_sso_new_account_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_non_enforced_sso_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/prevent_forking_outside_group_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/instance/instance_audit_logs_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/ldap/admin_ldap_sync_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/1_manage/user/minimal_access_user_spec.rb' - 'qa/spec/resource/reusable_collection_spec.rb' diff --git a/.rubocop_todo/rspec/instance_variable.yml b/.rubocop_todo/rspec/instance_variable.yml index 2cc146a0625..b1b4a6c16ce 100644 --- a/.rubocop_todo/rspec/instance_variable.yml +++ b/.rubocop_todo/rspec/instance_variable.yml @@ -1,198 +1,172 @@ --- RSpec/InstanceVariable: Exclude: - - ee/spec/controllers/admin/application_settings_controller_spec.rb - - ee/spec/controllers/admin/geo/settings_controller_spec.rb - - ee/spec/controllers/ee/sessions_controller_spec.rb - - ee/spec/controllers/groups/groups_controller_spec.rb - - ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb - - ee/spec/controllers/passwords_controller_spec.rb - - ee/spec/features/markdown/markdown_spec.rb - - ee/spec/frontend/fixtures/dast_profiles.rb - - ee/spec/frontend/fixtures/epic.rb - - ee/spec/graphql/types/vulnerability_request_response_header_type_spec.rb - - ee/spec/graphql/types/vulnerability_request_type_spec.rb - - ee/spec/graphql/types/vulnerability_response_type_spec.rb - - ee/spec/helpers/ee/issuables_helper_spec.rb - - ee/spec/helpers/ee/wiki_helper_spec.rb - - ee/spec/helpers/notes_helper_spec.rb - - ee/spec/helpers/search_helper_spec.rb - - ee/spec/lib/ee/gitlab/elastic/helper_spec.rb - - ee/spec/lib/gitlab/elastic/search_results_spec.rb - - ee/spec/lib/gitlab/reference_extractor_spec.rb - - ee/spec/services/ee/merge_requests/update_service_spec.rb - - ee/spec/services/ee/notification_service_spec.rb - - ee/spec/services/ee/users/create_service_spec.rb - - ee/spec/services/ee/users/destroy_service_spec.rb - - ee/spec/services/geo/metrics_update_service_spec.rb - - ee/spec/services/groups/create_service_spec.rb - - ee/spec/services/groups/participants_service_spec.rb - - ee/spec/services/projects/create_from_template_service_spec.rb - - ee/spec/services/projects/create_service_spec.rb - - ee/spec/support/shared_examples/views/subscription_shared_examples.rb - - ee/spec/tasks/geo_rake_spec.rb - - ee/spec/views/projects/security/corpus_management/show.html.haml_spec.rb - - ee/spec/views/projects/security/dast_profiles/show.html.haml_spec.rb - - ee/spec/views/projects/security/dast_scanner_profiles/new.html.haml_spec.rb - - ee/spec/views/projects/security/dast_site_profiles/new.html.haml_spec.rb - - qa/qa/specs/features/api/1_manage/import_large_github_repo_spec.rb - - qa/qa/specs/features/api/1_manage/project_access_token_spec.rb - - qa/qa/specs/features/api/1_manage/user_access_termination_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/login/2fa_recovery_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/login/log_in_with_2fa_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/project/dashboard_images_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/project/invite_group_to_project_spec.rb - - qa/qa/specs/features/browser_ui/1_manage/project/protected_tags_spec.rb - - qa/qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb - - qa/qa/specs/features/browser_ui/3_create/repository/push_over_ssh_spec.rb - - qa/qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb - - qa/qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb - - qa/qa/specs/features/browser_ui/3_create/web_ide/link_to_line_in_web_ide_spec.rb - - qa/qa/specs/features/browser_ui/3_create/web_ide/web_terminal_spec.rb - - qa/qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb - - qa/qa/specs/features/ee/browser_ui/12_geo/attachment_replication_spec.rb - - qa/qa/specs/features/ee/browser_ui/12_geo/geo_replication_ci_job_log_artifacts_spec.rb - - qa/qa/specs/features/ee/browser_ui/12_geo/rename_replication_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/create_merge_request_with_secure_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/license_compliance_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/merge_request_license_widget_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/project_security_dashboard_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb - - qa/qa/specs/features/ee/browser_ui/13_secure/vulnerability_management_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/group/group_file_template_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/group/group_ldap_sync_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_non_enforced_sso_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb - - qa/qa/specs/features/ee/browser_ui/1_manage/project/project_templates_spec.rb - - qa/qa/specs/features/ee/browser_ui/2_plan/integrations/jira_issues_list_spec.rb - - qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/project_issue_boards_spec.rb - - qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/more_than_four_assignees_spec.rb - - qa/qa/specs/features/ee/browser_ui/3_create/repository/code_owners_spec.rb - - qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb - - qa/spec/support/repeater_spec.rb - - spec/commands/metrics_server/metrics_server_spec.rb - - spec/controllers/admin/clusters_controller_spec.rb - - spec/controllers/admin/topics/avatars_controller_spec.rb - - spec/controllers/concerns/renders_commits_spec.rb - - spec/controllers/confirmations_controller_spec.rb - - spec/controllers/groups/avatars_controller_spec.rb - - spec/controllers/groups/clusters_controller_spec.rb - - spec/controllers/import/bitbucket_controller_spec.rb - - spec/controllers/import/bitbucket_server_controller_spec.rb - - spec/controllers/metrics_controller_spec.rb - - spec/controllers/omniauth_callbacks_controller_spec.rb - - spec/controllers/passwords_controller_spec.rb - - spec/controllers/profiles/avatars_controller_spec.rb - - spec/controllers/projects/clusters_controller_spec.rb - - spec/controllers/sessions_controller_spec.rb - - spec/features/calendar_spec.rb - - spec/features/issues/user_filters_issues_spec.rb - - spec/features/markdown/copy_as_gfm_spec.rb - - spec/features/markdown/gitlab_flavored_markdown_spec.rb - - spec/features/markdown/keyboard_shortcuts_spec.rb - - spec/features/markdown/markdown_spec.rb - - spec/features/merge_request/batch_comments_spec.rb - - spec/features/merge_request/user_sees_pipelines_spec.rb - - spec/features/merge_requests/user_lists_merge_requests_spec.rb - - spec/features/projects/diffs/diff_show_spec.rb - - spec/features/triggers_spec.rb - - spec/features/u2f_spec.rb - - spec/finders/admin/plans_finder_spec.rb - - spec/finders/groups_finder_spec.rb - - spec/finders/issues_finder_spec.rb - - spec/frontend/fixtures/listbox.rb - - spec/frontend/fixtures/raw.rb - - spec/frontend/fixtures/sessions.rb - - spec/frontend/fixtures/tabs.rb - - spec/frontend/fixtures/timezones.rb - - spec/frontend/fixtures/u2f.rb - - spec/frontend/fixtures/webauthn.rb - - spec/helpers/application_helper_spec.rb - - spec/helpers/award_emoji_helper_spec.rb - - spec/helpers/issuables_description_templates_helper_spec.rb - - spec/helpers/issuables_helper_spec.rb - - spec/helpers/notes_helper_spec.rb - - spec/helpers/projects_helper_spec.rb - - spec/helpers/search_helper_spec.rb - - spec/helpers/tree_helper_spec.rb - - spec/helpers/wiki_helper_spec.rb - - spec/lib/api/helpers/authentication_spec.rb - - spec/lib/banzai/filter/asset_proxy_filter_spec.rb - - spec/lib/extracts_path_spec.rb - - spec/lib/extracts_ref_spec.rb - - spec/lib/gitlab/auth/auth_finders_spec.rb - - spec/lib/gitlab/auth/ldap/person_spec.rb - - spec/lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid_spec.rb - - spec/lib/gitlab/bitbucket_import/importer_spec.rb - - spec/lib/gitlab/chat_name_token_spec.rb - - spec/lib/gitlab/ci/lint_spec.rb - - spec/lib/gitlab/ci/status/composite_spec.rb - - spec/lib/gitlab/contributions_calendar_spec.rb - - spec/lib/gitlab/diff/parser_spec.rb - - spec/lib/gitlab/email/hook/smime_signature_interceptor_spec.rb - - spec/lib/gitlab/git/commit_spec.rb - - spec/lib/gitlab/git/diff_collection_spec.rb - - spec/lib/gitlab/git/diff_spec.rb - - spec/lib/gitlab/git/repository_spec.rb - - spec/lib/gitlab/http_spec.rb - - spec/lib/gitlab/import_export/group/legacy_tree_restorer_spec.rb - - spec/lib/gitlab/import_export/group/tree_restorer_spec.rb - - spec/lib/gitlab/import_export/project/tree_restorer_spec.rb - - spec/lib/gitlab/patch/prependable_spec.rb - - spec/lib/gitlab/popen_spec.rb - - spec/lib/gitlab/project_transfer_spec.rb - - spec/lib/gitlab/reference_extractor_spec.rb - - spec/lib/gitlab/tcp_checker_spec.rb - - spec/lib/gitlab/user_access_spec.rb - - spec/lib/gitlab/version_info_spec.rb - - spec/lib/gitlab/x509/certificate_spec.rb - - spec/mailers/emails/issues_spec.rb - - spec/migrations/20220106163326_add_has_issues_on_vulnerability_reads_trigger_spec.rb - - spec/migrations/rename_services_to_integrations_spec.rb - - spec/migrations/replace_external_wiki_triggers_spec.rb - - spec/models/group_spec.rb - - spec/models/integrations/assembla_spec.rb - - spec/models/integrations/campfire_spec.rb - - spec/models/member_spec.rb - - spec/models/members/project_member_spec.rb - - spec/models/namespace_spec.rb - - spec/models/note_spec.rb - - spec/models/postgresql/replication_slot_spec.rb - - spec/models/project_spec.rb - - spec/models/user_spec.rb - - spec/models/users/in_product_marketing_email_spec.rb - - spec/rack_servers/puma_spec.rb - - spec/requests/api/admin/plan_limits_spec.rb - - spec/requests/api/merge_requests_spec.rb - - spec/requests/api/users_spec.rb - - spec/requests/git_http_spec.rb - - spec/requests/openid_connect_spec.rb - - spec/requests/projects/issues/discussions_spec.rb - - spec/rubocop/cop/migration/update_column_in_batches_spec.rb - - spec/services/ci/create_pipeline_service/logger_spec.rb - - spec/services/ci/process_sync_events_service_spec.rb - - spec/services/labels/update_service_spec.rb - - spec/services/members/destroy_service_spec.rb - - spec/services/merge_requests/close_service_spec.rb - - spec/services/merge_requests/refresh_service_spec.rb - - spec/services/merge_requests/reopen_service_spec.rb - - spec/services/merge_requests/update_service_spec.rb - - spec/services/milestones/create_service_spec.rb - - spec/services/notes/post_process_service_spec.rb - - spec/services/notes/update_service_spec.rb - - spec/services/notification_service_spec.rb - - spec/services/pages/zip_directory_service_spec.rb - - spec/services/projects/create_from_template_service_spec.rb - - spec/services/projects/download_service_spec.rb - - spec/services/projects/fork_service_spec.rb - - spec/services/upload_service_spec.rb - - spec/support/shared_contexts/controllers/ldap_omniauth_callbacks_controller_shared_context.rb - - spec/support/shared_contexts/email_shared_context.rb - - spec/support/shared_examples/features/wiki/user_views_wiki_empty_shared_examples.rb - - spec/support/shared_examples/path_extraction_shared_examples.rb - - spec/support/shared_examples/requests/api/notes_shared_examples.rb - - spec/support_specs/helpers/stub_feature_flags_spec.rb - - spec/views/search/_results.html.haml_spec.rb - - spec/workers/emails_on_push_worker_spec.rb + - 'ee/spec/controllers/admin/application_settings_controller_spec.rb' + - 'ee/spec/controllers/admin/geo/settings_controller_spec.rb' + - 'ee/spec/controllers/ee/sessions_controller_spec.rb' + - 'ee/spec/controllers/groups/groups_controller_spec.rb' + - 'ee/spec/controllers/groups/omniauth_callbacks_controller_spec.rb' + - 'ee/spec/controllers/passwords_controller_spec.rb' + - 'ee/spec/features/markdown/markdown_spec.rb' + - 'ee/spec/frontend/fixtures/dast_profiles.rb' + - 'ee/spec/frontend/fixtures/epic.rb' + - 'ee/spec/graphql/types/vulnerability_request_response_header_type_spec.rb' + - 'ee/spec/graphql/types/vulnerability_request_type_spec.rb' + - 'ee/spec/graphql/types/vulnerability_response_type_spec.rb' + - 'ee/spec/helpers/ee/issuables_helper_spec.rb' + - 'ee/spec/helpers/ee/wiki_helper_spec.rb' + - 'ee/spec/helpers/notes_helper_spec.rb' + - 'ee/spec/helpers/search_helper_spec.rb' + - 'ee/spec/lib/ee/gitlab/elastic/helper_spec.rb' + - 'ee/spec/lib/gitlab/elastic/search_results_spec.rb' + - 'ee/spec/lib/gitlab/reference_extractor_spec.rb' + - 'ee/spec/services/ee/merge_requests/update_service_spec.rb' + - 'ee/spec/services/ee/notification_service_spec.rb' + - 'ee/spec/services/ee/users/create_service_spec.rb' + - 'ee/spec/services/geo/metrics_update_service_spec.rb' + - 'ee/spec/services/groups/create_service_spec.rb' + - 'ee/spec/services/groups/participants_service_spec.rb' + - 'ee/spec/services/projects/create_from_template_service_spec.rb' + - 'ee/spec/services/projects/create_service_spec.rb' + - 'ee/spec/support/shared_examples/views/subscription_shared_examples.rb' + - 'ee/spec/tasks/geo_rake_spec.rb' + - 'ee/spec/views/projects/security/corpus_management/show.html.haml_spec.rb' + - 'ee/spec/views/projects/security/dast_profiles/show.html.haml_spec.rb' + - 'ee/spec/views/projects/security/dast_scanner_profiles/new.html.haml_spec.rb' + - 'ee/spec/views/projects/security/dast_site_profiles/new.html.haml_spec.rb' + - 'qa/qa/specs/features/api/1_manage/project_access_token_spec.rb' + - 'qa/qa/specs/features/api/1_manage/user_access_termination_spec.rb' + - 'qa/qa/specs/features/browser_ui/1_manage/login/log_in_with_2fa_spec.rb' + - 'qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/push_over_ssh_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/web_ide/add_file_template_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/web_ide/link_to_line_in_web_ide_spec.rb' + - 'qa/qa/specs/features/browser_ui/3_create/web_ide/web_terminal_spec.rb' + - 'qa/qa/specs/features/ee/api/1_manage/user/minimal_access_user_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/13_secure/license_compliance_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/13_secure/merge_request_license_widget_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_ldap_sync_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_saml_non_enforced_sso_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/2_plan/issue_boards/project_issue_boards_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/more_than_four_assignees_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/code_owners_spec.rb' + - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec.rb' + - 'spec/commands/metrics_server/metrics_server_spec.rb' + - 'spec/controllers/admin/topics/avatars_controller_spec.rb' + - 'spec/controllers/concerns/renders_commits_spec.rb' + - 'spec/controllers/confirmations_controller_spec.rb' + - 'spec/controllers/groups/avatars_controller_spec.rb' + - 'spec/controllers/import/bitbucket_controller_spec.rb' + - 'spec/controllers/import/bitbucket_server_controller_spec.rb' + - 'spec/controllers/metrics_controller_spec.rb' + - 'spec/controllers/omniauth_callbacks_controller_spec.rb' + - 'spec/controllers/passwords_controller_spec.rb' + - 'spec/controllers/profiles/avatars_controller_spec.rb' + - 'spec/controllers/sessions_controller_spec.rb' + - 'spec/features/calendar_spec.rb' + - 'spec/features/issues/user_filters_issues_spec.rb' + - 'spec/features/markdown/copy_as_gfm_spec.rb' + - 'spec/features/markdown/gitlab_flavored_markdown_spec.rb' + - 'spec/features/markdown/keyboard_shortcuts_spec.rb' + - 'spec/features/markdown/markdown_spec.rb' + - 'spec/features/merge_request/batch_comments_spec.rb' + - 'spec/features/merge_request/user_sees_pipelines_spec.rb' + - 'spec/features/merge_requests/user_lists_merge_requests_spec.rb' + - 'spec/features/projects/diffs/diff_show_spec.rb' + - 'spec/features/triggers_spec.rb' + - 'spec/features/u2f_spec.rb' + - 'spec/finders/admin/plans_finder_spec.rb' + - 'spec/finders/groups_finder_spec.rb' + - 'spec/frontend/fixtures/listbox.rb' + - 'spec/frontend/fixtures/raw.rb' + - 'spec/frontend/fixtures/sessions.rb' + - 'spec/frontend/fixtures/tabs.rb' + - 'spec/frontend/fixtures/timezones.rb' + - 'spec/frontend/fixtures/u2f.rb' + - 'spec/frontend/fixtures/webauthn.rb' + - 'spec/helpers/application_helper_spec.rb' + - 'spec/helpers/award_emoji_helper_spec.rb' + - 'spec/helpers/issuables_description_templates_helper_spec.rb' + - 'spec/helpers/issuables_helper_spec.rb' + - 'spec/helpers/notes_helper_spec.rb' + - 'spec/helpers/projects_helper_spec.rb' + - 'spec/helpers/search_helper_spec.rb' + - 'spec/helpers/tree_helper_spec.rb' + - 'spec/helpers/wiki_helper_spec.rb' + - 'spec/lib/api/helpers/authentication_spec.rb' + - 'spec/lib/banzai/filter/asset_proxy_filter_spec.rb' + - 'spec/lib/extracts_path_spec.rb' + - 'spec/lib/extracts_ref_spec.rb' + - 'spec/lib/gitlab/auth/auth_finders_spec.rb' + - 'spec/lib/gitlab/auth/ldap/person_spec.rb' + - 'spec/lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid_spec.rb' + - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' + - 'spec/lib/gitlab/chat_name_token_spec.rb' + - 'spec/lib/gitlab/ci/lint_spec.rb' + - 'spec/lib/gitlab/ci/status/composite_spec.rb' + - 'spec/lib/gitlab/contributions_calendar_spec.rb' + - 'spec/lib/gitlab/diff/parser_spec.rb' + - 'spec/lib/gitlab/email/hook/smime_signature_interceptor_spec.rb' + - 'spec/lib/gitlab/git/diff_collection_spec.rb' + - 'spec/lib/gitlab/git/diff_spec.rb' + - 'spec/lib/gitlab/git/repository_spec.rb' + - 'spec/lib/gitlab/http_spec.rb' + - 'spec/lib/gitlab/import_export/group/legacy_tree_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/group/tree_restorer_spec.rb' + - 'spec/lib/gitlab/import_export/project/tree_restorer_spec.rb' + - 'spec/lib/gitlab/patch/prependable_spec.rb' + - 'spec/lib/gitlab/popen_spec.rb' + - 'spec/lib/gitlab/project_transfer_spec.rb' + - 'spec/lib/gitlab/reference_extractor_spec.rb' + - 'spec/lib/gitlab/tcp_checker_spec.rb' + - 'spec/lib/gitlab/user_access_spec.rb' + - 'spec/lib/gitlab/version_info_spec.rb' + - 'spec/lib/gitlab/x509/certificate_spec.rb' + - 'spec/mailers/emails/issues_spec.rb' + - 'spec/migrations/20220106163326_add_has_issues_on_vulnerability_reads_trigger_spec.rb' + - 'spec/migrations/rename_services_to_integrations_spec.rb' + - 'spec/migrations/replace_external_wiki_triggers_spec.rb' + - 'spec/models/group_spec.rb' + - 'spec/models/integrations/assembla_spec.rb' + - 'spec/models/integrations/campfire_spec.rb' + - 'spec/models/member_spec.rb' + - 'spec/models/members/project_member_spec.rb' + - 'spec/models/namespace_spec.rb' + - 'spec/models/note_spec.rb' + - 'spec/models/postgresql/replication_slot_spec.rb' + - 'spec/models/project_spec.rb' + - 'spec/models/user_spec.rb' + - 'spec/models/users/in_product_marketing_email_spec.rb' + - 'spec/rack_servers/puma_spec.rb' + - 'spec/requests/api/admin/plan_limits_spec.rb' + - 'spec/requests/api/users_spec.rb' + - 'spec/requests/git_http_spec.rb' + - 'spec/requests/openid_connect_spec.rb' + - 'spec/requests/projects/issues/discussions_spec.rb' + - 'spec/rubocop/cop/migration/update_column_in_batches_spec.rb' + - 'spec/services/ci/process_sync_events_service_spec.rb' + - 'spec/services/labels/update_service_spec.rb' + - 'spec/services/members/destroy_service_spec.rb' + - 'spec/services/merge_requests/close_service_spec.rb' + - 'spec/services/merge_requests/refresh_service_spec.rb' + - 'spec/services/merge_requests/reopen_service_spec.rb' + - 'spec/services/merge_requests/update_service_spec.rb' + - 'spec/services/milestones/create_service_spec.rb' + - 'spec/services/notes/post_process_service_spec.rb' + - 'spec/services/notes/update_service_spec.rb' + - 'spec/services/notification_service_spec.rb' + - 'spec/services/pages/zip_directory_service_spec.rb' + - 'spec/services/projects/create_from_template_service_spec.rb' + - 'spec/services/projects/download_service_spec.rb' + - 'spec/services/projects/fork_service_spec.rb' + - 'spec/services/upload_service_spec.rb' + - 'spec/support/shared_contexts/controllers/ldap_omniauth_callbacks_controller_shared_context.rb' + - 'spec/support/shared_contexts/email_shared_context.rb' + - 'spec/support/shared_examples/features/wiki/user_views_wiki_empty_shared_examples.rb' + - 'spec/support/shared_examples/path_extraction_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/notes_shared_examples.rb' + - 'spec/support_specs/helpers/stub_feature_flags_spec.rb' + - 'spec/views/search/_results.html.haml_spec.rb' + - 'spec/workers/emails_on_push_worker_spec.rb' diff --git a/.rubocop_todo/rspec/leaky_constant_declaration.yml b/.rubocop_todo/rspec/leaky_constant_declaration.yml index b8b3980ef4f..34380589905 100644 --- a/.rubocop_todo/rspec/leaky_constant_declaration.yml +++ b/.rubocop_todo/rspec/leaky_constant_declaration.yml @@ -1,15 +1,14 @@ --- RSpec/LeakyConstantDeclaration: Exclude: - - spec/db/schema_spec.rb - - spec/lib/gitlab/config/entry/simplifiable_spec.rb - - spec/lib/gitlab/quick_actions/dsl_spec.rb - - spec/lib/marginalia_spec.rb - - spec/mailers/notify_spec.rb - - spec/models/concerns/batch_destroy_dependent_associations_spec.rb - - spec/models/concerns/bulk_insert_safe_spec.rb - - spec/models/concerns/bulk_insertable_associations_spec.rb - - spec/models/concerns/triggerable_hooks_spec.rb - - spec/models/repository_spec.rb - - spec/services/clusters/applications/check_installation_progress_service_spec.rb - - spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb + - 'spec/db/schema_spec.rb' + - 'spec/lib/gitlab/config/entry/simplifiable_spec.rb' + - 'spec/lib/gitlab/quick_actions/dsl_spec.rb' + - 'spec/lib/marginalia_spec.rb' + - 'spec/mailers/notify_spec.rb' + - 'spec/models/concerns/batch_destroy_dependent_associations_spec.rb' + - 'spec/models/concerns/bulk_insert_safe_spec.rb' + - 'spec/models/concerns/bulk_insertable_associations_spec.rb' + - 'spec/models/concerns/triggerable_hooks_spec.rb' + - 'spec/models/repository_spec.rb' + - 'spec/support/shared_examples/quick_actions/issuable/issuable_quick_actions_shared_examples.rb' diff --git a/.rubocop_todo/rspec/let_before_examples.yml b/.rubocop_todo/rspec/let_before_examples.yml index f84df4bdb5f..803fc54a9b3 100644 --- a/.rubocop_todo/rspec/let_before_examples.yml +++ b/.rubocop_todo/rspec/let_before_examples.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/LetBeforeExamples: Exclude: - 'ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb' diff --git a/.rubocop_todo/rspec/overwriting_setup.yml b/.rubocop_todo/rspec/overwriting_setup.yml index 630f08eb72f..2bca06918fc 100644 --- a/.rubocop_todo/rspec/overwriting_setup.yml +++ b/.rubocop_todo/rspec/overwriting_setup.yml @@ -3,7 +3,6 @@ RSpec/OverwritingSetup: Exclude: - 'ee/spec/features/groups/analytics/ci_cd_analytics_spec.rb' - 'ee/spec/lib/gitlab/analytics/type_of_work/tasks_by_type_spec.rb' - - 'ee/spec/models/ee/iteration_spec.rb' - 'ee/spec/requests/api/namespaces_spec.rb' - 'ee/spec/services/epics/descendant_count_service_spec.rb' - 'spec/finders/packages/helm/packages_finder_spec.rb' diff --git a/.rubocop_todo/rspec/repeated_example_group_body.yml b/.rubocop_todo/rspec/repeated_example_group_body.yml index 6fdeb9a2094..93cbe77765a 100644 --- a/.rubocop_todo/rspec/repeated_example_group_body.yml +++ b/.rubocop_todo/rspec/repeated_example_group_body.yml @@ -43,16 +43,11 @@ RSpec/RepeatedExampleGroupBody: - 'spec/lib/gitlab/sanitizers/exif_spec.rb' - 'spec/models/ci/build_spec.rb' - 'spec/models/deploy_token_spec.rb' - - 'spec/models/group_spec.rb' - - 'spec/models/merge_request_spec.rb' - 'spec/models/project_spec.rb' - 'spec/policies/project_policy_spec.rb' - - 'spec/presenters/project_hook_presenter_spec.rb' - - 'spec/requests/api/graphql/ci/runners_spec.rb' - 'spec/services/boards/lists/update_service_spec.rb' - 'spec/services/ci/create_web_ide_terminal_service_spec.rb' - 'spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb' - - 'spec/services/ci/register_job_service_spec.rb' - 'spec/services/merge_requests/create_service_spec.rb' - 'spec/services/merge_requests/mark_reviewer_reviewed_service_spec.rb' - 'spec/services/merge_requests/mergeability/check_base_service_spec.rb' diff --git a/.rubocop_todo/rspec/repeated_example_group_description.yml b/.rubocop_todo/rspec/repeated_example_group_description.yml index 31c17c994a6..826ac2a6838 100644 --- a/.rubocop_todo/rspec/repeated_example_group_description.yml +++ b/.rubocop_todo/rspec/repeated_example_group_description.yml @@ -2,10 +2,8 @@ RSpec/RepeatedExampleGroupDescription: Exclude: - 'ee/spec/finders/merge_trains_finder_spec.rb' - - 'ee/spec/finders/security/vulnerability_reads_finder_spec.rb' - 'ee/spec/graphql/resolvers/vulnerabilities_grade_resolver_spec.rb' - 'ee/spec/graphql/resolvers/vulnerability_severities_count_resolver_spec.rb' - - 'ee/spec/helpers/ee/auth_helper_spec.rb' - 'ee/spec/lib/gitlab/auth/ldap/person_spec.rb' - 'ee/spec/lib/gitlab/usage/metrics/instrumentations/approval_project_rules_with_user_metric_spec.rb' - 'ee/spec/models/approval_merge_request_rule_spec.rb' @@ -23,16 +21,13 @@ RSpec/RepeatedExampleGroupDescription: - 'ee/spec/policies/app_sec/fuzzing/coverage/corpus_policy_spec.rb' - 'ee/spec/policies/group_policy_spec.rb' - 'ee/spec/requests/api/graphql/iteration_spec.rb' - - 'ee/spec/requests/api/graphql/mutations/iterations/create_spec.rb' - 'ee/spec/requests/groups/security/credentials_controller_spec.rb' - - 'ee/spec/requests/groups/settings/reporting_controller_spec.rb' - 'ee/spec/services/app_sec/dast/profiles/create_associations_service_spec.rb' - 'ee/spec/services/app_sec/dast/site_validations/find_or_create_service_spec.rb' - 'ee/spec/services/audit_event_service_spec.rb' - 'ee/spec/services/todo_service_spec.rb' - 'ee/spec/support/shared_examples/models/concerns/verifiable_replicator_shared_examples.rb' - 'ee/spec/support/shared_examples/services/scoped_label_shared_examples.rb' - - 'ee/spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb' - 'spec/controllers/profiles/notifications_controller_spec.rb' - 'spec/controllers/projects/issues_controller_spec.rb' - 'spec/controllers/projects/merge_requests/drafts_controller_spec.rb' @@ -61,7 +56,6 @@ RSpec/RepeatedExampleGroupDescription: - 'spec/lib/gitlab/ci/config/entry/processable_spec.rb' - 'spec/lib/gitlab/ci/config/entry/release_spec.rb' - 'spec/lib/gitlab/ci/config_spec.rb' - - 'spec/lib/gitlab/ci/parsers/security/common_spec.rb' - 'spec/lib/gitlab/ci/pipeline/seed/build_spec.rb' - 'spec/lib/gitlab/ci/yaml_processor_spec.rb' - 'spec/lib/gitlab/data_builder/push_spec.rb' @@ -73,7 +67,6 @@ RSpec/RepeatedExampleGroupDescription: - 'spec/lib/gitlab/import_export/project/sample/relation_factory_spec.rb' - 'spec/lib/gitlab/kubernetes/rollout_status_spec.rb' - 'spec/lib/gitlab/metrics/dashboard/validator/errors_spec.rb' - - 'spec/lib/gitlab/redis/multi_store_spec.rb' - 'spec/lib/gitlab/sanitizers/exif_spec.rb' - 'spec/lib/gitlab/template/finders/global_template_finder_spec.rb' - 'spec/lib/gitlab/usage_data_spec.rb' @@ -83,14 +76,11 @@ RSpec/RepeatedExampleGroupDescription: - 'spec/models/concerns/ci/has_ref_spec.rb' - 'spec/models/concerns/issuable_spec.rb' - 'spec/models/integrations/chat_message/pipeline_message_spec.rb' - - 'spec/models/merge_request_assignee_spec.rb' - - 'spec/models/merge_request_reviewer_spec.rb' - 'spec/models/merge_request_spec.rb' - 'spec/models/personal_access_token_spec.rb' - 'spec/models/project_spec.rb' - 'spec/models/ssh_host_key_spec.rb' - 'spec/requests/api/files_spec.rb' - - 'spec/requests/api/graphql/ci/runners_spec.rb' - 'spec/requests/api/graphql/project/release_spec.rb' - 'spec/requests/api/group_clusters_spec.rb' - 'spec/requests/api/internal/base_spec.rb' @@ -100,8 +90,6 @@ RSpec/RepeatedExampleGroupDescription: - 'spec/requests/api/users_spec.rb' - 'spec/routing/project_routing_spec.rb' - 'spec/services/ci/create_pipeline_service/parent_child_pipeline_spec.rb' - - 'spec/services/ci/register_job_service_spec.rb' - - 'spec/services/import/github_service_spec.rb' - 'spec/services/merge_requests/refresh_service_spec.rb' - 'spec/services/metrics/dashboard/gitlab_alert_embed_service_spec.rb' - 'spec/services/verify_pages_domain_service_spec.rb' diff --git a/.rubocop_todo/rspec/return_from_stub.yml b/.rubocop_todo/rspec/return_from_stub.yml index 215660f31d3..898bd367ada 100644 --- a/.rubocop_todo/rspec/return_from_stub.yml +++ b/.rubocop_todo/rspec/return_from_stub.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/ReturnFromStub: Exclude: - 'ee/spec/controllers/admin/geo/nodes_controller_spec.rb' @@ -19,7 +19,6 @@ RSpec/ReturnFromStub: - 'ee/spec/features/projects/pipelines/pipeline_spec.rb' - 'ee/spec/features/projects/settings/ee/service_desk_setting_spec.rb' - 'ee/spec/features/promotion_spec.rb' - - 'ee/spec/features/trials/select_namespace_spec.rb' - 'ee/spec/graphql/mutations/projects/set_locked_spec.rb' - 'ee/spec/helpers/application_helper_spec.rb' - 'ee/spec/helpers/ee/auth_helper_spec.rb' @@ -37,7 +36,6 @@ RSpec/ReturnFromStub: - 'ee/spec/lib/ee/feature_spec.rb' - 'ee/spec/lib/ee/gitlab/checks/push_rules/branch_check_spec.rb' - 'ee/spec/lib/ee/gitlab/database_spec.rb' - - 'ee/spec/lib/ee/gitlab/git_access_project_spec.rb' - 'ee/spec/lib/gitlab/ci/minutes/build_consumption_spec.rb' - 'ee/spec/lib/gitlab/ci/minutes/cost_factor_spec.rb' - 'ee/spec/lib/gitlab/geo/health_check_spec.rb' @@ -53,7 +51,6 @@ RSpec/ReturnFromStub: - 'ee/spec/models/ee/namespace_spec.rb' - 'ee/spec/models/ee/user_spec.rb' - 'ee/spec/models/license_spec.rb' - - 'ee/spec/models/merge_request/blocking_spec.rb' - 'ee/spec/models/project_spec.rb' - 'ee/spec/models/vulnerabilities/finding_spec.rb' - 'ee/spec/policies/project_policy_spec.rb' @@ -92,7 +89,6 @@ RSpec/ReturnFromStub: - 'ee/spec/views/layouts/application.html.haml_spec.rb' - 'ee/spec/views/shared/_mirror_update_button.html.haml_spec.rb' - 'ee/spec/workers/ee/ci/build_finished_worker_spec.rb' - - 'ee/spec/workers/geo/container_repository_sync_dispatch_worker_spec.rb' - 'ee/spec/workers/geo/design_repository_shard_sync_worker_spec.rb' - 'ee/spec/workers/geo/repository_shard_sync_worker_spec.rb' - 'ee/spec/workers/geo/repository_verification/primary/shard_worker_spec.rb' @@ -122,7 +118,6 @@ RSpec/ReturnFromStub: - 'spec/controllers/projects/merge_requests_controller_spec.rb' - 'spec/controllers/projects/service_desk_controller_spec.rb' - 'spec/controllers/projects_controller_spec.rb' - - 'spec/controllers/search_controller_spec.rb' - 'spec/features/groups/clusters/user_spec.rb' - 'spec/features/groups/container_registry_spec.rb' - 'spec/features/markdown/markdown_spec.rb' @@ -163,7 +158,6 @@ RSpec/ReturnFromStub: - 'spec/lib/gitlab/auth/saml/user_spec.rb' - 'spec/lib/gitlab/auth_spec.rb' - 'spec/lib/gitlab/background_migration/encrypt_static_object_token_spec.rb' - - 'spec/lib/gitlab/batch_pop_queueing_spec.rb' - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' - 'spec/lib/gitlab/ci/build/policy/changes_spec.rb' - 'spec/lib/gitlab/ci/config/external/mapper_spec.rb' @@ -180,7 +174,6 @@ RSpec/ReturnFromStub: - 'spec/lib/gitlab/error_tracking_spec.rb' - 'spec/lib/gitlab/exclusive_lease_helpers/sleeping_lock_spec.rb' - 'spec/lib/gitlab/exclusive_lease_helpers_spec.rb' - - 'spec/lib/gitlab/experimentation/controller_concern_spec.rb' - 'spec/lib/gitlab/external_authorization_spec.rb' - 'spec/lib/gitlab/git/blob_spec.rb' - 'spec/lib/gitlab/git_access_spec.rb' @@ -194,7 +187,6 @@ RSpec/ReturnFromStub: - 'spec/lib/gitlab/memory/reports_daemon_spec.rb' - 'spec/lib/gitlab/metrics/system_spec.rb' - 'spec/lib/gitlab/middleware/read_only_spec.rb' - - 'spec/lib/gitlab/pagination/gitaly_keyset_pager_spec.rb' - 'spec/lib/gitlab/prometheus_client_spec.rb' - 'spec/lib/gitlab/redis/cache_spec.rb' - 'spec/lib/gitlab/redis/duplicate_jobs_spec.rb' @@ -250,10 +242,8 @@ RSpec/ReturnFromStub: - 'spec/services/captcha/captcha_verification_service_spec.rb' - 'spec/services/ci/archive_trace_service_spec.rb' - 'spec/services/ci/create_pipeline_service/logger_spec.rb' - - 'spec/services/ci/list_config_variables_service_spec.rb' - 'spec/services/ci/pipeline_artifacts/destroy_all_expired_service_spec.rb' - 'spec/services/ci/pipeline_trigger_service_spec.rb' - - 'spec/services/ci/process_build_service_spec.rb' - 'spec/services/ci/register_job_service_spec.rb' - 'spec/services/ci/resource_groups/assign_resource_from_resource_group_service_spec.rb' - 'spec/services/environments/auto_stop_service_spec.rb' @@ -282,7 +272,6 @@ RSpec/ReturnFromStub: - 'spec/services/projects/in_product_marketing_campaign_emails_service_spec.rb' - 'spec/services/projects/update_remote_mirror_service_spec.rb' - 'spec/services/projects/update_service_spec.rb' - - 'spec/services/suggestions/apply_service_spec.rb' - 'spec/services/suggestions/create_service_spec.rb' - 'spec/services/verify_pages_domain_service_spec.rb' - 'spec/support/redis/redis_shared_examples.rb' @@ -292,7 +281,6 @@ RSpec/ReturnFromStub: - 'spec/support/shared_examples/lib/gitlab/middleware/read_only_gitlab_instance_shared_examples.rb' - 'spec/support/shared_examples/lib/gitlab/sidekiq_middleware/strategy_shared_examples.rb' - 'spec/support/shared_examples/models/concerns/can_move_repository_storage_shared_examples.rb' - - 'spec/support/shared_examples/models/wiki_shared_examples.rb' - 'spec/support/shared_examples/path_extraction_shared_examples.rb' - 'spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb' - 'spec/support/shared_examples/services/boards/boards_create_service_shared_examples.rb' @@ -302,7 +290,6 @@ RSpec/ReturnFromStub: - 'spec/uploaders/file_mover_spec.rb' - 'spec/uploaders/gitlab_uploader_spec.rb' - 'spec/uploaders/object_storage_spec.rb' - - 'spec/uploaders/workers/object_storage/background_move_worker_spec.rb' - 'spec/views/admin/application_settings/_ci_cd.html.haml_spec.rb' - 'spec/views/admin/application_settings/_eks.html.haml_spec.rb' - 'spec/views/admin/application_settings/_package_registry.html.haml_spec.rb' diff --git a/.rubocop_todo/rspec/scattered_let.yml b/.rubocop_todo/rspec/scattered_let.yml index 9a272ec31cc..05a87c0f178 100644 --- a/.rubocop_todo/rspec/scattered_let.yml +++ b/.rubocop_todo/rspec/scattered_let.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/ScatteredLet: Exclude: - 'ee/spec/features/boards/user_visits_board_spec.rb' @@ -30,7 +30,6 @@ RSpec/ScatteredLet: - 'ee/spec/helpers/ee/subscribable_banner_helper_spec.rb' - 'ee/spec/lib/audit/external_status_check_changes_auditor_spec.rb' - 'ee/spec/lib/ee/api/helpers/members_helpers_spec.rb' - - 'ee/spec/lib/ee/audit/compliance_framework_changes_auditor_spec.rb' - 'ee/spec/lib/ee/gitlab/scim/provisioning_service_spec.rb' - 'ee/spec/lib/gitlab/background_migration/migrate_requirements_to_work_items_spec.rb' - 'ee/spec/lib/gitlab/ci/parsers/security/dast_spec.rb' @@ -62,7 +61,6 @@ RSpec/ScatteredLet: - 'ee/spec/requests/api/graphql/project/dast_profile_schedule_spec.rb' - 'ee/spec/requests/api/graphql/project/environments_spec.rb' - 'ee/spec/requests/api/graphql/project/pipeline/dast_profile_spec.rb' - - 'ee/spec/requests/api/graphql/project/pipeline/security_report_finding_spec.rb' - 'ee/spec/requests/api/graphql/project/pipeline/security_report_summary_spec.rb' - 'ee/spec/requests/api/graphql/project/pipelines/dast_profile_spec.rb' - 'ee/spec/requests/api/graphql/project/requirements_management/requirements_spec.rb' @@ -83,7 +81,6 @@ RSpec/ScatteredLet: - 'ee/spec/services/ee/issue_links/create_service_spec.rb' - 'ee/spec/services/ee/issues/create_service_spec.rb' - 'ee/spec/services/ee/merge_requests/base_service_spec.rb' - - 'ee/spec/services/ee/merge_requests/update_assignees_service_spec.rb' - 'ee/spec/services/ee/merge_requests/update_reviewers_service_spec.rb' - 'ee/spec/services/epic_issues/create_service_spec.rb' - 'ee/spec/services/epics/issue_promote_service_spec.rb' @@ -95,12 +92,10 @@ RSpec/ScatteredLet: - 'ee/spec/services/incident_management/oncall_rotations/remove_participant_service_spec.rb' - 'ee/spec/services/members/activate_service_spec.rb' - 'ee/spec/services/personal_access_tokens/groups/update_lifetime_service_spec.rb' - - 'ee/spec/services/sbom/ingestion/occurrence_map_spec.rb' - 'ee/spec/services/security/report_summary_service_spec.rb' - 'ee/spec/services/vulnerabilities/security_finding/create_issue_service_spec.rb' - 'ee/spec/views/subscriptions/groups/edit.html.haml_spec.rb' - 'ee/spec/workers/concerns/update_orchestration_policy_configuration_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb' - 'spec/controllers/concerns/metrics_dashboard_spec.rb' - 'spec/controllers/import/bitbucket_server_controller_spec.rb' - 'spec/controllers/projects/deploy_keys_controller_spec.rb' @@ -166,7 +161,6 @@ RSpec/ScatteredLet: - 'spec/lib/gitlab/ci/yaml_processor_spec.rb' - 'spec/lib/gitlab/cycle_analytics/stage_summary_spec.rb' - 'spec/lib/gitlab/database/background_migration/batched_migration_spec.rb' - - 'spec/lib/gitlab/database/migrations/test_batched_background_runner_spec.rb' - 'spec/lib/gitlab/database/partitioning/partition_manager_spec.rb' - 'spec/lib/gitlab/database/postgresql_adapter/empty_query_ping_spec.rb' - 'spec/lib/gitlab/database/reindexing/grafana_notifier_spec.rb' @@ -205,7 +199,6 @@ RSpec/ScatteredLet: - 'spec/lib/gitlab/tree_summary_spec.rb' - 'spec/lib/gitlab/usage/metrics/instrumentations/gitlab_for_jira_app_proxy_installations_count_metric_spec.rb' - 'spec/lib/gitlab/usage_data_metrics_spec.rb' - - 'spec/lib/gitlab/usage_data_spec.rb' - 'spec/lib/gitlab/utils/measuring_spec.rb' - 'spec/lib/gitlab/zentao/client_spec.rb' - 'spec/lib/peek/views/external_http_spec.rb' @@ -263,8 +256,6 @@ RSpec/ScatteredLet: - 'spec/serializers/ci/job_entity_spec.rb' - 'spec/serializers/merge_requests/pipeline_entity_spec.rb' - 'spec/services/ci/create_downstream_pipeline_service_spec.rb' - - 'spec/services/ci/create_pipeline_service/include_spec.rb' - - 'spec/services/ci/create_pipeline_service/logger_spec.rb' - 'spec/services/ci/create_pipeline_service/rules_spec.rb' - 'spec/services/ci/create_pipeline_service_spec.rb' - 'spec/services/ci/destroy_pipeline_service_spec.rb' diff --git a/.rubocop_todo/rspec/shared_examples.yml b/.rubocop_todo/rspec/shared_examples.yml index 612692bdb55..4b3596f59d3 100644 --- a/.rubocop_todo/rspec/shared_examples.yml +++ b/.rubocop_todo/rspec/shared_examples.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/SharedExamples: Exclude: - 'ee/spec/lib/ee/gitlab/auth/ldap/sync/group_spec.rb' diff --git a/.rubocop_todo/rspec/variable_definition.yml b/.rubocop_todo/rspec/variable_definition.yml index 797fa763ba1..187064b9bb4 100644 --- a/.rubocop_todo/rspec/variable_definition.yml +++ b/.rubocop_todo/rspec/variable_definition.yml @@ -1,6 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. RSpec/VariableDefinition: Exclude: - - 'spec/lib/gitlab/usage_data_spec.rb' - 'spec/presenters/packages/npm/package_presenter_spec.rb' diff --git a/.rubocop_todo/rspec/verified_doubles.yml b/.rubocop_todo/rspec/verified_doubles.yml index c9f405a8283..1d4b6d23e0d 100644 --- a/.rubocop_todo/rspec/verified_doubles.yml +++ b/.rubocop_todo/rspec/verified_doubles.yml @@ -1,1149 +1,1070 @@ --- RSpec/VerifiedDoubles: Exclude: - - ee/spec/controllers/boards/issues_controller_spec.rb - - ee/spec/controllers/concerns/ee/routable_actions/sso_enforcement_redirect_spec.rb - - ee/spec/controllers/groups/clusters_controller_spec.rb - - ee/spec/controllers/groups/sso_controller_spec.rb - - ee/spec/controllers/oauth/geo_auth_controller_spec.rb - - ee/spec/controllers/projects/clusters_controller_spec.rb - - ee/spec/db/production/license_spec.rb - - ee/spec/elastic/migrate/20210510113500_delete_merge_requests_from_original_index_spec.rb - - ee/spec/elastic/migrate/20210510143200_delete_notes_from_original_index_spec.rb - - ee/spec/features/admin/groups/admin_subscription_alerts_spec.rb - - ee/spec/features/billings/billing_plans_spec.rb - - ee/spec/features/merge_trains/two_merge_requests_on_train_spec.rb - - ee/spec/features/profiles/account_spec.rb - - ee/spec/finders/license_template_finder_spec.rb - - ee/spec/finders/projects/integrations/jira/issues_finder_spec.rb - - ee/spec/finders/security/pipeline_vulnerabilities_finder_spec.rb - - ee/spec/finders/template_finder_spec.rb - - ee/spec/graphql/ee/resolvers/board_lists_resolver_spec.rb - - ee/spec/graphql/mutations/dast_scanner_profiles/create_spec.rb - - ee/spec/graphql/mutations/dast_site_profiles/create_spec.rb - - ee/spec/graphql/mutations/dast_site_profiles/delete_spec.rb - - ee/spec/graphql/mutations/dast_site_profiles/update_spec.rb - - ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb - - ee/spec/graphql/mutations/issues/promote_to_epic_spec.rb - - ee/spec/graphql/mutations/issues/set_epic_spec.rb - - ee/spec/graphql/mutations/merge_requests/accept_spec.rb - - ee/spec/graphql/mutations/vulnerabilities/create_external_issue_link_spec.rb - - ee/spec/graphql/mutations/vulnerabilities/destroy_external_issue_link_spec.rb - - ee/spec/graphql/resolvers/board_groupings/epics_resolvers_spec.rb - - ee/spec/graphql/resolvers/external_issue_resolver_spec.rb - - ee/spec/graphql/resolvers/security_report_summary_resolver_spec.rb - - ee/spec/graphql/resolvers/vulnerabilities/details_resolver_spec.rb - - ee/spec/graphql/types/network_policy_type_spec.rb - - ee/spec/graphql/types/security/training_type_spec.rb - - ee/spec/helpers/billing_plans_helper_spec.rb - - ee/spec/helpers/ee/ci/runners_helper_spec.rb - - ee/spec/helpers/ee/integrations_helper_spec.rb - - ee/spec/helpers/ee/subscribable_banner_helper_spec.rb - - ee/spec/helpers/ee/trial_helper_spec.rb - - ee/spec/helpers/ee/trial_registration_helper_spec.rb - - ee/spec/helpers/kerberos_helper_spec.rb - - ee/spec/helpers/license_helper_spec.rb - - ee/spec/helpers/roadmaps_helper_spec.rb - - ee/spec/helpers/routing/pseudonymization_helper_spec.rb - - ee/spec/helpers/subscriptions_helper_spec.rb - - ee/spec/helpers/timeboxes_helper_spec.rb - - ee/spec/helpers/vulnerabilities_helper_spec.rb - - ee/spec/lib/ee/backup/repositories_spec.rb - - ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch_spec.rb - - ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_spec.rb - - ee/spec/lib/ee/gitlab/ci/matching/runner_matcher_spec.rb - - ee/spec/lib/ee/gitlab/ci/pipeline/quota/size_spec.rb - - ee/spec/lib/ee/gitlab/etag_caching/router/rails_spec.rb - - ee/spec/lib/ee/gitlab/gon_helper_spec.rb - - ee/spec/lib/elastic/latest/config_shared_examples.rb - - ee/spec/lib/elastic/latest/git_instance_proxy_spec.rb - - ee/spec/lib/elastic/migration_spec.rb - - ee/spec/lib/elastic/multi_version_class_proxy_spec.rb - - ee/spec/lib/elastic/multi_version_instance_proxy_spec.rb - - ee/spec/lib/gitlab/audit/target_spec.rb - - ee/spec/lib/gitlab/auth/group_saml/response_check_spec.rb - - ee/spec/lib/gitlab/auth/group_saml/token_actor_spec.rb - - ee/spec/lib/gitlab/auth/otp/session_enforcer_spec.rb - - ee/spec/lib/gitlab/authority_analyzer_spec.rb - - ee/spec/lib/gitlab/cache_spec.rb - - ee/spec/lib/gitlab/ci/pipeline/chain/limit/activity_spec.rb - - ee/spec/lib/gitlab/ci/pipeline/chain/limit/size_spec.rb - - ee/spec/lib/gitlab/code_owners/groups_loader_spec.rb - - ee/spec/lib/gitlab/code_owners/users_loader_spec.rb - - ee/spec/lib/gitlab/custom_file_templates_spec.rb - - ee/spec/lib/gitlab/elastic/client_spec.rb - - ee/spec/lib/gitlab/elastic/search_results_spec.rb - - ee/spec/lib/gitlab/expiring_subscription_message_spec.rb - - ee/spec/lib/gitlab/geo/git_ssh_proxy_spec.rb - - ee/spec/lib/gitlab/geo/log_cursor/lease_spec.rb - - ee/spec/lib/gitlab/geo/oauth/logout_token_spec.rb - - ee/spec/lib/gitlab/geo/oauth/session_spec.rb - - ee/spec/lib/gitlab/geo/replicator_spec.rb - - ee/spec/lib/gitlab/geo_spec.rb - - ee/spec/lib/gitlab/git_access_spec.rb - - ee/spec/lib/gitlab/graphql/aggregations/issues/lazy_links_aggregate_spec.rb - - ee/spec/lib/gitlab/import_export/group/relation_factory_spec.rb - - ee/spec/lib/gitlab/middleware/ip_restrictor_spec.rb - - ee/spec/lib/gitlab/prometheus/queries/cluster_query_spec.rb - - ee/spec/lib/gitlab/subscription_portal/clients/rest_spec.rb - - ee/spec/lib/sidebars/groups/menus/analytics_menu_spec.rb - - ee/spec/lib/system_check/geo/geo_database_configured_check_spec.rb - - ee/spec/models/app_sec/fuzzing/api/ci_configuration_spec.rb - - ee/spec/models/concerns/geo/verification_state_spec.rb - - ee/spec/models/ee/ci/job_artifact_spec.rb - - ee/spec/models/ee/user_spec.rb - - ee/spec/models/elastic/index_setting_spec.rb - - ee/spec/models/geo/project_registry_spec.rb - - ee/spec/models/geo/secondary_usage_data_spec.rb - - ee/spec/models/geo_node_status_spec.rb - - ee/spec/models/integrations/github/status_message_spec.rb - - ee/spec/models/integrations/github_spec.rb - - ee/spec/models/project_spec.rb - - ee/spec/models/push_rule_spec.rb - - ee/spec/presenters/audit_event_presenter_spec.rb - - ee/spec/presenters/group_member_presenter_spec.rb - - ee/spec/presenters/merge_request_approver_presenter_spec.rb - - ee/spec/presenters/project_member_presenter_spec.rb - - ee/spec/requests/api/geo_spec.rb - - ee/spec/requests/api/graphql/mutations/dast_site_profiles/delete_spec.rb - - ee/spec/requests/api/internal/base_spec.rb - - ee/spec/requests/api/ldap_spec.rb - - ee/spec/requests/api/visual_review_discussions_spec.rb - - ee/spec/requests/api/vulnerability_findings_spec.rb - - ee/spec/requests/callout_spec.rb - - ee/spec/requests/rack_attack_spec.rb - - ee/spec/serializers/blocking_merge_request_entity_spec.rb - - ee/spec/serializers/clusters/environment_entity_spec.rb - - ee/spec/serializers/dashboard_operations_project_entity_spec.rb - - ee/spec/serializers/dependency_entity_spec.rb - - ee/spec/serializers/ee/admin/user_entity_spec.rb - - ee/spec/serializers/ee/build_details_entity_spec.rb - - ee/spec/serializers/ee/ci/job_entity_spec.rb - - ee/spec/serializers/ee/ci/pipeline_entity_spec.rb - - ee/spec/serializers/ee/group_child_entity_spec.rb - - ee/spec/serializers/ee/issue_board_entity_spec.rb - - ee/spec/serializers/ee/issue_entity_spec.rb - - ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb - - ee/spec/serializers/ee/merge_request_poll_cached_widget_entity_spec.rb - - ee/spec/serializers/ee/note_entity_spec.rb - - ee/spec/serializers/environment_entity_spec.rb - - ee/spec/serializers/epic_entity_spec.rb - - ee/spec/serializers/epic_note_entity_spec.rb - - ee/spec/serializers/integrations/jira_serializers/issue_detail_entity_spec.rb - - ee/spec/serializers/integrations/jira_serializers/issue_entity_spec.rb - - ee/spec/serializers/issuable_sidebar_extras_entity_spec.rb - - ee/spec/serializers/issues/linked_issue_feature_flag_entity_spec.rb - - ee/spec/serializers/linked_feature_flag_issue_entity_spec.rb - - ee/spec/serializers/merge_request_poll_widget_entity_spec.rb - - ee/spec/serializers/merge_request_sidebar_basic_entity_spec.rb - - ee/spec/serializers/merge_request_widget_entity_spec.rb - - ee/spec/serializers/test_reports_comparer_serializer_spec.rb - - ee/spec/serializers/user_analytics_entity_spec.rb - - ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb - - ee/spec/serializers/vulnerabilities/finding_entity_spec.rb - - ee/spec/serializers/vulnerabilities/finding_reports_comparer_entity_spec.rb - - ee/spec/serializers/vulnerabilities/finding_serializer_spec.rb - - ee/spec/serializers/vulnerability_note_entity_spec.rb - - ee/spec/services/alert_management/extract_alert_payload_fields_service_spec.rb - - ee/spec/services/app_sec/dast/scans/create_service_spec.rb - - ee/spec/services/app_sec/dast/site_profiles/update_service_spec.rb - - ee/spec/services/app_sec/fuzzing/api/ci_configuration_create_service_spec.rb - - ee/spec/services/ci/create_pipeline_service/dast_configuration_spec.rb - - ee/spec/services/ci/minutes/track_live_consumption_service_spec.rb - - ee/spec/services/ci/minutes/update_project_and_namespace_usage_service_spec.rb - - ee/spec/services/ci/pipeline_creation/drop_not_runnable_builds_service_spec.rb - - ee/spec/services/ci/pipeline_creation/start_pipeline_service_spec.rb - - ee/spec/services/dashboard/operations/list_service_spec.rb - - ee/spec/services/dashboard/projects/create_service_spec.rb - - ee/spec/services/ee/ci/job_artifacts/destroy_all_expired_service_spec.rb - - ee/spec/services/ee/ci/job_artifacts/destroy_batch_service_spec.rb - - ee/spec/services/ee/issues/create_service_spec.rb - - ee/spec/services/ee/issues/update_service_spec.rb - - ee/spec/services/ee/merge_requests/base_service_spec.rb - - ee/spec/services/ee/merge_requests/post_merge_service_spec.rb - - ee/spec/services/ee/merge_requests/refresh_service_spec.rb - - ee/spec/services/ee/notification_service_spec.rb - - ee/spec/services/ee/post_receive_service_spec.rb - - ee/spec/services/geo/blob_download_service_spec.rb - - ee/spec/services/geo/graphql_request_service_spec.rb - - ee/spec/services/geo/node_status_request_service_spec.rb - - ee/spec/services/geo/replication_toggle_request_service_spec.rb - - ee/spec/services/geo/repository_verification_primary_service_spec.rb - - ee/spec/services/gitlab_subscriptions/fetch_subscription_plans_service_spec.rb - - ee/spec/services/group_saml/group_managed_accounts/clean_up_members_service_spec.rb - - ee/spec/services/group_saml/sign_up_service_spec.rb - - ee/spec/services/groups/update_repository_storage_service_spec.rb - - ee/spec/services/ide/schemas_config_service_spec.rb - - ee/spec/services/incident_management/oncall_schedules/update_service_spec.rb - - ee/spec/services/incident_management/pending_escalations/process_service_spec.rb - - ee/spec/services/merge_requests/approval_service_spec.rb - - ee/spec/services/merge_requests/build_service_spec.rb - - ee/spec/services/merge_requests/reset_approvals_service_spec.rb - - ee/spec/services/namespaces/in_product_marketing_emails_service_spec.rb - - ee/spec/services/projects/update_mirror_service_spec.rb - - ee/spec/services/projects/update_pages_service_spec.rb - - ee/spec/services/security/ingestion/ingest_report_slice_service_spec.rb - - ee/spec/services/security/orchestration/assign_service_spec.rb - - ee/spec/services/security/security_orchestration_policies/on_demand_scan_pipeline_configuration_service_spec.rb - - ee/spec/services/slash_commands/global_slack_handler_spec.rb - - ee/spec/services/status_page/publish_details_service_spec.rb - - ee/spec/services/status_page/publish_service_spec.rb - - ee/spec/services/status_page/trigger_publish_service_spec.rb - - ee/spec/services/system_note_service_spec.rb - - ee/spec/services/vulnerability_exports/export_service_spec.rb - - ee/spec/services/vulnerability_external_issue_links/create_service_spec.rb - - ee/spec/support/helpers/ee/ldap_helpers.rb - - ee/spec/support/prometheus/additional_metrics_shared_examples.rb - - ee/spec/support/shared_examples/controllers/analytics/cycle_analytics/shared_stage_shared_examples.rb - - ee/spec/support/shared_examples/controllers/cluster_metrics_shared_examples.rb - - ee/spec/support/shared_examples/models/concerns/blob_replicator_strategy_shared_examples.rb - - ee/spec/support/shared_examples/models/concerns/verifiable_replicator_shared_examples.rb - - ee/spec/support/shared_examples/models/geo_verifiable_registry_shared_examples.rb - - ee/spec/support/shared_examples/serializers/report_status_shared_examples.rb - - ee/spec/support/shared_examples/services/alert_management/alert_processing/oncall_notifications_shared_examples.rb - - ee/spec/support/shared_examples/services/base_sync_service_shared_examples.rb - - ee/spec/support/shared_examples/services/geo/geo_request_service_shared_examples.rb - - ee/spec/support/shared_examples/status_page/reference_links_examples.rb - - ee/spec/validators/json_schema_validator_spec.rb - - ee/spec/views/layouts/header/_ee_subscribable_banner.html.haml_spec.rb - - ee/spec/workers/ci/sync_reports_to_report_approval_rules_worker_spec.rb - - ee/spec/workers/geo/container_repository_sync_worker_spec.rb - - ee/spec/workers/compliance_management/chain_of_custody_report_worker_spec.rb - - ee/spec/workers/geo/design_repository_sync_worker_spec.rb - - ee/spec/workers/geo/destroy_worker_spec.rb - - ee/spec/workers/geo/event_worker_spec.rb - - ee/spec/workers/geo/metrics_update_worker_spec.rb - - ee/spec/workers/geo/prune_event_log_worker_spec.rb - - ee/spec/workers/geo/registry_sync_worker_spec.rb - - ee/spec/workers/geo/reverification_batch_worker_spec.rb - - ee/spec/workers/geo/sidekiq_cron_config_worker_spec.rb - - ee/spec/workers/geo/sync_timeout_cron_worker_spec.rb - - ee/spec/workers/geo/verification_batch_worker_spec.rb - - ee/spec/workers/geo/verification_cron_worker_spec.rb - - ee/spec/workers/geo/verification_timeout_worker_spec.rb - - ee/spec/workers/geo/verification_worker_spec.rb - - ee/spec/workers/iterations/cadences/create_iterations_worker_spec.rb - - ee/spec/workers/iterations/roll_over_issues_worker_spec.rb - - ee/spec/workers/ldap_group_sync_worker_spec.rb - - ee/spec/workers/merge_request_reset_approvals_worker_spec.rb - - ee/spec/workers/new_epic_worker_spec.rb - - ee/spec/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker_spec.rb - - qa/spec/git/repository_spec.rb - - qa/spec/page/base_spec.rb - - qa/spec/page/validator_spec.rb - - qa/spec/page/view_spec.rb - - qa/spec/resource/api_fabricator_spec.rb - - qa/spec/resource/base_spec.rb - - qa/spec/runtime/application_settings_spec.rb - - qa/spec/runtime/feature_spec.rb - - qa/spec/runtime/release_spec.rb - - qa/spec/scenario/template_spec.rb - - qa/spec/scenario/test/integration/github_spec.rb - - qa/spec/scenario/test/sanity/selectors_spec.rb - - qa/spec/specs/allure_report_spec.rb - - qa/spec/support/formatters/allure_metadata_formatter_spec.rb - - qa/spec/support/page_error_checker_spec.rb - - qa/spec/support/run_spec.rb - - qa/spec/tools/long_running_spec_reporter_spec.rb - - spec/benchmarks/banzai_benchmark.rb - - spec/bin/feature_flag_spec.rb - - spec/controllers/admin/clusters_controller_spec.rb - - spec/controllers/application_controller_spec.rb - - spec/controllers/boards/issues_controller_spec.rb - - spec/controllers/boards/lists_controller_spec.rb - - spec/controllers/concerns/checks_collaboration_spec.rb - - spec/controllers/concerns/import_url_params_spec.rb - - spec/controllers/concerns/issuable_actions_spec.rb - - spec/controllers/concerns/issuable_collections_spec.rb - - spec/controllers/concerns/page_limiter_spec.rb - - spec/controllers/concerns/spammable_actions/akismet_mark_as_spam_action_spec.rb - - spec/controllers/concerns/spammable_actions/captcha_check/html_format_actions_support_spec.rb - - spec/controllers/concerns/spammable_actions/captcha_check/json_format_actions_support_spec.rb - - spec/controllers/dashboard/snippets_controller_spec.rb - - spec/controllers/explore/projects_controller_spec.rb - - spec/controllers/groups/clusters_controller_spec.rb - - spec/controllers/groups/dependency_proxy_auth_controller_spec.rb - - spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb - - spec/controllers/help_controller_spec.rb - - spec/controllers/import/bitbucket_controller_spec.rb - - spec/controllers/import/bitbucket_server_controller_spec.rb - - spec/controllers/import/bulk_imports_controller_spec.rb - - spec/controllers/import/fogbugz_controller_spec.rb - - spec/controllers/import/gitea_controller_spec.rb - - spec/controllers/import/github_controller_spec.rb - - spec/controllers/import/gitlab_controller_spec.rb - - spec/controllers/oauth/jira_dvcs/authorizations_controller_spec.rb - - spec/controllers/omniauth_callbacks_controller_spec.rb - - spec/controllers/profiles/two_factor_auths_controller_spec.rb - - spec/controllers/projects/blob_controller_spec.rb - - spec/controllers/projects/branches_controller_spec.rb - - spec/controllers/projects/clusters_controller_spec.rb - - spec/controllers/projects/import/jira_controller_spec.rb - - spec/controllers/projects/jobs_controller_spec.rb - - spec/controllers/projects/merge_requests/diffs_controller_spec.rb - - spec/controllers/projects/merge_requests_controller_spec.rb - - spec/controllers/projects/notes_controller_spec.rb - - spec/controllers/projects/pages_controller_spec.rb - - spec/controllers/projects/performance_monitoring/dashboards_controller_spec.rb - - spec/controllers/projects/pipelines_controller_spec.rb - - spec/controllers/projects/prometheus/metrics_controller_spec.rb - - spec/controllers/projects/registry/tags_controller_spec.rb - - spec/controllers/projects/settings/operations_controller_spec.rb - - spec/controllers/projects/snippets_controller_spec.rb - - spec/controllers/sessions_controller_spec.rb - - spec/dependencies/omniauth_saml_spec.rb - - spec/experiments/concerns/project_commit_count_spec.rb - - spec/factories/ci/job_artifacts.rb - - spec/factories/clusters/applications/helm.rb - - spec/features/admin/admin_system_info_spec.rb - - spec/features/clusters/create_agent_spec.rb - - spec/features/file_uploads/maven_package_spec.rb - - spec/features/groups/container_registry_spec.rb - - spec/features/help_pages_spec.rb - - spec/features/issuables/markdown_references/jira_spec.rb - - spec/features/markdown/markdown_spec.rb - - spec/features/profiles/personal_access_tokens_spec.rb - - spec/features/projects/clusters/gcp_spec.rb - - spec/features/projects/clusters_spec.rb - - spec/features/projects/container_registry_spec.rb - - spec/features/projects/integrations/user_activates_jira_spec.rb - - spec/finders/ci/auth_job_finder_spec.rb - - spec/finders/merge_requests/oldest_per_commit_finder_spec.rb - - spec/finders/repositories/changelog_commits_finder_spec.rb - - spec/finders/repositories/changelog_tag_finder_spec.rb - - spec/graphql/features/authorization_spec.rb - - spec/graphql/features/feature_flag_spec.rb - - spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb - - spec/graphql/mutations/alert_management/update_alert_status_spec.rb - - spec/graphql/mutations/branches/create_spec.rb - - spec/graphql/mutations/ci/job_token_scope/add_project_spec.rb - - spec/graphql/mutations/ci/job_token_scope/remove_project_spec.rb - - spec/graphql/mutations/concerns/mutations/finds_by_gid_spec.rb - - spec/graphql/mutations/design_management/upload_spec.rb - - spec/graphql/mutations/environments/canary_ingress/update_spec.rb - - spec/graphql/mutations/merge_requests/accept_spec.rb - - spec/graphql/mutations/merge_requests/create_spec.rb - - spec/graphql/resolvers/design_management/versions_resolver_spec.rb - - spec/graphql/resolvers/kas/agent_connections_resolver_spec.rb - - spec/graphql/resolvers/projects/jira_projects_resolver_spec.rb - - spec/graphql/types/ci/detailed_status_type_spec.rb - - spec/graphql/types/ci/status_action_type_spec.rb - - spec/graphql/types/kas/agent_connection_type_spec.rb - - spec/graphql/types/permission_types/base_permission_type_spec.rb - - spec/graphql/types/project_type_spec.rb - - spec/graphql/types/range_input_type_spec.rb - - spec/helpers/blame_helper_spec.rb - - spec/helpers/blob_helper_spec.rb - - spec/helpers/ci/pipelines_helper_spec.rb - - spec/helpers/ci/status_helper_spec.rb - - spec/helpers/ci/triggers_helper_spec.rb - - spec/helpers/commits_helper_spec.rb - - spec/helpers/dev_ops_report_helper_spec.rb - - spec/helpers/diff_helper_spec.rb - - spec/helpers/emails_helper_spec.rb - - spec/helpers/environments_helper_spec.rb - - spec/helpers/form_helper_spec.rb - - spec/helpers/gitlab_routing_helper_spec.rb - - spec/helpers/integrations_helper_spec.rb - - spec/helpers/issuables_helper_spec.rb - - spec/helpers/markup_helper_spec.rb - - spec/helpers/merge_requests_helper_spec.rb - - spec/helpers/notes_helper_spec.rb - - spec/helpers/numbers_helper_spec.rb - - spec/helpers/preferences_helper_spec.rb - - spec/helpers/projects_helper_spec.rb - - spec/helpers/routing/pseudonymization_helper_spec.rb - - spec/helpers/sorting_helper_spec.rb - - spec/helpers/submodule_helper_spec.rb - - spec/helpers/todos_helper_spec.rb - - spec/helpers/tree_helper_spec.rb - - spec/helpers/version_check_helper_spec.rb - - spec/initializers/doorkeeper_spec.rb - - spec/initializers/global_id_spec.rb - - spec/initializers/hangouts_chat_http_override_spec.rb - - spec/lib/api/base_spec.rb - - spec/lib/api/entities/ci/job_request/image_spec.rb - - spec/lib/api/entities/ci/job_request/port_spec.rb - - spec/lib/api/helpers/authentication_spec.rb - - spec/lib/api/helpers/caching_spec.rb - - spec/lib/api/helpers/graphql_helpers_spec.rb - - spec/lib/api/helpers/pagination_spec.rb - - spec/lib/api/helpers/pagination_strategies_spec.rb - - spec/lib/api/helpers/variables_helpers_spec.rb - - spec/lib/api/helpers_spec.rb - - spec/lib/atlassian/jira_connect/client_spec.rb - - spec/lib/backup/files_spec.rb - - spec/lib/backup/repositories_spec.rb - - spec/lib/banzai/cross_project_reference_spec.rb - - spec/lib/banzai/filter/gollum_tags_filter_spec.rb - - spec/lib/banzai/filter/repository_link_filter_spec.rb - - spec/lib/banzai/pipeline/wiki_pipeline_spec.rb - - spec/lib/banzai/querying_spec.rb - - spec/lib/banzai/reference_parser/base_parser_spec.rb - - spec/lib/banzai/reference_parser/commit_parser_spec.rb - - spec/lib/banzai/reference_parser/commit_range_parser_spec.rb - - spec/lib/banzai/render_context_spec.rb - - spec/lib/banzai/renderer_spec.rb - - spec/lib/bitbucket/connection_spec.rb - - spec/lib/bitbucket/paginator_spec.rb - - spec/lib/bitbucket_server/paginator_spec.rb - - spec/lib/bulk_imports/clients/http_spec.rb - - spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb - - spec/lib/bulk_imports/common/extractors/rest_extractor_spec.rb - - spec/lib/bulk_imports/ndjson_pipeline_spec.rb - - spec/lib/bulk_imports/network_error_spec.rb - - spec/lib/bulk_imports/projects/pipelines/snippets_repository_pipeline_spec.rb - - spec/lib/bulk_imports/projects/transformers/project_attributes_transformer_spec.rb - - spec/lib/constraints/admin_constrainer_spec.rb - - spec/lib/constraints/group_url_constrainer_spec.rb - - spec/lib/constraints/jira_encoded_url_constrainer_spec.rb - - spec/lib/constraints/project_url_constrainer_spec.rb - - spec/lib/constraints/user_url_constrainer_spec.rb - - spec/lib/csv_builder_spec.rb - - spec/lib/csv_builders/stream_spec.rb - - spec/lib/extracts_path_spec.rb - - spec/lib/feature_spec.rb - - spec/lib/gitaly/server_spec.rb - - spec/lib/gitlab/api_authentication/token_locator_spec.rb - - spec/lib/gitlab/application_context_spec.rb - - spec/lib/gitlab/application_rate_limiter_spec.rb - - spec/lib/gitlab/asciidoc/include_processor_spec.rb - - spec/lib/gitlab/auth/auth_finders_spec.rb - - spec/lib/gitlab/auth/blocked_user_tracker_spec.rb - - spec/lib/gitlab/auth/ldap/adapter_spec.rb - - spec/lib/gitlab/auth/ldap/authentication_spec.rb - - spec/lib/gitlab/authorized_keys_spec.rb - - spec/lib/gitlab/avatar_cache_spec.rb - - spec/lib/gitlab/background_migration/base_job_spec.rb - - spec/lib/gitlab/background_migration/batching_strategies/base_strategy_spec.rb - - spec/lib/gitlab/background_migration/fix_merge_request_diff_commit_users_spec.rb - - spec/lib/gitlab/background_migration/job_coordinator_spec.rb - - spec/lib/gitlab/background_migration/migrate_merge_request_diff_commit_users_spec.rb - - spec/lib/gitlab/background_migration_spec.rb - - spec/lib/gitlab/bitbucket_import/importer_spec.rb - - spec/lib/gitlab/bitbucket_import/project_creator_spec.rb - - spec/lib/gitlab/bitbucket_server_import/importer_spec.rb - - spec/lib/gitlab/cache/import/caching_spec.rb - - spec/lib/gitlab/changelog/committer_spec.rb - - spec/lib/gitlab/chat/responder/base_spec.rb - - spec/lib/gitlab/chat/responder_spec.rb - - spec/lib/gitlab/ci/badge/coverage/metadata_spec.rb - - spec/lib/gitlab/ci/badge/coverage/template_spec.rb - - spec/lib/gitlab/ci/badge/pipeline/metadata_spec.rb - - spec/lib/gitlab/ci/badge/pipeline/template_spec.rb - - spec/lib/gitlab/ci/build/cache_spec.rb - - spec/lib/gitlab/ci/build/policy/changes_spec.rb - - spec/lib/gitlab/ci/build/policy/variables_spec.rb - - spec/lib/gitlab/ci/build/policy_spec.rb - - spec/lib/gitlab/ci/build/prerequisite/kubernetes_namespace_spec.rb - - spec/lib/gitlab/ci/build/rules/rule_spec.rb - - spec/lib/gitlab/ci/build/rules_spec.rb - - spec/lib/gitlab/ci/build/status/reason_spec.rb - - spec/lib/gitlab/ci/config/entry/default_spec.rb - - spec/lib/gitlab/ci/config/entry/job_spec.rb - - spec/lib/gitlab/ci/config/entry/processable_spec.rb - - spec/lib/gitlab/ci/config/external/context_spec.rb - - spec/lib/gitlab/ci/config/external/file/local_spec.rb - - spec/lib/gitlab/ci/config/external/file/project_spec.rb - - spec/lib/gitlab/ci/config/external/rules_spec.rb - - spec/lib/gitlab/ci/parsers/test/junit_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/evaluate_workflow_rules_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/helpers_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/limit/deployments_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/remove_unwanted_chat_jobs_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/sequence_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/skip_spec.rb - - spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/and_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/equals_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/matches_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/not_equals_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/not_matches_spec.rb - - spec/lib/gitlab/ci/pipeline/expression/lexeme/or_spec.rb - - spec/lib/gitlab/ci/pipeline/preloader_spec.rb - - spec/lib/gitlab/ci/pipeline/quota/deployments_spec.rb - - spec/lib/gitlab/ci/pipeline/seed/build_spec.rb - - spec/lib/gitlab/ci/reports/security/report_spec.rb - - spec/lib/gitlab/ci/status/build/action_spec.rb - - spec/lib/gitlab/ci/status/build/cancelable_spec.rb - - spec/lib/gitlab/ci/status/build/canceled_spec.rb - - spec/lib/gitlab/ci/status/build/created_spec.rb - - spec/lib/gitlab/ci/status/build/erased_spec.rb - - spec/lib/gitlab/ci/status/build/failed_allowed_spec.rb - - spec/lib/gitlab/ci/status/build/failed_spec.rb - - spec/lib/gitlab/ci/status/build/pending_spec.rb - - spec/lib/gitlab/ci/status/build/preparing_spec.rb - - spec/lib/gitlab/ci/status/build/retried_spec.rb - - spec/lib/gitlab/ci/status/build/retryable_spec.rb - - spec/lib/gitlab/ci/status/build/skipped_spec.rb - - spec/lib/gitlab/ci/status/build/stop_spec.rb - - spec/lib/gitlab/ci/status/build/unschedule_spec.rb - - spec/lib/gitlab/ci/status/canceled_spec.rb - - spec/lib/gitlab/ci/status/core_spec.rb - - spec/lib/gitlab/ci/status/created_spec.rb - - spec/lib/gitlab/ci/status/factory_spec.rb - - spec/lib/gitlab/ci/status/failed_spec.rb - - spec/lib/gitlab/ci/status/manual_spec.rb - - spec/lib/gitlab/ci/status/pending_spec.rb - - spec/lib/gitlab/ci/status/pipeline/blocked_spec.rb - - spec/lib/gitlab/ci/status/pipeline/delayed_spec.rb - - spec/lib/gitlab/ci/status/preparing_spec.rb - - spec/lib/gitlab/ci/status/running_spec.rb - - spec/lib/gitlab/ci/status/scheduled_spec.rb - - spec/lib/gitlab/ci/status/skipped_spec.rb - - spec/lib/gitlab/ci/status/stage/play_manual_spec.rb - - spec/lib/gitlab/ci/status/success_spec.rb - - spec/lib/gitlab/ci/status/success_warning_spec.rb - - spec/lib/gitlab/ci/status/waiting_for_resource_spec.rb - - spec/lib/gitlab/ci/trace/archive_spec.rb - - spec/lib/gitlab/ci/trace/remote_checksum_spec.rb - - spec/lib/gitlab/ci/trace/stream_spec.rb - - spec/lib/gitlab/ci/variables/builder_spec.rb - - spec/lib/gitlab/cleanup/orphan_lfs_file_references_spec.rb - - spec/lib/gitlab/cleanup/project_uploads_spec.rb - - spec/lib/gitlab/cleanup/remote_uploads_spec.rb - - spec/lib/gitlab/cluster/puma_worker_killer_observer_spec.rb - - spec/lib/gitlab/cluster/rack_timeout_observer_spec.rb - - spec/lib/gitlab/color_schemes_spec.rb - - spec/lib/gitlab/conan_token_spec.rb - - spec/lib/gitlab/config/entry/configurable_spec.rb - - spec/lib/gitlab/config/entry/factory_spec.rb - - spec/lib/gitlab/config/entry/simplifiable_spec.rb - - spec/lib/gitlab/config/entry/unspecified_spec.rb - - spec/lib/gitlab/config/entry/validator_spec.rb - - spec/lib/gitlab/conflict/file_spec.rb - - spec/lib/gitlab/cross_project_access/check_collection_spec.rb - - spec/lib/gitlab/database/async_indexes_spec.rb - - spec/lib/gitlab/database/background_migration/batched_migration_runner_spec.rb - - spec/lib/gitlab/database/background_migration/batched_migration_wrapper_spec.rb - - spec/lib/gitlab/database/batch_count_spec.rb - - spec/lib/gitlab/database/count_spec.rb - - spec/lib/gitlab/database/each_database_spec.rb - - spec/lib/gitlab/database/load_balancing/configuration_spec.rb - - spec/lib/gitlab/database/load_balancing/connection_proxy_spec.rb - - spec/lib/gitlab/database/load_balancing/host_list_spec.rb - - spec/lib/gitlab/database/load_balancing/host_spec.rb - - spec/lib/gitlab/database/load_balancing/load_balancer_spec.rb - - spec/lib/gitlab/database/load_balancing/rack_middleware_spec.rb - - spec/lib/gitlab/database/load_balancing/resolver_spec.rb - - spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb - - spec/lib/gitlab/database/load_balancing/setup_spec.rb - - spec/lib/gitlab/database/load_balancing/sidekiq_server_middleware_spec.rb - - spec/lib/gitlab/database/load_balancing_spec.rb - - spec/lib/gitlab/database/migration_helpers_spec.rb - - spec/lib/gitlab/database/migrations/background_migration_helpers_spec.rb - - spec/lib/gitlab/database/migrations/instrumentation_spec.rb - - spec/lib/gitlab/database/migrations/lock_retry_mixin_spec.rb - - spec/lib/gitlab/database/migrations/observers/query_statistics_spec.rb - - spec/lib/gitlab/database/migrations/observers/total_database_size_change_spec.rb - - spec/lib/gitlab/database/migrations/runner_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/partition_monitoring_spec.rb - - spec/lib/gitlab/database/partitioning/sliding_list_strategy_spec.rb - - spec/lib/gitlab/database/partitioning_migration_helpers/backfill_partitioned_table_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/postgresql_adapter/empty_query_ping_spec.rb - - spec/lib/gitlab/database/postgresql_database_tasks/load_schema_versions_mixin_spec.rb - - spec/lib/gitlab/database/query_analyzer_spec.rb - - spec/lib/gitlab/database/reindexing/grafana_notifier_spec.rb - - spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb - - spec/lib/gitlab/database/shared_model_spec.rb - - spec/lib/gitlab/database_spec.rb - - spec/lib/gitlab/diff/file_collection_sorter_spec.rb - - spec/lib/gitlab/diff/file_spec.rb - - spec/lib/gitlab/diff/line_spec.rb - - spec/lib/gitlab/diff/position_tracer_spec.rb - - spec/lib/gitlab/doctor/secrets_spec.rb - - spec/lib/gitlab/email/handler/service_desk_handler_spec.rb - - spec/lib/gitlab/email/receiver_spec.rb - - spec/lib/gitlab/email/service_desk_receiver_spec.rb - - spec/lib/gitlab/error_tracking/processor/sidekiq_processor_spec.rb - - spec/lib/gitlab/error_tracking_spec.rb - - spec/lib/gitlab/etag_caching/middleware_spec.rb - - spec/lib/gitlab/etag_caching/router/graphql_spec.rb - - spec/lib/gitlab/etag_caching/router/rails_spec.rb - - spec/lib/gitlab/etag_caching/router_spec.rb - - spec/lib/gitlab/event_store/store_spec.rb - - spec/lib/gitlab/experiment/rollout/feature_spec.rb - - spec/lib/gitlab/experimentation/controller_concern_spec.rb - - spec/lib/gitlab/experimentation/experiment_spec.rb - - spec/lib/gitlab/experimentation_spec.rb - - spec/lib/gitlab/external_authorization/access_spec.rb - - spec/lib/gitlab/external_authorization/logger_spec.rb - - spec/lib/gitlab/faraday/error_callback_spec.rb - - spec/lib/gitlab/feature_categories_spec.rb - - spec/lib/gitlab/git/blob_spec.rb - - spec/lib/gitlab/git/commit_spec.rb - - spec/lib/gitlab/git/repository_spec.rb - - spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb - - spec/lib/gitlab/git/tag_spec.rb - - spec/lib/gitlab/git_access_snippet_spec.rb - - spec/lib/gitlab/gitaly_client/commit_service_spec.rb - - spec/lib/gitlab/gitaly_client/conflict_files_stitcher_spec.rb - - spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb - - spec/lib/gitlab/gitaly_client/health_check_service_spec.rb - - spec/lib/gitlab/gitaly_client/ref_service_spec.rb - - spec/lib/gitlab/gitaly_client/remote_service_spec.rb - - spec/lib/gitlab/gitaly_client/repository_service_spec.rb - - spec/lib/gitlab/gitaly_client_spec.rb - - spec/lib/gitlab/github_import/bulk_importing_spec.rb - - spec/lib/gitlab/github_import/client_spec.rb - - spec/lib/gitlab/github_import/importer/diff_note_importer_spec.rb - - spec/lib/gitlab/github_import/importer/diff_notes_importer_spec.rb - - spec/lib/gitlab/github_import/importer/issue_and_label_links_importer_spec.rb - - spec/lib/gitlab/github_import/importer/issue_importer_spec.rb - - spec/lib/gitlab/github_import/importer/issues_importer_spec.rb - - spec/lib/gitlab/github_import/importer/label_links_importer_spec.rb - - spec/lib/gitlab/github_import/importer/labels_importer_spec.rb - - spec/lib/gitlab/github_import/importer/lfs_objects_importer_spec.rb - - spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb - - spec/lib/gitlab/github_import/importer/note_importer_spec.rb - - spec/lib/gitlab/github_import/importer/notes_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_request_merged_by_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_request_review_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_requests_merged_by_importer_spec.rb - - spec/lib/gitlab/github_import/importer/pull_requests_reviews_importer_spec.rb - - spec/lib/gitlab/github_import/importer/releases_importer_spec.rb - - spec/lib/gitlab/github_import/importer/repository_importer_spec.rb - - spec/lib/gitlab/github_import/importer/single_endpoint_diff_notes_importer_spec.rb - - spec/lib/gitlab/github_import/importer/single_endpoint_issue_notes_importer_spec.rb - - spec/lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer_spec.rb - - spec/lib/gitlab/github_import/issuable_finder_spec.rb - - spec/lib/gitlab/github_import/markdown_text_spec.rb - - spec/lib/gitlab/github_import/milestone_finder_spec.rb - - spec/lib/gitlab/github_import/object_counter_spec.rb - - spec/lib/gitlab/github_import/page_counter_spec.rb - - spec/lib/gitlab/github_import/parallel_importer_spec.rb - - spec/lib/gitlab/github_import/parallel_scheduling_spec.rb - - spec/lib/gitlab/github_import/representation/diff_note_spec.rb - - spec/lib/gitlab/github_import/representation/issue_spec.rb - - spec/lib/gitlab/github_import/representation/note_spec.rb - - spec/lib/gitlab/github_import/representation/pull_request_review_spec.rb - - spec/lib/gitlab/github_import/representation/pull_request_spec.rb - - spec/lib/gitlab/github_import/representation/to_hash_spec.rb - - spec/lib/gitlab/github_import/representation/user_spec.rb - - spec/lib/gitlab/github_import/sequential_importer_spec.rb - - spec/lib/gitlab/github_import/user_finder_spec.rb - - spec/lib/gitlab/github_import_spec.rb - - spec/lib/gitlab/gon_helper_spec.rb - - spec/lib/gitlab/gpg/commit_spec.rb - - spec/lib/gitlab/gpg/invalid_gpg_signature_updater_spec.rb - - spec/lib/gitlab/gpg_spec.rb - - spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb - - spec/lib/gitlab/grape_logging/loggers/perf_logger_spec.rb - - spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb - - spec/lib/gitlab/grape_logging/loggers/urgency_logger_spec.rb - - spec/lib/gitlab/graphql/authorize/object_authorization_spec.rb - - spec/lib/gitlab/graphql/batch_key_spec.rb - - spec/lib/gitlab/graphql/generic_tracing_spec.rb - - spec/lib/gitlab/graphql/lazy_spec.rb - - spec/lib/gitlab/graphql/loaders/issuable_loader_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/graphql/pagination/keyset/connection_generic_keyset_spec.rb - - spec/lib/gitlab/graphql/pagination/keyset/connection_spec.rb - - spec/lib/gitlab/graphql/present/field_extension_spec.rb - - spec/lib/gitlab/graphql/timeout_spec.rb - - spec/lib/gitlab/graphql/tracers/application_context_tracer_spec.rb - - spec/lib/gitlab/graphql/tracers/timer_tracer_spec.rb - - spec/lib/gitlab/health_checks/gitaly_check_spec.rb - - spec/lib/gitlab/hook_data/base_builder_spec.rb - - spec/lib/gitlab/hotlinking_detector_spec.rb - - spec/lib/gitlab/import/import_failure_service_spec.rb - - spec/lib/gitlab/import/metrics_spec.rb - - spec/lib/gitlab/import_export/attribute_cleaner_spec.rb - - spec/lib/gitlab/import_export/base/relation_factory_spec.rb - - spec/lib/gitlab/import_export/decompressed_archive_size_validator_spec.rb - - spec/lib/gitlab/import_export/group/relation_factory_spec.rb - - spec/lib/gitlab/import_export/importer_spec.rb - - spec/lib/gitlab/import_export/project/relation_factory_spec.rb - - spec/lib/gitlab/import_export/project/sample/relation_factory_spec.rb - - spec/lib/gitlab/import_export/project/tree_saver_spec.rb - - spec/lib/gitlab/issuables_count_for_state_spec.rb - - spec/lib/gitlab/issues/rebalancing/state_spec.rb - - spec/lib/gitlab/jira/middleware_spec.rb - - spec/lib/gitlab/jira_import/issue_serializer_spec.rb - - spec/lib/gitlab/jira_import/labels_importer_spec.rb - - spec/lib/gitlab/jira_import/metadata_collector_spec.rb - - spec/lib/gitlab/jira_import_spec.rb - - spec/lib/gitlab/job_waiter_spec.rb - - spec/lib/gitlab/json_cache_spec.rb - - spec/lib/gitlab/kas/client_spec.rb - - spec/lib/gitlab/kubernetes/config_map_spec.rb - - spec/lib/gitlab/kubernetes/default_namespace_spec.rb - - spec/lib/gitlab/kubernetes/helm/api_spec.rb - - spec/lib/gitlab/kubernetes/namespace_spec.rb - - spec/lib/gitlab/lazy_spec.rb - - spec/lib/gitlab/legacy_github_import/branch_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/comment_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/importer_spec.rb - - spec/lib/gitlab/legacy_github_import/issuable_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/issue_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/label_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/milestone_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/pull_request_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/release_formatter_spec.rb - - spec/lib/gitlab/legacy_github_import/user_formatter_spec.rb - - spec/lib/gitlab/lets_encrypt/client_spec.rb - - spec/lib/gitlab/mail_room/mail_room_spec.rb - - spec/lib/gitlab/manifest_import/metadata_spec.rb - - spec/lib/gitlab/markdown_cache/field_data_spec.rb - - spec/lib/gitlab/merge_requests/commit_message_generator_spec.rb - - spec/lib/gitlab/merge_requests/mergeability/redis_interface_spec.rb - - spec/lib/gitlab/metrics/boot_time_tracker_spec.rb - - spec/lib/gitlab/metrics/dashboard/importers/prometheus_metrics_spec.rb - - spec/lib/gitlab/metrics/elasticsearch_rack_middleware_spec.rb - - spec/lib/gitlab/metrics/exporter/base_exporter_spec.rb - - spec/lib/gitlab/metrics/exporter/gc_request_middleware_spec.rb - - spec/lib/gitlab/metrics/exporter/metrics_middleware_spec.rb - - spec/lib/gitlab/metrics/rack_middleware_spec.rb - - spec/lib/gitlab/metrics/requests_rack_middleware_spec.rb - - spec/lib/gitlab/metrics/samplers/database_sampler_spec.rb - - spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb - - spec/lib/gitlab/metrics/samplers/ruby_sampler_spec.rb - - spec/lib/gitlab/metrics/sli_spec.rb - - spec/lib/gitlab/metrics/subscribers/action_cable_spec.rb - - spec/lib/gitlab/metrics/subscribers/action_view_spec.rb - - spec/lib/gitlab/metrics/subscribers/active_record_spec.rb - - spec/lib/gitlab/metrics/subscribers/external_http_spec.rb - - spec/lib/gitlab/metrics/subscribers/load_balancing_spec.rb - - spec/lib/gitlab/metrics/subscribers/rack_attack_spec.rb - - spec/lib/gitlab/metrics/subscribers/rails_cache_spec.rb - - spec/lib/gitlab/metrics/web_transaction_spec.rb - - spec/lib/gitlab/middleware/basic_health_check_spec.rb - - spec/lib/gitlab/middleware/compressed_json_spec.rb - - spec/lib/gitlab/middleware/go_spec.rb - - spec/lib/gitlab/middleware/handle_malformed_strings_spec.rb - - spec/lib/gitlab/middleware/multipart_spec.rb - - spec/lib/gitlab/middleware/query_analyzer_spec.rb - - spec/lib/gitlab/middleware/rails_queue_duration_spec.rb - - spec/lib/gitlab/middleware/release_env_spec.rb - - spec/lib/gitlab/middleware/sidekiq_web_static_spec.rb - - spec/lib/gitlab/middleware/speedscope_spec.rb - - spec/lib/gitlab/middleware/webhook_recursion_detection_spec.rb - - spec/lib/gitlab/octokit/middleware_spec.rb - - spec/lib/gitlab/optimistic_locking_spec.rb - - spec/lib/gitlab/pages/settings_spec.rb - - spec/lib/gitlab/pagination/cursor_based_keyset_spec.rb - - spec/lib/gitlab/pagination/gitaly_keyset_pager_spec.rb - - spec/lib/gitlab/pagination/keyset/cursor_based_request_context_spec.rb - - spec/lib/gitlab/pagination/keyset/cursor_pager_spec.rb - - spec/lib/gitlab/pagination/keyset/pager_spec.rb - - spec/lib/gitlab/pagination/keyset/request_context_spec.rb - - spec/lib/gitlab/pagination/keyset_spec.rb - - spec/lib/gitlab/pagination/offset_header_builder_spec.rb - - spec/lib/gitlab/pagination/offset_pagination_spec.rb - - spec/lib/gitlab/performance_bar/stats_spec.rb - - spec/lib/gitlab/phabricator_import/conduit/maniphest_spec.rb - - spec/lib/gitlab/phabricator_import/conduit/response_spec.rb - - spec/lib/gitlab/phabricator_import/conduit/user_spec.rb - - spec/lib/gitlab/polling_interval_spec.rb - - spec/lib/gitlab/popen/runner_spec.rb - - spec/lib/gitlab/process_management_spec.rb - - spec/lib/gitlab/profiler_spec.rb - - spec/lib/gitlab/prometheus/adapter_spec.rb - - spec/lib/gitlab/prometheus/queries/deployment_query_spec.rb - - spec/lib/gitlab/prometheus/queries/knative_invocation_query_spec.rb - - spec/lib/gitlab/prometheus/queries/matched_metric_query_spec.rb - - spec/lib/gitlab/query_limiting/middleware_spec.rb - - spec/lib/gitlab/quick_actions/dsl_spec.rb - - spec/lib/gitlab/repository_cache_spec.rb - - spec/lib/gitlab/routing_spec.rb - - spec/lib/gitlab/runtime_spec.rb - - spec/lib/gitlab/sanitizers/svg_spec.rb - - spec/lib/gitlab/search/abuse_validators/no_abusive_coercion_from_string_validator_spec.rb - - spec/lib/gitlab/search/abuse_validators/no_abusive_term_length_validator_spec.rb - - spec/lib/gitlab/serializer/pagination_spec.rb - - spec/lib/gitlab/sidekiq_config/cli_methods_spec.rb - - spec/lib/gitlab/sidekiq_config/worker_spec.rb - - spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb - - spec/lib/gitlab/sidekiq_middleware/memory_killer_spec.rb - - spec/lib/gitlab/sidekiq_middleware/query_analyzer_spec.rb - - spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb - - spec/lib/gitlab/sidekiq_middleware_spec.rb - - spec/lib/gitlab/sidekiq_status/client_middleware_spec.rb - - spec/lib/gitlab/sidekiq_status/server_middleware_spec.rb - - spec/lib/gitlab/slash_commands/command_spec.rb - - spec/lib/gitlab/slash_commands/deploy_spec.rb - - spec/lib/gitlab/slash_commands/issue_close_spec.rb - - spec/lib/gitlab/slash_commands/issue_comment_spec.rb - - spec/lib/gitlab/slash_commands/issue_new_spec.rb - - spec/lib/gitlab/slash_commands/issue_search_spec.rb - - spec/lib/gitlab/slash_commands/issue_show_spec.rb - - spec/lib/gitlab/slash_commands/presenters/run_spec.rb - - spec/lib/gitlab/slash_commands/run_spec.rb - - spec/lib/gitlab/spamcheck/client_spec.rb - - spec/lib/gitlab/submodule_links_spec.rb - - spec/lib/gitlab/suggestions/file_suggestion_spec.rb - - spec/lib/gitlab/tab_width_spec.rb - - spec/lib/gitlab/themes_spec.rb - - spec/lib/gitlab/tracking_spec.rb - - spec/lib/gitlab/usage/metric_spec.rb - - spec/lib/gitlab/usage/metrics/instrumentations/database_metric_spec.rb - - spec/lib/gitlab/usage/service_ping/payload_keys_processor_spec.rb - - spec/lib/gitlab/usage_data_counters/merge_request_activity_unique_counter_spec.rb - - spec/lib/gitlab/usage_data_spec.rb - - spec/lib/gitlab/utils/usage_data_spec.rb - - spec/lib/gitlab/verify/job_artifacts_spec.rb - - spec/lib/gitlab/verify/lfs_objects_spec.rb - - spec/lib/gitlab/verify/uploads_spec.rb - - spec/lib/gitlab/view/presenter/base_spec.rb - - spec/lib/gitlab/view/presenter/delegated_spec.rb - - spec/lib/gitlab/view/presenter/simple_spec.rb - - spec/lib/gitlab/workhorse_spec.rb - - spec/lib/gitlab_edition_spec.rb - - spec/lib/gitlab_spec.rb - - spec/lib/google_api/cloud_platform/client_spec.rb - - spec/lib/peek/views/active_record_spec.rb - - spec/lib/peek/views/bullet_detailed_spec.rb - - spec/lib/peek/views/external_http_spec.rb - - spec/lib/safe_zip/entry_spec.rb - - spec/lib/serializers/unsafe_json_spec.rb - - spec/lib/sidebars/projects/menus/analytics_menu_spec.rb - - spec/mailers/emails/service_desk_spec.rb - - spec/mailers/notify_spec.rb - - spec/metrics_server/metrics_server_spec.rb - - spec/migrations/20210406144743_backfill_total_tuple_count_for_batched_migrations_spec.rb - - spec/models/active_session_spec.rb - - spec/models/application_record_spec.rb - - spec/models/badge_spec.rb - - spec/models/badges/project_badge_spec.rb - - spec/models/ci/build_spec.rb - - spec/models/ci/build_trace_chunk_spec.rb - - spec/models/ci/commit_with_pipeline_spec.rb - - spec/models/ci/group_spec.rb - - spec/models/ci/pipeline_spec.rb - - spec/models/clusters/applications/runner_spec.rb - - spec/models/clusters/cluster_spec.rb - - spec/models/clusters/platforms/kubernetes_spec.rb - - spec/models/commit_signatures/gpg_signature_spec.rb - - spec/models/commit_spec.rb - - spec/models/commit_status_spec.rb - - spec/models/concerns/atomic_internal_id_spec.rb - - spec/models/concerns/legacy_bulk_insert_spec.rb - - spec/models/concerns/prometheus_adapter_spec.rb - - spec/models/concerns/sha_attribute_spec.rb - - spec/models/concerns/token_authenticatable_strategies/base_spec.rb - - spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb - - spec/models/concerns/triggerable_hooks_spec.rb - - spec/models/concerns/x509_serial_number_attribute_spec.rb - - spec/models/design_management/design_action_spec.rb - - spec/models/design_management/design_at_version_spec.rb - - spec/models/diff_viewer/image_spec.rb - - spec/models/environment_spec.rb - - spec/models/event_spec.rb - - spec/models/external_issue_spec.rb - - spec/models/hooks/web_hook_spec.rb - - spec/models/integrations/asana_spec.rb - - spec/models/integrations/chat_message/pipeline_message_spec.rb - - spec/models/integrations/jira_spec.rb - - spec/models/integrations/microsoft_teams_spec.rb - - spec/models/integrations/pipelines_email_spec.rb - - spec/models/issue_spec.rb - - spec/models/key_spec.rb - - spec/models/merge_request_diff_commit_spec.rb - - spec/models/merge_request_spec.rb - - spec/models/packages/package_spec.rb - - spec/models/plan_limits_spec.rb - - spec/models/project_import_state_spec.rb - - spec/models/project_spec.rb - - spec/models/ref_matcher_spec.rb - - spec/models/release_highlight_spec.rb - - spec/models/repository_spec.rb - - spec/models/shard_spec.rb - - spec/models/snippet_spec.rb - - spec/models/ssh_host_key_spec.rb - - spec/models/upload_spec.rb - - spec/models/user_spec.rb - - spec/policies/ci/bridge_policy_spec.rb - - spec/presenters/ci/build_presenter_spec.rb - - spec/presenters/ci/pipeline_artifacts/code_quality_mr_diff_presenter_spec.rb - - spec/presenters/group_member_presenter_spec.rb - - spec/presenters/merge_request_presenter_spec.rb - - spec/presenters/packages/nuget/search_results_presenter_spec.rb - - spec/presenters/project_member_presenter_spec.rb - - spec/presenters/project_presenter_spec.rb - - spec/requests/api/avatar_spec.rb - - spec/requests/api/container_registry_event_spec.rb - - spec/requests/api/graphql/mutations/design_management/delete_spec.rb - - spec/requests/api/graphql/mutations/snippets/create_spec.rb - - spec/requests/api/graphql/project/cluster_agents_spec.rb - - spec/requests/api/graphql/project/pipeline_spec.rb - - spec/requests/api/helpers_spec.rb - - spec/requests/api/import_bitbucket_server_spec.rb - - spec/requests/api/import_github_spec.rb - - spec/requests/api/internal/base_spec.rb - - spec/requests/api/maven_packages_spec.rb - - spec/requests/api/project_container_repositories_spec.rb - - spec/requests/api/users_preferences_spec.rb - - spec/requests/jwt_controller_spec.rb - - spec/requests/whats_new_controller_spec.rb - - spec/rubocop/migration_helpers_spec.rb - - spec/scripts/setup/find_jh_branch_spec.rb - - spec/serializers/accessibility_reports_comparer_serializer_spec.rb - - spec/serializers/admin/user_entity_spec.rb - - spec/serializers/base_discussion_entity_spec.rb - - spec/serializers/build_action_entity_spec.rb - - spec/serializers/build_details_entity_spec.rb - - spec/serializers/build_trace_entity_spec.rb - - spec/serializers/ci/dag_job_entity_spec.rb - - spec/serializers/ci/dag_job_group_entity_spec.rb - - spec/serializers/ci/dag_pipeline_entity_spec.rb - - spec/serializers/ci/dag_stage_entity_spec.rb - - spec/serializers/ci/daily_build_group_report_result_entity_spec.rb - - spec/serializers/ci/daily_build_group_report_result_serializer_spec.rb - - spec/serializers/ci/job_entity_spec.rb - - spec/serializers/ci/job_serializer_spec.rb - - spec/serializers/ci/pipeline_entity_spec.rb - - spec/serializers/codequality_reports_comparer_serializer_spec.rb - - spec/serializers/commit_entity_spec.rb - - spec/serializers/container_repositories_serializer_spec.rb - - spec/serializers/container_repository_entity_spec.rb - - spec/serializers/container_tag_entity_spec.rb - - spec/serializers/deployment_cluster_entity_spec.rb - - spec/serializers/deployment_entity_spec.rb - - spec/serializers/detailed_status_entity_spec.rb - - spec/serializers/diff_file_entity_spec.rb - - spec/serializers/diffs_entity_spec.rb - - spec/serializers/diffs_metadata_entity_spec.rb - - spec/serializers/discussion_entity_spec.rb - - spec/serializers/environment_entity_spec.rb - - spec/serializers/environment_serializer_spec.rb - - spec/serializers/environment_status_entity_spec.rb - - spec/serializers/feature_flag_entity_spec.rb - - spec/serializers/feature_flag_summary_entity_spec.rb - - spec/serializers/group_child_entity_spec.rb - - spec/serializers/group_child_serializer_spec.rb - - spec/serializers/import/manifest_provider_repo_entity_spec.rb - - spec/serializers/issuable_sidebar_extras_entity_spec.rb - - spec/serializers/issue_board_entity_spec.rb - - spec/serializers/issue_entity_spec.rb - - spec/serializers/lfs_file_lock_entity_spec.rb - - spec/serializers/linked_project_issue_entity_spec.rb - - spec/serializers/merge_request_poll_cached_widget_entity_spec.rb - - spec/serializers/merge_request_poll_widget_entity_spec.rb - - spec/serializers/merge_request_sidebar_basic_entity_spec.rb - - spec/serializers/merge_request_sidebar_extras_entity_spec.rb - - spec/serializers/merge_request_widget_commit_entity_spec.rb - - spec/serializers/merge_request_widget_entity_spec.rb - - spec/serializers/merge_requests/pipeline_entity_spec.rb - - spec/serializers/note_entity_spec.rb - - spec/serializers/paginated_diff_entity_spec.rb - - spec/serializers/pipeline_details_entity_spec.rb - - spec/serializers/pipeline_serializer_spec.rb - - spec/serializers/project_note_entity_spec.rb - - spec/serializers/prometheus_alert_entity_spec.rb - - spec/serializers/review_app_setup_entity_spec.rb - - spec/serializers/runner_entity_spec.rb - - spec/serializers/stage_entity_spec.rb - - spec/serializers/suggestion_entity_spec.rb - - spec/serializers/test_reports_comparer_serializer_spec.rb - - spec/serializers/test_suite_entity_spec.rb - - spec/serializers/trigger_variable_entity_spec.rb - - spec/services/access_token_validation_service_spec.rb - - spec/services/authorized_project_update/find_records_due_for_refresh_service_spec.rb - - spec/services/award_emojis/toggle_service_spec.rb - - spec/services/base_count_service_spec.rb - - spec/services/bulk_imports/file_download_service_spec.rb - - spec/services/ci/change_variables_service_spec.rb - - spec/services/ci/create_pipeline_service_spec.rb - - spec/services/ci/pipeline_creation/start_pipeline_service_spec.rb - - spec/services/ci/prepare_build_service_spec.rb - - spec/services/ci/process_pipeline_service_spec.rb - - spec/services/ci/register_job_service_spec.rb - - spec/services/ci/test_failure_history_service_spec.rb - - spec/services/ci/update_build_queue_service_spec.rb - - spec/services/ci/update_build_state_service_spec.rb - - spec/services/clusters/applications/check_ingress_ip_address_service_spec.rb - - spec/services/clusters/applications/create_service_spec.rb - - spec/services/clusters/applications/prometheus_update_service_spec.rb - - spec/services/clusters/applications/update_service_spec.rb - - spec/services/clusters/aws/finalize_creation_service_spec.rb - - spec/services/clusters/aws/provision_service_spec.rb - - spec/services/clusters/aws/verify_provision_status_service_spec.rb - - spec/services/clusters/build_kubernetes_namespace_service_spec.rb - - spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb - - spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb - - spec/services/container_expiration_policies/cleanup_service_spec.rb - - spec/services/deployments/create_service_spec.rb - - spec/services/discussions/capture_diff_note_position_service_spec.rb - - spec/services/event_create_service_spec.rb - - spec/services/git/base_hooks_service_spec.rb - - spec/services/git/process_ref_changes_service_spec.rb - - spec/services/git/wiki_push_service/change_spec.rb - - spec/services/ide/schemas_config_service_spec.rb - - spec/services/import/bitbucket_server_service_spec.rb - - spec/services/import/github_service_spec.rb - - spec/services/issues/create_service_spec.rb - - spec/services/issues/related_branches_service_spec.rb - - spec/services/jira_connect_subscriptions/create_service_spec.rb - - spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb - - spec/services/merge_requests/approval_service_spec.rb - - spec/services/merge_requests/build_service_spec.rb - - spec/services/merge_requests/close_service_spec.rb - - spec/services/merge_requests/merge_service_spec.rb - - spec/services/merge_requests/post_merge_service_spec.rb - - spec/services/merge_requests/refresh_service_spec.rb - - spec/services/merge_requests/reopen_service_spec.rb - - spec/services/merge_requests/request_review_service_spec.rb - - spec/services/merge_requests/toggle_attention_requested_service_spec.rb - - spec/services/metrics/dashboard/clone_dashboard_service_spec.rb - - spec/services/metrics/dashboard/update_dashboard_service_spec.rb - - spec/services/metrics/users_starred_dashboards/create_service_spec.rb - - spec/services/milestones/update_service_spec.rb - - spec/services/namespaces/in_product_marketing_emails_service_spec.rb - - spec/services/notes/create_service_spec.rb - - spec/services/notes/render_service_spec.rb - - spec/services/notification_service_spec.rb - - spec/services/packages/generic/create_package_file_service_spec.rb - - spec/services/packages/maven/find_or_create_package_service_spec.rb - - spec/services/packages/maven/metadata/sync_service_spec.rb - - spec/services/packages/nuget/metadata_extraction_service_spec.rb - - spec/services/pages/zip_directory_service_spec.rb - - spec/services/post_receive_service_spec.rb - - spec/workers/projects/after_import_worker_spec.rb - - spec/services/projects/branches_by_mode_service_spec.rb - - spec/services/projects/create_service_spec.rb - - spec/services/projects/destroy_service_spec.rb - - spec/services/projects/import_service_spec.rb - - spec/services/projects/operations/update_service_spec.rb - - spec/services/projects/overwrite_project_service_spec.rb - - spec/services/projects/update_pages_service_spec.rb - - spec/services/projects/update_remote_mirror_service_spec.rb - - spec/services/projects/update_repository_storage_service_spec.rb - - spec/services/projects/update_service_spec.rb - - spec/services/repositories/changelog_service_spec.rb - - spec/services/search_service_spec.rb - - spec/services/service_ping/submit_service_ping_service_spec.rb - - spec/services/snippets/update_repository_storage_service_spec.rb - - spec/services/spam/akismet_mark_as_spam_service_spec.rb - - spec/services/spam/akismet_service_spec.rb - - spec/services/spam/ham_service_spec.rb - - spec/services/spam/spam_action_service_spec.rb - - spec/services/spam/spam_params_spec.rb - - spec/services/system_note_service_spec.rb - - spec/services/system_notes/commit_service_spec.rb - - spec/services/system_notes/issuables_service_spec.rb - - spec/services/update_merge_request_metrics_service_spec.rb - - spec/services/users/activity_service_spec.rb - - spec/services/users/create_service_spec.rb - - spec/services/users/refresh_authorized_projects_service_spec.rb - - spec/services/users/update_service_spec.rb - - spec/services/web_hook_service_spec.rb - - spec/services/wiki_pages/base_service_spec.rb - - spec/spam/concerns/has_spam_action_response_fields_spec.rb - - spec/support/helpers/graphql_helpers.rb - - spec/support/helpers/import_spec_helper.rb - - spec/support/helpers/ldap_helpers.rb - - spec/support/helpers/project_forks_helper.rb - - spec/support/helpers/stub_metrics.rb - - spec/support/helpers/stub_spam_services.rb - - spec/support/import_export/common_util.rb - - spec/support/prometheus/additional_metrics_shared_examples.rb - - spec/support/shared_contexts/lib/gitlab/sidekiq_middleware/server_metrics_shared_context.rb - - spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb - - spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb - - spec/support/shared_examples/controllers/snippets_sort_order_shared_examples.rb - - spec/support/shared_examples/graphql/mutations/http_integrations_shared_examples.rb - - spec/support/shared_examples/lib/gitlab/config/inheritable_shared_examples.rb - - spec/support/shared_examples/lib/gitlab/diff_file_collections_shared_examples.rb - - spec/support/shared_examples/metrics/active_record_subscriber_shared_examples.rb - - spec/support/shared_examples/metrics/sampler_shared_examples.rb - - spec/support/shared_examples/models/chat_integration_shared_examples.rb - - spec/support/shared_examples/models/concerns/integrations/slack_mattermost_notifier_shared_examples.rb - - spec/support/shared_examples/models/members_notifications_shared_example.rb - - spec/support/shared_examples/models/project_ci_cd_settings_shared_examples.rb - - spec/support/shared_examples/namespaces/hierarchy_examples.rb - - spec/support/shared_examples/requests/api/composer_packages_shared_examples.rb - - spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb - - spec/support/shared_examples/requests/api/debian_common_shared_examples.rb - - spec/support/shared_examples/requests/api/nuget_endpoints_shared_examples.rb - - spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb - - spec/support/shared_examples/requests/api/pypi_packages_shared_examples.rb - - spec/support/shared_examples/requests/api/rubygems_packages_shared_examples.rb - - spec/support/shared_examples/requests/rack_attack_shared_examples.rb - - spec/support/shared_examples/serializers/diff_file_entity_shared_examples.rb - - spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb - - spec/support/shared_examples/services/alert_management/alert_processing/alert_firing_shared_examples.rb - - spec/support/shared_examples/services/alert_management/alert_processing/notifications_shared_examples.rb - - spec/support/shared_examples/services/alert_management_shared_examples.rb - - spec/support/shared_examples/services/boards/issues_move_service_shared_examples.rb - - spec/support/shared_examples/services/check_ingress_ip_address_service_shared_examples.rb - - spec/support/shared_examples/services/jira/requests/base_shared_examples.rb - - spec/support/shared_examples/services/metrics/dashboard_shared_examples.rb - - spec/support/shared_examples/services/projects/update_repository_storage_service_shared_examples.rb - - spec/support/shared_examples/services/resource_events/synthetic_notes_builder_shared_examples.rb - - spec/support/shared_examples/workers/background_migration_worker_shared_examples.rb - - spec/support/shared_examples/workers/update_repository_move_shared_examples.rb - - spec/tasks/gettext_rake_spec.rb - - spec/tasks/gitlab/background_migrations_rake_spec.rb - - spec/tasks/gitlab/check_rake_spec.rb - - spec/tasks/gitlab/cleanup_rake_spec.rb - - spec/tasks/gitlab/db_rake_spec.rb - - spec/tasks/gitlab/packages/events_rake_spec.rb - - spec/tasks/gitlab/setup_rake_spec.rb - - spec/tooling/danger/project_helper_spec.rb - - spec/tooling/danger/specs_spec.rb - - spec/tooling/lib/tooling/helm3_client_spec.rb - - spec/tooling/lib/tooling/kubernetes_client_spec.rb - - spec/tooling/rspec_flaky/example_spec.rb - - spec/tooling/rspec_flaky/listener_spec.rb - - spec/uploaders/file_uploader_spec.rb - - spec/uploaders/object_storage_spec.rb - - spec/uploaders/personal_file_uploader_spec.rb - - spec/uploaders/records_uploads_spec.rb - - spec/views/projects/issues/show.html.haml_spec.rb - - spec/views/shared/milestones/_issuables.html.haml_spec.rb - - spec/views/shared/wikis/_sidebar.html.haml_spec.rb - - spec/workers/bulk_imports/export_request_worker_spec.rb - - spec/workers/chat_notification_worker_spec.rb - - spec/workers/ci/build_prepare_worker_spec.rb - - spec/workers/ci/create_cross_project_pipeline_worker_spec.rb - - spec/workers/ci/create_downstream_pipeline_worker_spec.rb - - spec/workers/ci/pipeline_bridge_status_worker_spec.rb - - spec/workers/ci/pipeline_success_unlock_artifacts_worker_spec.rb - - spec/workers/ci/ref_delete_unlock_artifacts_worker_spec.rb - - spec/workers/clusters/agents/delete_expired_events_worker_spec.rb - - spec/workers/concerns/application_worker_spec.rb - - spec/workers/concerns/gitlab/github_import/object_importer_spec.rb - - spec/workers/concerns/gitlab/github_import/stage_methods_spec.rb - - spec/workers/container_expiration_policies/cleanup_container_repository_worker_spec.rb - - spec/workers/create_commit_signature_worker_spec.rb - - spec/workers/environments/auto_stop_worker_spec.rb - - spec/workers/error_tracking_issue_link_worker_spec.rb - - spec/workers/gitlab/github_import/advance_stage_worker_spec.rb - - spec/workers/gitlab/github_import/import_diff_note_worker_spec.rb - - spec/workers/gitlab/github_import/import_issue_worker_spec.rb - - spec/workers/gitlab/github_import/import_note_worker_spec.rb - - spec/workers/gitlab/github_import/import_pull_request_worker_spec.rb - - spec/workers/gitlab/github_import/stage/finish_import_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_issues_and_diff_notes_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_lfs_objects_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_notes_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb - - spec/workers/gitlab/github_import/stage/import_repository_worker_spec.rb - - spec/workers/gitlab_performance_bar_stats_worker_spec.rb - - spec/workers/invalid_gpg_signature_update_worker_spec.rb - - spec/workers/issues/rebalancing_worker_spec.rb - - spec/workers/merge_request_mergeability_check_worker_spec.rb - - spec/workers/new_issue_worker_spec.rb - - spec/workers/new_merge_request_worker_spec.rb - - spec/workers/pages_domain_ssl_renewal_worker_spec.rb - - spec/workers/pages_domain_verification_worker_spec.rb - - spec/workers/post_receive_spec.rb - - spec/workers/project_cache_worker_spec.rb - - spec/workers/propagate_integration_group_worker_spec.rb - - spec/workers/propagate_integration_inherit_descendant_worker_spec.rb - - spec/workers/propagate_integration_inherit_worker_spec.rb - - spec/workers/propagate_integration_project_worker_spec.rb - - spec/workers/purge_dependency_proxy_cache_worker_spec.rb - - spec/workers/repository_import_worker_spec.rb - - spec/workers/system_hook_push_worker_spec.rb - - + - 'ee/spec/controllers/concerns/ee/routable_actions/sso_enforcement_redirect_spec.rb' + - 'ee/spec/controllers/groups/clusters_controller_spec.rb' + - 'ee/spec/controllers/groups/sso_controller_spec.rb' + - 'ee/spec/controllers/oauth/geo_auth_controller_spec.rb' + - 'ee/spec/controllers/projects/clusters_controller_spec.rb' + - 'ee/spec/db/production/license_spec.rb' + - 'ee/spec/features/admin/groups/admin_subscription_alerts_spec.rb' + - 'ee/spec/features/billings/billing_plans_spec.rb' + - 'ee/spec/features/merge_trains/two_merge_requests_on_train_spec.rb' + - 'ee/spec/features/profiles/account_spec.rb' + - 'ee/spec/finders/license_template_finder_spec.rb' + - 'ee/spec/finders/projects/integrations/jira/issues_finder_spec.rb' + - 'ee/spec/finders/security/pipeline_vulnerabilities_finder_spec.rb' + - 'ee/spec/finders/template_finder_spec.rb' + - 'ee/spec/graphql/mutations/dast_scanner_profiles/create_spec.rb' + - 'ee/spec/graphql/mutations/dast_site_profiles/create_spec.rb' + - 'ee/spec/graphql/mutations/dast_site_profiles/delete_spec.rb' + - 'ee/spec/graphql/mutations/dast_site_profiles/update_spec.rb' + - 'ee/spec/graphql/mutations/incident_management/oncall_rotation/create_spec.rb' + - 'ee/spec/graphql/mutations/issues/promote_to_epic_spec.rb' + - 'ee/spec/graphql/mutations/issues/set_epic_spec.rb' + - 'ee/spec/graphql/mutations/vulnerabilities/create_external_issue_link_spec.rb' + - 'ee/spec/graphql/mutations/vulnerabilities/destroy_external_issue_link_spec.rb' + - 'ee/spec/graphql/resolvers/external_issue_resolver_spec.rb' + - 'ee/spec/graphql/resolvers/security_report_summary_resolver_spec.rb' + - 'ee/spec/graphql/resolvers/vulnerabilities/details_resolver_spec.rb' + - 'ee/spec/helpers/billing_plans_helper_spec.rb' + - 'ee/spec/helpers/ee/ci/runners_helper_spec.rb' + - 'ee/spec/helpers/ee/integrations_helper_spec.rb' + - 'ee/spec/helpers/ee/subscribable_banner_helper_spec.rb' + - 'ee/spec/helpers/ee/trial_helper_spec.rb' + - 'ee/spec/helpers/ee/trial_registration_helper_spec.rb' + - 'ee/spec/helpers/kerberos_helper_spec.rb' + - 'ee/spec/helpers/license_helper_spec.rb' + - 'ee/spec/helpers/roadmaps_helper_spec.rb' + - 'ee/spec/helpers/routing/pseudonymization_helper_spec.rb' + - 'ee/spec/helpers/subscriptions_helper_spec.rb' + - 'ee/spec/helpers/timeboxes_helper_spec.rb' + - 'ee/spec/helpers/vulnerabilities_helper_spec.rb' + - 'ee/spec/lib/ee/backup/repositories_spec.rb' + - 'ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_in_batch_spec.rb' + - 'ee/spec/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules_spec.rb' + - 'ee/spec/lib/ee/gitlab/ci/matching/runner_matcher_spec.rb' + - 'ee/spec/lib/ee/gitlab/ci/pipeline/quota/size_spec.rb' + - 'ee/spec/lib/ee/gitlab/etag_caching/router/rails_spec.rb' + - 'ee/spec/lib/ee/gitlab/gon_helper_spec.rb' + - 'ee/spec/lib/elastic/latest/config_shared_examples.rb' + - 'ee/spec/lib/elastic/latest/git_instance_proxy_spec.rb' + - 'ee/spec/lib/elastic/migration_spec.rb' + - 'ee/spec/lib/elastic/multi_version_class_proxy_spec.rb' + - 'ee/spec/lib/elastic/multi_version_instance_proxy_spec.rb' + - 'ee/spec/lib/gitlab/auth/group_saml/response_check_spec.rb' + - 'ee/spec/lib/gitlab/auth/group_saml/token_actor_spec.rb' + - 'ee/spec/lib/gitlab/auth/otp/session_enforcer_spec.rb' + - 'ee/spec/lib/gitlab/authority_analyzer_spec.rb' + - 'ee/spec/lib/gitlab/cache_spec.rb' + - 'ee/spec/lib/gitlab/ci/pipeline/chain/limit/activity_spec.rb' + - 'ee/spec/lib/gitlab/ci/pipeline/chain/limit/size_spec.rb' + - 'ee/spec/lib/gitlab/code_owners/groups_loader_spec.rb' + - 'ee/spec/lib/gitlab/code_owners/users_loader_spec.rb' + - 'ee/spec/lib/gitlab/custom_file_templates_spec.rb' + - 'ee/spec/lib/gitlab/elastic/client_spec.rb' + - 'ee/spec/lib/gitlab/elastic/search_results_spec.rb' + - 'ee/spec/lib/gitlab/expiring_subscription_message_spec.rb' + - 'ee/spec/lib/gitlab/geo/git_ssh_proxy_spec.rb' + - 'ee/spec/lib/gitlab/geo/log_cursor/lease_spec.rb' + - 'ee/spec/lib/gitlab/geo/oauth/logout_token_spec.rb' + - 'ee/spec/lib/gitlab/geo/oauth/session_spec.rb' + - 'ee/spec/lib/gitlab/geo/replicator_spec.rb' + - 'ee/spec/lib/gitlab/geo_spec.rb' + - 'ee/spec/lib/gitlab/git_access_spec.rb' + - 'ee/spec/lib/gitlab/import_export/group/relation_factory_spec.rb' + - 'ee/spec/lib/gitlab/middleware/ip_restrictor_spec.rb' + - 'ee/spec/lib/gitlab/prometheus/queries/cluster_query_spec.rb' + - 'ee/spec/lib/gitlab/subscription_portal/clients/rest_spec.rb' + - 'ee/spec/lib/sidebars/groups/menus/analytics_menu_spec.rb' + - 'ee/spec/lib/system_check/geo/geo_database_configured_check_spec.rb' + - 'ee/spec/models/app_sec/fuzzing/api/ci_configuration_spec.rb' + - 'ee/spec/models/concerns/geo/verification_state_spec.rb' + - 'ee/spec/models/ee/ci/job_artifact_spec.rb' + - 'ee/spec/models/ee/user_spec.rb' + - 'ee/spec/models/elastic/index_setting_spec.rb' + - 'ee/spec/models/geo/project_registry_spec.rb' + - 'ee/spec/models/geo/secondary_usage_data_spec.rb' + - 'ee/spec/models/geo_node_status_spec.rb' + - 'ee/spec/models/integrations/github/status_message_spec.rb' + - 'ee/spec/models/integrations/github_spec.rb' + - 'ee/spec/models/project_spec.rb' + - 'ee/spec/models/push_rule_spec.rb' + - 'ee/spec/presenters/audit_event_presenter_spec.rb' + - 'ee/spec/presenters/group_member_presenter_spec.rb' + - 'ee/spec/presenters/merge_request_approver_presenter_spec.rb' + - 'ee/spec/presenters/project_member_presenter_spec.rb' + - 'ee/spec/requests/api/geo_spec.rb' + - 'ee/spec/requests/api/graphql/mutations/dast_site_profiles/delete_spec.rb' + - 'ee/spec/requests/api/internal/base_spec.rb' + - 'ee/spec/requests/api/ldap_spec.rb' + - 'ee/spec/requests/api/visual_review_discussions_spec.rb' + - 'ee/spec/requests/api/vulnerability_findings_spec.rb' + - 'ee/spec/requests/callout_spec.rb' + - 'ee/spec/requests/rack_attack_spec.rb' + - 'ee/spec/serializers/blocking_merge_request_entity_spec.rb' + - 'ee/spec/serializers/clusters/environment_entity_spec.rb' + - 'ee/spec/serializers/dashboard_operations_project_entity_spec.rb' + - 'ee/spec/serializers/dependency_entity_spec.rb' + - 'ee/spec/serializers/ee/admin/user_entity_spec.rb' + - 'ee/spec/serializers/ee/build_details_entity_spec.rb' + - 'ee/spec/serializers/ee/ci/job_entity_spec.rb' + - 'ee/spec/serializers/ee/ci/pipeline_entity_spec.rb' + - 'ee/spec/serializers/ee/group_child_entity_spec.rb' + - 'ee/spec/serializers/ee/issue_board_entity_spec.rb' + - 'ee/spec/serializers/ee/issue_entity_spec.rb' + - 'ee/spec/serializers/ee/issue_sidebar_extras_entity_spec.rb' + - 'ee/spec/serializers/ee/merge_request_poll_cached_widget_entity_spec.rb' + - 'ee/spec/serializers/ee/note_entity_spec.rb' + - 'ee/spec/serializers/environment_entity_spec.rb' + - 'ee/spec/serializers/epic_entity_spec.rb' + - 'ee/spec/serializers/epic_note_entity_spec.rb' + - 'ee/spec/serializers/integrations/jira_serializers/issue_detail_entity_spec.rb' + - 'ee/spec/serializers/integrations/jira_serializers/issue_entity_spec.rb' + - 'ee/spec/serializers/issuable_sidebar_extras_entity_spec.rb' + - 'ee/spec/serializers/issues/linked_issue_feature_flag_entity_spec.rb' + - 'ee/spec/serializers/linked_feature_flag_issue_entity_spec.rb' + - 'ee/spec/serializers/merge_request_poll_widget_entity_spec.rb' + - 'ee/spec/serializers/merge_request_sidebar_basic_entity_spec.rb' + - 'ee/spec/serializers/merge_request_widget_entity_spec.rb' + - 'ee/spec/serializers/test_reports_comparer_serializer_spec.rb' + - 'ee/spec/serializers/user_analytics_entity_spec.rb' + - 'ee/spec/serializers/vulnerabilities/feedback_entity_spec.rb' + - 'ee/spec/serializers/vulnerabilities/finding_entity_spec.rb' + - 'ee/spec/serializers/vulnerabilities/finding_reports_comparer_entity_spec.rb' + - 'ee/spec/serializers/vulnerabilities/finding_serializer_spec.rb' + - 'ee/spec/serializers/vulnerability_note_entity_spec.rb' + - 'ee/spec/services/alert_management/extract_alert_payload_fields_service_spec.rb' + - 'ee/spec/services/app_sec/dast/scans/create_service_spec.rb' + - 'ee/spec/services/app_sec/dast/site_profiles/update_service_spec.rb' + - 'ee/spec/services/app_sec/fuzzing/api/ci_configuration_create_service_spec.rb' + - 'ee/spec/services/ci/create_pipeline_service/dast_configuration_spec.rb' + - 'ee/spec/services/ci/minutes/track_live_consumption_service_spec.rb' + - 'ee/spec/services/ci/minutes/update_project_and_namespace_usage_service_spec.rb' + - 'ee/spec/services/ci/pipeline_creation/drop_not_runnable_builds_service_spec.rb' + - 'ee/spec/services/ci/pipeline_creation/start_pipeline_service_spec.rb' + - 'ee/spec/services/dashboard/operations/list_service_spec.rb' + - 'ee/spec/services/dashboard/projects/create_service_spec.rb' + - 'ee/spec/services/ee/issues/create_service_spec.rb' + - 'ee/spec/services/ee/issues/update_service_spec.rb' + - 'ee/spec/services/ee/merge_requests/base_service_spec.rb' + - 'ee/spec/services/ee/merge_requests/post_merge_service_spec.rb' + - 'ee/spec/services/ee/merge_requests/refresh_service_spec.rb' + - 'ee/spec/services/ee/notification_service_spec.rb' + - 'ee/spec/services/ee/post_receive_service_spec.rb' + - 'ee/spec/services/geo/blob_download_service_spec.rb' + - 'ee/spec/services/geo/graphql_request_service_spec.rb' + - 'ee/spec/services/geo/node_status_request_service_spec.rb' + - 'ee/spec/services/geo/replication_toggle_request_service_spec.rb' + - 'ee/spec/services/geo/repository_verification_primary_service_spec.rb' + - 'ee/spec/services/gitlab_subscriptions/fetch_subscription_plans_service_spec.rb' + - 'ee/spec/services/group_saml/group_managed_accounts/clean_up_members_service_spec.rb' + - 'ee/spec/services/group_saml/sign_up_service_spec.rb' + - 'ee/spec/services/groups/update_repository_storage_service_spec.rb' + - 'ee/spec/services/ide/schemas_config_service_spec.rb' + - 'ee/spec/services/incident_management/oncall_schedules/update_service_spec.rb' + - 'ee/spec/services/incident_management/pending_escalations/process_service_spec.rb' + - 'ee/spec/services/merge_requests/approval_service_spec.rb' + - 'ee/spec/services/merge_requests/build_service_spec.rb' + - 'ee/spec/services/merge_requests/reset_approvals_service_spec.rb' + - 'ee/spec/services/namespaces/in_product_marketing_emails_service_spec.rb' + - 'ee/spec/services/projects/update_mirror_service_spec.rb' + - 'ee/spec/services/security/ingestion/ingest_report_slice_service_spec.rb' + - 'ee/spec/services/security/orchestration/assign_service_spec.rb' + - 'ee/spec/services/security/security_orchestration_policies/on_demand_scan_pipeline_configuration_service_spec.rb' + - 'ee/spec/services/slash_commands/global_slack_handler_spec.rb' + - 'ee/spec/services/status_page/publish_details_service_spec.rb' + - 'ee/spec/services/status_page/publish_service_spec.rb' + - 'ee/spec/services/status_page/trigger_publish_service_spec.rb' + - 'ee/spec/services/system_note_service_spec.rb' + - 'ee/spec/services/vulnerability_exports/export_service_spec.rb' + - 'ee/spec/services/vulnerability_external_issue_links/create_service_spec.rb' + - 'ee/spec/support/helpers/ee/ldap_helpers.rb' + - 'ee/spec/support/prometheus/additional_metrics_shared_examples.rb' + - 'ee/spec/support/shared_examples/controllers/analytics/cycle_analytics/shared_stage_shared_examples.rb' + - 'ee/spec/support/shared_examples/controllers/cluster_metrics_shared_examples.rb' + - 'ee/spec/support/shared_examples/models/concerns/blob_replicator_strategy_shared_examples.rb' + - 'ee/spec/support/shared_examples/models/concerns/verifiable_replicator_shared_examples.rb' + - 'ee/spec/support/shared_examples/models/geo_verifiable_registry_shared_examples.rb' + - 'ee/spec/support/shared_examples/serializers/report_status_shared_examples.rb' + - 'ee/spec/support/shared_examples/services/base_sync_service_shared_examples.rb' + - 'ee/spec/support/shared_examples/services/geo/geo_request_service_shared_examples.rb' + - 'ee/spec/support/shared_examples/status_page/reference_links_examples.rb' + - 'ee/spec/validators/json_schema_validator_spec.rb' + - 'ee/spec/views/layouts/header/_ee_subscribable_banner.html.haml_spec.rb' + - 'ee/spec/workers/ci/sync_reports_to_report_approval_rules_worker_spec.rb' + - 'ee/spec/workers/compliance_management/chain_of_custody_report_worker_spec.rb' + - 'ee/spec/workers/geo/container_repository_sync_worker_spec.rb' + - 'ee/spec/workers/geo/design_repository_sync_worker_spec.rb' + - 'ee/spec/workers/geo/destroy_worker_spec.rb' + - 'ee/spec/workers/geo/event_worker_spec.rb' + - 'ee/spec/workers/geo/metrics_update_worker_spec.rb' + - 'ee/spec/workers/geo/prune_event_log_worker_spec.rb' + - 'ee/spec/workers/geo/registry_sync_worker_spec.rb' + - 'ee/spec/workers/geo/reverification_batch_worker_spec.rb' + - 'ee/spec/workers/geo/sidekiq_cron_config_worker_spec.rb' + - 'ee/spec/workers/geo/sync_timeout_cron_worker_spec.rb' + - 'ee/spec/workers/geo/verification_batch_worker_spec.rb' + - 'ee/spec/workers/geo/verification_cron_worker_spec.rb' + - 'ee/spec/workers/geo/verification_timeout_worker_spec.rb' + - 'ee/spec/workers/geo/verification_worker_spec.rb' + - 'ee/spec/workers/iterations/cadences/create_iterations_worker_spec.rb' + - 'ee/spec/workers/iterations/roll_over_issues_worker_spec.rb' + - 'ee/spec/workers/ldap_group_sync_worker_spec.rb' + - 'ee/spec/workers/merge_request_reset_approvals_worker_spec.rb' + - 'ee/spec/workers/new_epic_worker_spec.rb' + - 'ee/spec/workers/update_max_seats_used_for_gitlab_com_subscriptions_worker_spec.rb' + - 'qa/spec/git/repository_spec.rb' + - 'qa/spec/page/base_spec.rb' + - 'qa/spec/page/validator_spec.rb' + - 'qa/spec/page/view_spec.rb' + - 'qa/spec/resource/api_fabricator_spec.rb' + - 'qa/spec/resource/base_spec.rb' + - 'qa/spec/runtime/application_settings_spec.rb' + - 'qa/spec/runtime/feature_spec.rb' + - 'qa/spec/runtime/release_spec.rb' + - 'qa/spec/scenario/test/sanity/selectors_spec.rb' + - 'qa/spec/support/formatters/allure_metadata_formatter_spec.rb' + - 'qa/spec/support/page_error_checker_spec.rb' + - 'qa/spec/support/run_spec.rb' + - 'qa/spec/tools/long_running_spec_reporter_spec.rb' + - 'spec/benchmarks/banzai_benchmark.rb' + - 'spec/bin/feature_flag_spec.rb' + - 'spec/controllers/application_controller_spec.rb' + - 'spec/controllers/concerns/checks_collaboration_spec.rb' + - 'spec/controllers/concerns/import_url_params_spec.rb' + - 'spec/controllers/concerns/issuable_actions_spec.rb' + - 'spec/controllers/concerns/issuable_collections_spec.rb' + - 'spec/controllers/concerns/page_limiter_spec.rb' + - 'spec/controllers/concerns/spammable_actions/akismet_mark_as_spam_action_spec.rb' + - 'spec/controllers/concerns/spammable_actions/captcha_check/html_format_actions_support_spec.rb' + - 'spec/controllers/concerns/spammable_actions/captcha_check/json_format_actions_support_spec.rb' + - 'spec/controllers/dashboard/snippets_controller_spec.rb' + - 'spec/controllers/explore/projects_controller_spec.rb' + - 'spec/controllers/groups/dependency_proxy_auth_controller_spec.rb' + - 'spec/controllers/groups/dependency_proxy_for_containers_controller_spec.rb' + - 'spec/controllers/help_controller_spec.rb' + - 'spec/controllers/import/bitbucket_controller_spec.rb' + - 'spec/controllers/import/bitbucket_server_controller_spec.rb' + - 'spec/controllers/import/bulk_imports_controller_spec.rb' + - 'spec/controllers/import/fogbugz_controller_spec.rb' + - 'spec/controllers/import/gitea_controller_spec.rb' + - 'spec/controllers/import/github_controller_spec.rb' + - 'spec/controllers/import/gitlab_controller_spec.rb' + - 'spec/controllers/oauth/jira_dvcs/authorizations_controller_spec.rb' + - 'spec/controllers/omniauth_callbacks_controller_spec.rb' + - 'spec/controllers/profiles/two_factor_auths_controller_spec.rb' + - 'spec/controllers/projects/blob_controller_spec.rb' + - 'spec/controllers/projects/branches_controller_spec.rb' + - 'spec/controllers/projects/import/jira_controller_spec.rb' + - 'spec/controllers/projects/merge_requests/diffs_controller_spec.rb' + - 'spec/controllers/projects/merge_requests_controller_spec.rb' + - 'spec/controllers/projects/notes_controller_spec.rb' + - 'spec/controllers/projects/pages_controller_spec.rb' + - 'spec/controllers/projects/performance_monitoring/dashboards_controller_spec.rb' + - 'spec/controllers/projects/pipelines_controller_spec.rb' + - 'spec/controllers/projects/prometheus/metrics_controller_spec.rb' + - 'spec/controllers/projects/registry/tags_controller_spec.rb' + - 'spec/controllers/projects/settings/operations_controller_spec.rb' + - 'spec/controllers/projects/snippets_controller_spec.rb' + - 'spec/controllers/sessions_controller_spec.rb' + - 'spec/dependencies/omniauth_saml_spec.rb' + - 'spec/experiments/concerns/project_commit_count_spec.rb' + - 'spec/factories/ci/job_artifacts.rb' + - 'spec/features/admin/admin_system_info_spec.rb' + - 'spec/features/clusters/create_agent_spec.rb' + - 'spec/features/file_uploads/maven_package_spec.rb' + - 'spec/features/groups/container_registry_spec.rb' + - 'spec/features/help_pages_spec.rb' + - 'spec/features/issuables/markdown_references/jira_spec.rb' + - 'spec/features/markdown/markdown_spec.rb' + - 'spec/features/profiles/personal_access_tokens_spec.rb' + - 'spec/features/projects/container_registry_spec.rb' + - 'spec/features/projects/integrations/user_activates_jira_spec.rb' + - 'spec/finders/ci/auth_job_finder_spec.rb' + - 'spec/finders/merge_requests/oldest_per_commit_finder_spec.rb' + - 'spec/finders/repositories/changelog_commits_finder_spec.rb' + - 'spec/finders/repositories/changelog_tag_finder_spec.rb' + - 'spec/graphql/features/authorization_spec.rb' + - 'spec/graphql/mutations/alert_management/alerts/todo/create_spec.rb' + - 'spec/graphql/mutations/alert_management/update_alert_status_spec.rb' + - 'spec/graphql/mutations/branches/create_spec.rb' + - 'spec/graphql/mutations/ci/job_token_scope/add_project_spec.rb' + - 'spec/graphql/mutations/ci/job_token_scope/remove_project_spec.rb' + - 'spec/graphql/mutations/design_management/upload_spec.rb' + - 'spec/graphql/mutations/environments/canary_ingress/update_spec.rb' + - 'spec/graphql/resolvers/kas/agent_connections_resolver_spec.rb' + - 'spec/graphql/resolvers/projects/jira_projects_resolver_spec.rb' + - 'spec/graphql/types/kas/agent_connection_type_spec.rb' + - 'spec/graphql/types/permission_types/base_permission_type_spec.rb' + - 'spec/graphql/types/project_type_spec.rb' + - 'spec/helpers/blame_helper_spec.rb' + - 'spec/helpers/blob_helper_spec.rb' + - 'spec/helpers/ci/pipelines_helper_spec.rb' + - 'spec/helpers/ci/status_helper_spec.rb' + - 'spec/helpers/ci/triggers_helper_spec.rb' + - 'spec/helpers/commits_helper_spec.rb' + - 'spec/helpers/dev_ops_report_helper_spec.rb' + - 'spec/helpers/diff_helper_spec.rb' + - 'spec/helpers/emails_helper_spec.rb' + - 'spec/helpers/environments_helper_spec.rb' + - 'spec/helpers/form_helper_spec.rb' + - 'spec/helpers/gitlab_routing_helper_spec.rb' + - 'spec/helpers/integrations_helper_spec.rb' + - 'spec/helpers/issuables_helper_spec.rb' + - 'spec/helpers/markup_helper_spec.rb' + - 'spec/helpers/merge_requests_helper_spec.rb' + - 'spec/helpers/notes_helper_spec.rb' + - 'spec/helpers/numbers_helper_spec.rb' + - 'spec/helpers/preferences_helper_spec.rb' + - 'spec/helpers/projects_helper_spec.rb' + - 'spec/helpers/routing/pseudonymization_helper_spec.rb' + - 'spec/helpers/sorting_helper_spec.rb' + - 'spec/helpers/submodule_helper_spec.rb' + - 'spec/helpers/todos_helper_spec.rb' + - 'spec/helpers/version_check_helper_spec.rb' + - 'spec/initializers/doorkeeper_spec.rb' + - 'spec/initializers/global_id_spec.rb' + - 'spec/initializers/hangouts_chat_http_override_spec.rb' + - 'spec/lib/api/base_spec.rb' + - 'spec/lib/api/entities/ci/job_request/image_spec.rb' + - 'spec/lib/api/entities/ci/job_request/port_spec.rb' + - 'spec/lib/api/helpers/authentication_spec.rb' + - 'spec/lib/api/helpers/caching_spec.rb' + - 'spec/lib/api/helpers/graphql_helpers_spec.rb' + - 'spec/lib/api/helpers/pagination_spec.rb' + - 'spec/lib/api/helpers/pagination_strategies_spec.rb' + - 'spec/lib/api/helpers/variables_helpers_spec.rb' + - 'spec/lib/api/helpers_spec.rb' + - 'spec/lib/atlassian/jira_connect/client_spec.rb' + - 'spec/lib/backup/files_spec.rb' + - 'spec/lib/backup/repositories_spec.rb' + - 'spec/lib/banzai/cross_project_reference_spec.rb' + - 'spec/lib/banzai/filter/gollum_tags_filter_spec.rb' + - 'spec/lib/banzai/filter/repository_link_filter_spec.rb' + - 'spec/lib/banzai/pipeline/wiki_pipeline_spec.rb' + - 'spec/lib/banzai/querying_spec.rb' + - 'spec/lib/banzai/reference_parser/base_parser_spec.rb' + - 'spec/lib/banzai/reference_parser/commit_parser_spec.rb' + - 'spec/lib/banzai/reference_parser/commit_range_parser_spec.rb' + - 'spec/lib/banzai/render_context_spec.rb' + - 'spec/lib/banzai/renderer_spec.rb' + - 'spec/lib/bitbucket/connection_spec.rb' + - 'spec/lib/bitbucket/paginator_spec.rb' + - 'spec/lib/bitbucket_server/paginator_spec.rb' + - 'spec/lib/bulk_imports/clients/http_spec.rb' + - 'spec/lib/bulk_imports/common/extractors/graphql_extractor_spec.rb' + - 'spec/lib/bulk_imports/common/extractors/rest_extractor_spec.rb' + - 'spec/lib/bulk_imports/ndjson_pipeline_spec.rb' + - 'spec/lib/bulk_imports/network_error_spec.rb' + - 'spec/lib/bulk_imports/projects/pipelines/snippets_repository_pipeline_spec.rb' + - 'spec/lib/bulk_imports/projects/transformers/project_attributes_transformer_spec.rb' + - 'spec/lib/constraints/admin_constrainer_spec.rb' + - 'spec/lib/constraints/group_url_constrainer_spec.rb' + - 'spec/lib/constraints/jira_encoded_url_constrainer_spec.rb' + - 'spec/lib/constraints/project_url_constrainer_spec.rb' + - 'spec/lib/constraints/user_url_constrainer_spec.rb' + - 'spec/lib/csv_builder_spec.rb' + - 'spec/lib/csv_builders/stream_spec.rb' + - 'spec/lib/extracts_path_spec.rb' + - 'spec/lib/feature_spec.rb' + - 'spec/lib/gitaly/server_spec.rb' + - 'spec/lib/gitlab/api_authentication/token_locator_spec.rb' + - 'spec/lib/gitlab/application_context_spec.rb' + - 'spec/lib/gitlab/application_rate_limiter_spec.rb' + - 'spec/lib/gitlab/asciidoc/include_processor_spec.rb' + - 'spec/lib/gitlab/auth/auth_finders_spec.rb' + - 'spec/lib/gitlab/auth/blocked_user_tracker_spec.rb' + - 'spec/lib/gitlab/auth/ldap/adapter_spec.rb' + - 'spec/lib/gitlab/auth/ldap/authentication_spec.rb' + - 'spec/lib/gitlab/authorized_keys_spec.rb' + - 'spec/lib/gitlab/avatar_cache_spec.rb' + - 'spec/lib/gitlab/background_migration/base_job_spec.rb' + - 'spec/lib/gitlab/background_migration/batching_strategies/base_strategy_spec.rb' + - 'spec/lib/gitlab/background_migration/job_coordinator_spec.rb' + - 'spec/lib/gitlab/background_migration/migrate_merge_request_diff_commit_users_spec.rb' + - 'spec/lib/gitlab/background_migration_spec.rb' + - 'spec/lib/gitlab/bitbucket_import/importer_spec.rb' + - 'spec/lib/gitlab/bitbucket_import/project_creator_spec.rb' + - 'spec/lib/gitlab/bitbucket_server_import/importer_spec.rb' + - 'spec/lib/gitlab/cache/import/caching_spec.rb' + - 'spec/lib/gitlab/changelog/committer_spec.rb' + - 'spec/lib/gitlab/chat/responder/base_spec.rb' + - 'spec/lib/gitlab/chat/responder_spec.rb' + - 'spec/lib/gitlab/ci/badge/coverage/metadata_spec.rb' + - 'spec/lib/gitlab/ci/badge/coverage/template_spec.rb' + - 'spec/lib/gitlab/ci/badge/pipeline/metadata_spec.rb' + - 'spec/lib/gitlab/ci/badge/pipeline/template_spec.rb' + - 'spec/lib/gitlab/ci/build/cache_spec.rb' + - 'spec/lib/gitlab/ci/build/policy/changes_spec.rb' + - 'spec/lib/gitlab/ci/build/policy/variables_spec.rb' + - 'spec/lib/gitlab/ci/build/policy_spec.rb' + - 'spec/lib/gitlab/ci/build/prerequisite/kubernetes_namespace_spec.rb' + - 'spec/lib/gitlab/ci/build/rules/rule_spec.rb' + - 'spec/lib/gitlab/ci/build/rules_spec.rb' + - 'spec/lib/gitlab/ci/build/status/reason_spec.rb' + - 'spec/lib/gitlab/ci/config/entry/default_spec.rb' + - 'spec/lib/gitlab/ci/config/entry/job_spec.rb' + - 'spec/lib/gitlab/ci/config/entry/processable_spec.rb' + - 'spec/lib/gitlab/ci/config/external/context_spec.rb' + - 'spec/lib/gitlab/ci/config/external/file/local_spec.rb' + - 'spec/lib/gitlab/ci/config/external/file/project_spec.rb' + - 'spec/lib/gitlab/ci/config/external/rules_spec.rb' + - 'spec/lib/gitlab/ci/parsers/test/junit_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/evaluate_workflow_rules_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/helpers_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/limit/deployments_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/remove_unwanted_chat_jobs_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/sequence_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/skip_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/and_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/equals_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/matches_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/not_equals_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/not_matches_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/or_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/preloader_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/quota/deployments_spec.rb' + - 'spec/lib/gitlab/ci/pipeline/seed/build_spec.rb' + - 'spec/lib/gitlab/ci/reports/security/report_spec.rb' + - 'spec/lib/gitlab/ci/status/build/action_spec.rb' + - 'spec/lib/gitlab/ci/status/build/cancelable_spec.rb' + - 'spec/lib/gitlab/ci/status/build/canceled_spec.rb' + - 'spec/lib/gitlab/ci/status/build/created_spec.rb' + - 'spec/lib/gitlab/ci/status/build/erased_spec.rb' + - 'spec/lib/gitlab/ci/status/build/failed_allowed_spec.rb' + - 'spec/lib/gitlab/ci/status/build/failed_spec.rb' + - 'spec/lib/gitlab/ci/status/build/pending_spec.rb' + - 'spec/lib/gitlab/ci/status/build/preparing_spec.rb' + - 'spec/lib/gitlab/ci/status/build/retried_spec.rb' + - 'spec/lib/gitlab/ci/status/build/retryable_spec.rb' + - 'spec/lib/gitlab/ci/status/build/skipped_spec.rb' + - 'spec/lib/gitlab/ci/status/build/stop_spec.rb' + - 'spec/lib/gitlab/ci/status/build/unschedule_spec.rb' + - 'spec/lib/gitlab/ci/status/canceled_spec.rb' + - 'spec/lib/gitlab/ci/status/core_spec.rb' + - 'spec/lib/gitlab/ci/status/created_spec.rb' + - 'spec/lib/gitlab/ci/status/factory_spec.rb' + - 'spec/lib/gitlab/ci/status/failed_spec.rb' + - 'spec/lib/gitlab/ci/status/manual_spec.rb' + - 'spec/lib/gitlab/ci/status/pending_spec.rb' + - 'spec/lib/gitlab/ci/status/pipeline/blocked_spec.rb' + - 'spec/lib/gitlab/ci/status/pipeline/delayed_spec.rb' + - 'spec/lib/gitlab/ci/status/preparing_spec.rb' + - 'spec/lib/gitlab/ci/status/running_spec.rb' + - 'spec/lib/gitlab/ci/status/scheduled_spec.rb' + - 'spec/lib/gitlab/ci/status/skipped_spec.rb' + - 'spec/lib/gitlab/ci/status/stage/play_manual_spec.rb' + - 'spec/lib/gitlab/ci/status/success_spec.rb' + - 'spec/lib/gitlab/ci/status/success_warning_spec.rb' + - 'spec/lib/gitlab/ci/status/waiting_for_resource_spec.rb' + - 'spec/lib/gitlab/ci/trace/archive_spec.rb' + - 'spec/lib/gitlab/ci/trace/remote_checksum_spec.rb' + - 'spec/lib/gitlab/ci/trace/stream_spec.rb' + - 'spec/lib/gitlab/ci/variables/builder_spec.rb' + - 'spec/lib/gitlab/cleanup/orphan_lfs_file_references_spec.rb' + - 'spec/lib/gitlab/cleanup/project_uploads_spec.rb' + - 'spec/lib/gitlab/cleanup/remote_uploads_spec.rb' + - 'spec/lib/gitlab/cluster/puma_worker_killer_observer_spec.rb' + - 'spec/lib/gitlab/cluster/rack_timeout_observer_spec.rb' + - 'spec/lib/gitlab/color_schemes_spec.rb' + - 'spec/lib/gitlab/conan_token_spec.rb' + - 'spec/lib/gitlab/config/entry/configurable_spec.rb' + - 'spec/lib/gitlab/config/entry/factory_spec.rb' + - 'spec/lib/gitlab/config/entry/simplifiable_spec.rb' + - 'spec/lib/gitlab/config/entry/unspecified_spec.rb' + - 'spec/lib/gitlab/config/entry/validator_spec.rb' + - 'spec/lib/gitlab/conflict/file_spec.rb' + - 'spec/lib/gitlab/cross_project_access/check_collection_spec.rb' + - 'spec/lib/gitlab/database/async_indexes_spec.rb' + - 'spec/lib/gitlab/database/background_migration/batched_migration_runner_spec.rb' + - 'spec/lib/gitlab/database/batch_count_spec.rb' + - 'spec/lib/gitlab/database/count_spec.rb' + - 'spec/lib/gitlab/database/each_database_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/configuration_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/connection_proxy_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/host_list_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/host_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/load_balancer_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/rack_middleware_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/resolver_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/service_discovery_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/setup_spec.rb' + - 'spec/lib/gitlab/database/load_balancing/sidekiq_server_middleware_spec.rb' + - 'spec/lib/gitlab/database/load_balancing_spec.rb' + - 'spec/lib/gitlab/database/migration_helpers_spec.rb' + - 'spec/lib/gitlab/database/migrations/background_migration_helpers_spec.rb' + - 'spec/lib/gitlab/database/migrations/instrumentation_spec.rb' + - 'spec/lib/gitlab/database/migrations/lock_retry_mixin_spec.rb' + - 'spec/lib/gitlab/database/migrations/observers/query_statistics_spec.rb' + - 'spec/lib/gitlab/database/migrations/observers/total_database_size_change_spec.rb' + - 'spec/lib/gitlab/database/migrations/runner_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/partition_monitoring_spec.rb' + - 'spec/lib/gitlab/database/partitioning/sliding_list_strategy_spec.rb' + - 'spec/lib/gitlab/database/partitioning_migration_helpers/backfill_partitioned_table_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/postgresql_adapter/empty_query_ping_spec.rb' + - 'spec/lib/gitlab/database/postgresql_database_tasks/load_schema_versions_mixin_spec.rb' + - 'spec/lib/gitlab/database/query_analyzer_spec.rb' + - 'spec/lib/gitlab/database/reindexing/grafana_notifier_spec.rb' + - 'spec/lib/gitlab/database/reindexing/reindex_concurrently_spec.rb' + - 'spec/lib/gitlab/database/shared_model_spec.rb' + - 'spec/lib/gitlab/database_spec.rb' + - 'spec/lib/gitlab/diff/file_collection_sorter_spec.rb' + - 'spec/lib/gitlab/diff/file_spec.rb' + - 'spec/lib/gitlab/diff/line_spec.rb' + - 'spec/lib/gitlab/diff/position_tracer_spec.rb' + - 'spec/lib/gitlab/doctor/secrets_spec.rb' + - 'spec/lib/gitlab/email/handler/service_desk_handler_spec.rb' + - 'spec/lib/gitlab/email/receiver_spec.rb' + - 'spec/lib/gitlab/email/service_desk_receiver_spec.rb' + - 'spec/lib/gitlab/error_tracking/processor/sidekiq_processor_spec.rb' + - 'spec/lib/gitlab/etag_caching/middleware_spec.rb' + - 'spec/lib/gitlab/etag_caching/router/graphql_spec.rb' + - 'spec/lib/gitlab/etag_caching/router/rails_spec.rb' + - 'spec/lib/gitlab/etag_caching/router_spec.rb' + - 'spec/lib/gitlab/event_store/store_spec.rb' + - 'spec/lib/gitlab/experiment/rollout/feature_spec.rb' + - 'spec/lib/gitlab/external_authorization/access_spec.rb' + - 'spec/lib/gitlab/external_authorization/logger_spec.rb' + - 'spec/lib/gitlab/faraday/error_callback_spec.rb' + - 'spec/lib/gitlab/feature_categories_spec.rb' + - 'spec/lib/gitlab/git/blob_spec.rb' + - 'spec/lib/gitlab/git/commit_spec.rb' + - 'spec/lib/gitlab/git/repository_spec.rb' + - 'spec/lib/gitlab/git/rugged_impl/use_rugged_spec.rb' + - 'spec/lib/gitlab/git/tag_spec.rb' + - 'spec/lib/gitlab/git_access_snippet_spec.rb' + - 'spec/lib/gitlab/gitaly_client/commit_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/conflict_files_stitcher_spec.rb' + - 'spec/lib/gitlab/gitaly_client/conflicts_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/health_check_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/ref_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/remote_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client/repository_service_spec.rb' + - 'spec/lib/gitlab/gitaly_client_spec.rb' + - 'spec/lib/gitlab/github_import/bulk_importing_spec.rb' + - 'spec/lib/gitlab/github_import/client_spec.rb' + - 'spec/lib/gitlab/github_import/importer/diff_note_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/diff_notes_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/issue_and_label_links_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/issue_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/issues_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/label_links_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/labels_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/lfs_objects_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/milestones_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/note_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/notes_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_request_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_request_merged_by_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_requests_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_requests_merged_by_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/pull_requests_reviews_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/releases_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/repository_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/single_endpoint_diff_notes_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/single_endpoint_issue_notes_importer_spec.rb' + - 'spec/lib/gitlab/github_import/importer/single_endpoint_merge_request_notes_importer_spec.rb' + - 'spec/lib/gitlab/github_import/issuable_finder_spec.rb' + - 'spec/lib/gitlab/github_import/markdown_text_spec.rb' + - 'spec/lib/gitlab/github_import/milestone_finder_spec.rb' + - 'spec/lib/gitlab/github_import/object_counter_spec.rb' + - 'spec/lib/gitlab/github_import/page_counter_spec.rb' + - 'spec/lib/gitlab/github_import/parallel_importer_spec.rb' + - 'spec/lib/gitlab/github_import/parallel_scheduling_spec.rb' + - 'spec/lib/gitlab/github_import/representation/diff_note_spec.rb' + - 'spec/lib/gitlab/github_import/representation/to_hash_spec.rb' + - 'spec/lib/gitlab/github_import/sequential_importer_spec.rb' + - 'spec/lib/gitlab/github_import/user_finder_spec.rb' + - 'spec/lib/gitlab/github_import_spec.rb' + - 'spec/lib/gitlab/gon_helper_spec.rb' + - 'spec/lib/gitlab/gpg/commit_spec.rb' + - 'spec/lib/gitlab/gpg/invalid_gpg_signature_updater_spec.rb' + - 'spec/lib/gitlab/gpg_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/exception_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/perf_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/queue_duration_logger_spec.rb' + - 'spec/lib/gitlab/grape_logging/loggers/urgency_logger_spec.rb' + - 'spec/lib/gitlab/graphql/authorize/object_authorization_spec.rb' + - 'spec/lib/gitlab/graphql/batch_key_spec.rb' + - 'spec/lib/gitlab/graphql/generic_tracing_spec.rb' + - 'spec/lib/gitlab/graphql/lazy_spec.rb' + - 'spec/lib/gitlab/graphql/loaders/issuable_loader_spec.rb' + - 'spec/lib/gitlab/graphql/present/field_extension_spec.rb' + - 'spec/lib/gitlab/graphql/timeout_spec.rb' + - 'spec/lib/gitlab/graphql/tracers/application_context_tracer_spec.rb' + - 'spec/lib/gitlab/graphql/tracers/timer_tracer_spec.rb' + - 'spec/lib/gitlab/health_checks/gitaly_check_spec.rb' + - 'spec/lib/gitlab/hook_data/base_builder_spec.rb' + - 'spec/lib/gitlab/hotlinking_detector_spec.rb' + - 'spec/lib/gitlab/import/import_failure_service_spec.rb' + - 'spec/lib/gitlab/import/metrics_spec.rb' + - 'spec/lib/gitlab/import_export/attribute_cleaner_spec.rb' + - 'spec/lib/gitlab/import_export/base/relation_factory_spec.rb' + - 'spec/lib/gitlab/import_export/decompressed_archive_size_validator_spec.rb' + - 'spec/lib/gitlab/import_export/group/relation_factory_spec.rb' + - 'spec/lib/gitlab/import_export/importer_spec.rb' + - 'spec/lib/gitlab/import_export/project/relation_factory_spec.rb' + - 'spec/lib/gitlab/import_export/project/sample/relation_factory_spec.rb' + - 'spec/lib/gitlab/import_export/project/tree_saver_spec.rb' + - 'spec/lib/gitlab/issuables_count_for_state_spec.rb' + - 'spec/lib/gitlab/issues/rebalancing/state_spec.rb' + - 'spec/lib/gitlab/jira/middleware_spec.rb' + - 'spec/lib/gitlab/jira_import/issue_serializer_spec.rb' + - 'spec/lib/gitlab/jira_import/labels_importer_spec.rb' + - 'spec/lib/gitlab/jira_import/metadata_collector_spec.rb' + - 'spec/lib/gitlab/jira_import_spec.rb' + - 'spec/lib/gitlab/job_waiter_spec.rb' + - 'spec/lib/gitlab/json_cache_spec.rb' + - 'spec/lib/gitlab/kas/client_spec.rb' + - 'spec/lib/gitlab/kubernetes/config_map_spec.rb' + - 'spec/lib/gitlab/kubernetes/default_namespace_spec.rb' + - 'spec/lib/gitlab/kubernetes/helm/api_spec.rb' + - 'spec/lib/gitlab/kubernetes/namespace_spec.rb' + - 'spec/lib/gitlab/lazy_spec.rb' + - 'spec/lib/gitlab/legacy_github_import/importer_spec.rb' + - 'spec/lib/gitlab/legacy_github_import/issuable_formatter_spec.rb' + - 'spec/lib/gitlab/lets_encrypt/client_spec.rb' + - 'spec/lib/gitlab/mail_room/mail_room_spec.rb' + - 'spec/lib/gitlab/manifest_import/metadata_spec.rb' + - 'spec/lib/gitlab/markdown_cache/field_data_spec.rb' + - 'spec/lib/gitlab/merge_requests/commit_message_generator_spec.rb' + - 'spec/lib/gitlab/merge_requests/mergeability/redis_interface_spec.rb' + - 'spec/lib/gitlab/metrics/boot_time_tracker_spec.rb' + - 'spec/lib/gitlab/metrics/dashboard/importers/prometheus_metrics_spec.rb' + - 'spec/lib/gitlab/metrics/elasticsearch_rack_middleware_spec.rb' + - 'spec/lib/gitlab/metrics/exporter/base_exporter_spec.rb' + - 'spec/lib/gitlab/metrics/exporter/gc_request_middleware_spec.rb' + - 'spec/lib/gitlab/metrics/exporter/metrics_middleware_spec.rb' + - 'spec/lib/gitlab/metrics/rack_middleware_spec.rb' + - 'spec/lib/gitlab/metrics/requests_rack_middleware_spec.rb' + - 'spec/lib/gitlab/metrics/samplers/database_sampler_spec.rb' + - 'spec/lib/gitlab/metrics/samplers/puma_sampler_spec.rb' + - 'spec/lib/gitlab/metrics/samplers/ruby_sampler_spec.rb' + - 'spec/lib/gitlab/metrics/sli_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/action_cable_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/action_view_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/active_record_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/external_http_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/load_balancing_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/rack_attack_spec.rb' + - 'spec/lib/gitlab/metrics/subscribers/rails_cache_spec.rb' + - 'spec/lib/gitlab/metrics/web_transaction_spec.rb' + - 'spec/lib/gitlab/middleware/basic_health_check_spec.rb' + - 'spec/lib/gitlab/middleware/compressed_json_spec.rb' + - 'spec/lib/gitlab/middleware/go_spec.rb' + - 'spec/lib/gitlab/middleware/handle_malformed_strings_spec.rb' + - 'spec/lib/gitlab/middleware/multipart_spec.rb' + - 'spec/lib/gitlab/middleware/query_analyzer_spec.rb' + - 'spec/lib/gitlab/middleware/rails_queue_duration_spec.rb' + - 'spec/lib/gitlab/middleware/release_env_spec.rb' + - 'spec/lib/gitlab/middleware/sidekiq_web_static_spec.rb' + - 'spec/lib/gitlab/middleware/speedscope_spec.rb' + - 'spec/lib/gitlab/middleware/webhook_recursion_detection_spec.rb' + - 'spec/lib/gitlab/octokit/middleware_spec.rb' + - 'spec/lib/gitlab/optimistic_locking_spec.rb' + - 'spec/lib/gitlab/pages/settings_spec.rb' + - 'spec/lib/gitlab/pagination/cursor_based_keyset_spec.rb' + - 'spec/lib/gitlab/pagination/gitaly_keyset_pager_spec.rb' + - 'spec/lib/gitlab/pagination/keyset/cursor_based_request_context_spec.rb' + - 'spec/lib/gitlab/pagination/keyset/cursor_pager_spec.rb' + - 'spec/lib/gitlab/pagination/keyset/pager_spec.rb' + - 'spec/lib/gitlab/pagination/keyset/request_context_spec.rb' + - 'spec/lib/gitlab/pagination/keyset_spec.rb' + - 'spec/lib/gitlab/pagination/offset_header_builder_spec.rb' + - 'spec/lib/gitlab/pagination/offset_pagination_spec.rb' + - 'spec/lib/gitlab/performance_bar/stats_spec.rb' + - 'spec/lib/gitlab/phabricator_import/conduit/maniphest_spec.rb' + - 'spec/lib/gitlab/phabricator_import/conduit/response_spec.rb' + - 'spec/lib/gitlab/phabricator_import/conduit/user_spec.rb' + - 'spec/lib/gitlab/polling_interval_spec.rb' + - 'spec/lib/gitlab/popen/runner_spec.rb' + - 'spec/lib/gitlab/process_management_spec.rb' + - 'spec/lib/gitlab/profiler_spec.rb' + - 'spec/lib/gitlab/prometheus/adapter_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/deployment_query_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/knative_invocation_query_spec.rb' + - 'spec/lib/gitlab/prometheus/queries/matched_metric_query_spec.rb' + - 'spec/lib/gitlab/query_limiting/middleware_spec.rb' + - 'spec/lib/gitlab/quick_actions/dsl_spec.rb' + - 'spec/lib/gitlab/repository_cache_spec.rb' + - 'spec/lib/gitlab/routing_spec.rb' + - 'spec/lib/gitlab/runtime_spec.rb' + - 'spec/lib/gitlab/sanitizers/svg_spec.rb' + - 'spec/lib/gitlab/search/abuse_validators/no_abusive_coercion_from_string_validator_spec.rb' + - 'spec/lib/gitlab/search/abuse_validators/no_abusive_term_length_validator_spec.rb' + - 'spec/lib/gitlab/serializer/pagination_spec.rb' + - 'spec/lib/gitlab/sidekiq_config/cli_methods_spec.rb' + - 'spec/lib/gitlab/sidekiq_config/worker_spec.rb' + - 'spec/lib/gitlab/sidekiq_middleware/client_metrics_spec.rb' + - 'spec/lib/gitlab/sidekiq_middleware/query_analyzer_spec.rb' + - 'spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb' + - 'spec/lib/gitlab/sidekiq_middleware_spec.rb' + - 'spec/lib/gitlab/sidekiq_status/client_middleware_spec.rb' + - 'spec/lib/gitlab/sidekiq_status/server_middleware_spec.rb' + - 'spec/lib/gitlab/slash_commands/command_spec.rb' + - 'spec/lib/gitlab/slash_commands/deploy_spec.rb' + - 'spec/lib/gitlab/slash_commands/issue_close_spec.rb' + - 'spec/lib/gitlab/slash_commands/issue_comment_spec.rb' + - 'spec/lib/gitlab/slash_commands/issue_new_spec.rb' + - 'spec/lib/gitlab/slash_commands/issue_search_spec.rb' + - 'spec/lib/gitlab/slash_commands/issue_show_spec.rb' + - 'spec/lib/gitlab/slash_commands/presenters/run_spec.rb' + - 'spec/lib/gitlab/slash_commands/run_spec.rb' + - 'spec/lib/gitlab/spamcheck/client_spec.rb' + - 'spec/lib/gitlab/submodule_links_spec.rb' + - 'spec/lib/gitlab/suggestions/file_suggestion_spec.rb' + - 'spec/lib/gitlab/tab_width_spec.rb' + - 'spec/lib/gitlab/themes_spec.rb' + - 'spec/lib/gitlab/tracking_spec.rb' + - 'spec/lib/gitlab/usage/metric_spec.rb' + - 'spec/lib/gitlab/usage/metrics/instrumentations/database_metric_spec.rb' + - 'spec/lib/gitlab/usage_data_counters/merge_request_activity_unique_counter_spec.rb' + - 'spec/lib/gitlab/usage_data_spec.rb' + - 'spec/lib/gitlab/utils/usage_data_spec.rb' + - 'spec/lib/gitlab/verify/job_artifacts_spec.rb' + - 'spec/lib/gitlab/verify/lfs_objects_spec.rb' + - 'spec/lib/gitlab/verify/uploads_spec.rb' + - 'spec/lib/gitlab/view/presenter/base_spec.rb' + - 'spec/lib/gitlab/view/presenter/delegated_spec.rb' + - 'spec/lib/gitlab/view/presenter/simple_spec.rb' + - 'spec/lib/gitlab/workhorse_spec.rb' + - 'spec/lib/gitlab_edition_spec.rb' + - 'spec/lib/gitlab_spec.rb' + - 'spec/lib/google_api/cloud_platform/client_spec.rb' + - 'spec/lib/peek/views/active_record_spec.rb' + - 'spec/lib/peek/views/bullet_detailed_spec.rb' + - 'spec/lib/peek/views/external_http_spec.rb' + - 'spec/lib/safe_zip/entry_spec.rb' + - 'spec/lib/serializers/unsafe_json_spec.rb' + - 'spec/lib/sidebars/projects/menus/analytics_menu_spec.rb' + - 'spec/mailers/emails/service_desk_spec.rb' + - 'spec/mailers/notify_spec.rb' + - 'spec/metrics_server/metrics_server_spec.rb' + - 'spec/migrations/20210406144743_backfill_total_tuple_count_for_batched_migrations_spec.rb' + - 'spec/models/active_session_spec.rb' + - 'spec/models/application_record_spec.rb' + - 'spec/models/badge_spec.rb' + - 'spec/models/badges/project_badge_spec.rb' + - 'spec/models/ci/build_spec.rb' + - 'spec/models/ci/build_trace_chunk_spec.rb' + - 'spec/models/ci/commit_with_pipeline_spec.rb' + - 'spec/models/ci/group_spec.rb' + - 'spec/models/ci/pipeline_spec.rb' + - 'spec/models/clusters/applications/runner_spec.rb' + - 'spec/models/clusters/cluster_spec.rb' + - 'spec/models/clusters/platforms/kubernetes_spec.rb' + - 'spec/models/commit_spec.rb' + - 'spec/models/concerns/atomic_internal_id_spec.rb' + - 'spec/models/concerns/legacy_bulk_insert_spec.rb' + - 'spec/models/concerns/prometheus_adapter_spec.rb' + - 'spec/models/concerns/token_authenticatable_strategies/base_spec.rb' + - 'spec/models/concerns/token_authenticatable_strategies/encrypted_spec.rb' + - 'spec/models/concerns/triggerable_hooks_spec.rb' + - 'spec/models/concerns/x509_serial_number_attribute_spec.rb' + - 'spec/models/design_management/design_action_spec.rb' + - 'spec/models/design_management/design_at_version_spec.rb' + - 'spec/models/diff_viewer/image_spec.rb' + - 'spec/models/environment_spec.rb' + - 'spec/models/event_spec.rb' + - 'spec/models/external_issue_spec.rb' + - 'spec/models/hooks/web_hook_spec.rb' + - 'spec/models/integrations/asana_spec.rb' + - 'spec/models/integrations/chat_message/pipeline_message_spec.rb' + - 'spec/models/integrations/jira_spec.rb' + - 'spec/models/integrations/microsoft_teams_spec.rb' + - 'spec/models/integrations/pipelines_email_spec.rb' + - 'spec/models/issue_spec.rb' + - 'spec/models/key_spec.rb' + - 'spec/models/merge_request_diff_commit_spec.rb' + - 'spec/models/merge_request_spec.rb' + - 'spec/models/packages/package_spec.rb' + - 'spec/models/plan_limits_spec.rb' + - 'spec/models/project_spec.rb' + - 'spec/models/ref_matcher_spec.rb' + - 'spec/models/release_highlight_spec.rb' + - 'spec/models/repository_spec.rb' + - 'spec/models/shard_spec.rb' + - 'spec/models/snippet_spec.rb' + - 'spec/models/ssh_host_key_spec.rb' + - 'spec/models/upload_spec.rb' + - 'spec/models/user_spec.rb' + - 'spec/policies/ci/bridge_policy_spec.rb' + - 'spec/presenters/ci/pipeline_artifacts/code_quality_mr_diff_presenter_spec.rb' + - 'spec/presenters/group_member_presenter_spec.rb' + - 'spec/presenters/merge_request_presenter_spec.rb' + - 'spec/presenters/packages/nuget/search_results_presenter_spec.rb' + - 'spec/presenters/project_member_presenter_spec.rb' + - 'spec/presenters/project_presenter_spec.rb' + - 'spec/requests/api/avatar_spec.rb' + - 'spec/requests/api/container_registry_event_spec.rb' + - 'spec/requests/api/graphql/mutations/design_management/delete_spec.rb' + - 'spec/requests/api/graphql/mutations/snippets/create_spec.rb' + - 'spec/requests/api/graphql/project/cluster_agents_spec.rb' + - 'spec/requests/api/graphql/project/pipeline_spec.rb' + - 'spec/requests/api/helpers_spec.rb' + - 'spec/requests/api/import_bitbucket_server_spec.rb' + - 'spec/requests/api/import_github_spec.rb' + - 'spec/requests/api/internal/base_spec.rb' + - 'spec/requests/api/maven_packages_spec.rb' + - 'spec/requests/api/project_container_repositories_spec.rb' + - 'spec/requests/api/users_preferences_spec.rb' + - 'spec/requests/jwt_controller_spec.rb' + - 'spec/requests/whats_new_controller_spec.rb' + - 'spec/rubocop/migration_helpers_spec.rb' + - 'spec/scripts/setup/find_jh_branch_spec.rb' + - 'spec/serializers/accessibility_reports_comparer_serializer_spec.rb' + - 'spec/serializers/admin/user_entity_spec.rb' + - 'spec/serializers/base_discussion_entity_spec.rb' + - 'spec/serializers/build_action_entity_spec.rb' + - 'spec/serializers/build_details_entity_spec.rb' + - 'spec/serializers/build_trace_entity_spec.rb' + - 'spec/serializers/ci/dag_job_entity_spec.rb' + - 'spec/serializers/ci/dag_job_group_entity_spec.rb' + - 'spec/serializers/ci/dag_pipeline_entity_spec.rb' + - 'spec/serializers/ci/dag_stage_entity_spec.rb' + - 'spec/serializers/ci/daily_build_group_report_result_entity_spec.rb' + - 'spec/serializers/ci/daily_build_group_report_result_serializer_spec.rb' + - 'spec/serializers/ci/job_entity_spec.rb' + - 'spec/serializers/ci/pipeline_entity_spec.rb' + - 'spec/serializers/codequality_reports_comparer_serializer_spec.rb' + - 'spec/serializers/commit_entity_spec.rb' + - 'spec/serializers/container_repositories_serializer_spec.rb' + - 'spec/serializers/container_repository_entity_spec.rb' + - 'spec/serializers/container_tag_entity_spec.rb' + - 'spec/serializers/deployment_cluster_entity_spec.rb' + - 'spec/serializers/deployment_entity_spec.rb' + - 'spec/serializers/detailed_status_entity_spec.rb' + - 'spec/serializers/diffs_entity_spec.rb' + - 'spec/serializers/diffs_metadata_entity_spec.rb' + - 'spec/serializers/discussion_entity_spec.rb' + - 'spec/serializers/environment_entity_spec.rb' + - 'spec/serializers/environment_serializer_spec.rb' + - 'spec/serializers/environment_status_entity_spec.rb' + - 'spec/serializers/feature_flag_entity_spec.rb' + - 'spec/serializers/feature_flag_summary_entity_spec.rb' + - 'spec/serializers/group_child_entity_spec.rb' + - 'spec/serializers/group_child_serializer_spec.rb' + - 'spec/serializers/import/manifest_provider_repo_entity_spec.rb' + - 'spec/serializers/issuable_sidebar_extras_entity_spec.rb' + - 'spec/serializers/issue_board_entity_spec.rb' + - 'spec/serializers/issue_entity_spec.rb' + - 'spec/serializers/lfs_file_lock_entity_spec.rb' + - 'spec/serializers/linked_project_issue_entity_spec.rb' + - 'spec/serializers/merge_request_poll_cached_widget_entity_spec.rb' + - 'spec/serializers/merge_request_poll_widget_entity_spec.rb' + - 'spec/serializers/merge_request_sidebar_basic_entity_spec.rb' + - 'spec/serializers/merge_request_sidebar_extras_entity_spec.rb' + - 'spec/serializers/merge_request_widget_commit_entity_spec.rb' + - 'spec/serializers/merge_request_widget_entity_spec.rb' + - 'spec/serializers/merge_requests/pipeline_entity_spec.rb' + - 'spec/serializers/note_entity_spec.rb' + - 'spec/serializers/paginated_diff_entity_spec.rb' + - 'spec/serializers/pipeline_details_entity_spec.rb' + - 'spec/serializers/pipeline_serializer_spec.rb' + - 'spec/serializers/project_note_entity_spec.rb' + - 'spec/serializers/prometheus_alert_entity_spec.rb' + - 'spec/serializers/review_app_setup_entity_spec.rb' + - 'spec/serializers/runner_entity_spec.rb' + - 'spec/serializers/stage_entity_spec.rb' + - 'spec/serializers/suggestion_entity_spec.rb' + - 'spec/serializers/test_reports_comparer_serializer_spec.rb' + - 'spec/serializers/test_suite_entity_spec.rb' + - 'spec/serializers/trigger_variable_entity_spec.rb' + - 'spec/services/access_token_validation_service_spec.rb' + - 'spec/services/authorized_project_update/find_records_due_for_refresh_service_spec.rb' + - 'spec/services/award_emojis/toggle_service_spec.rb' + - 'spec/services/base_count_service_spec.rb' + - 'spec/services/bulk_imports/file_download_service_spec.rb' + - 'spec/services/ci/change_variables_service_spec.rb' + - 'spec/services/ci/create_pipeline_service_spec.rb' + - 'spec/services/ci/pipeline_creation/start_pipeline_service_spec.rb' + - 'spec/services/ci/prepare_build_service_spec.rb' + - 'spec/services/ci/process_pipeline_service_spec.rb' + - 'spec/services/ci/register_job_service_spec.rb' + - 'spec/services/ci/test_failure_history_service_spec.rb' + - 'spec/services/ci/update_build_queue_service_spec.rb' + - 'spec/services/ci/update_build_state_service_spec.rb' + - 'spec/services/clusters/aws/finalize_creation_service_spec.rb' + - 'spec/services/clusters/aws/provision_service_spec.rb' + - 'spec/services/clusters/aws/verify_provision_status_service_spec.rb' + - 'spec/services/clusters/build_kubernetes_namespace_service_spec.rb' + - 'spec/services/clusters/kubernetes/create_or_update_namespace_service_spec.rb' + - 'spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb' + - 'spec/services/container_expiration_policies/cleanup_service_spec.rb' + - 'spec/services/deployments/create_service_spec.rb' + - 'spec/services/discussions/capture_diff_note_position_service_spec.rb' + - 'spec/services/event_create_service_spec.rb' + - 'spec/services/git/base_hooks_service_spec.rb' + - 'spec/services/git/process_ref_changes_service_spec.rb' + - 'spec/services/git/wiki_push_service/change_spec.rb' + - 'spec/services/ide/schemas_config_service_spec.rb' + - 'spec/services/import/bitbucket_server_service_spec.rb' + - 'spec/services/issues/create_service_spec.rb' + - 'spec/services/jira_connect_subscriptions/create_service_spec.rb' + - 'spec/services/merge_requests/add_todo_when_build_fails_service_spec.rb' + - 'spec/services/merge_requests/approval_service_spec.rb' + - 'spec/services/merge_requests/build_service_spec.rb' + - 'spec/services/merge_requests/close_service_spec.rb' + - 'spec/services/merge_requests/merge_service_spec.rb' + - 'spec/services/merge_requests/post_merge_service_spec.rb' + - 'spec/services/merge_requests/refresh_service_spec.rb' + - 'spec/services/merge_requests/reopen_service_spec.rb' + - 'spec/services/merge_requests/request_review_service_spec.rb' + - 'spec/services/metrics/dashboard/clone_dashboard_service_spec.rb' + - 'spec/services/metrics/dashboard/update_dashboard_service_spec.rb' + - 'spec/services/metrics/users_starred_dashboards/create_service_spec.rb' + - 'spec/services/milestones/update_service_spec.rb' + - 'spec/services/namespaces/in_product_marketing_emails_service_spec.rb' + - 'spec/services/notes/create_service_spec.rb' + - 'spec/services/notes/render_service_spec.rb' + - 'spec/services/notification_service_spec.rb' + - 'spec/services/packages/generic/create_package_file_service_spec.rb' + - 'spec/services/packages/maven/find_or_create_package_service_spec.rb' + - 'spec/services/packages/maven/metadata/sync_service_spec.rb' + - 'spec/services/packages/nuget/metadata_extraction_service_spec.rb' + - 'spec/services/pages/zip_directory_service_spec.rb' + - 'spec/services/post_receive_service_spec.rb' + - 'spec/services/projects/branches_by_mode_service_spec.rb' + - 'spec/services/projects/create_service_spec.rb' + - 'spec/services/projects/destroy_service_spec.rb' + - 'spec/services/projects/import_service_spec.rb' + - 'spec/services/projects/operations/update_service_spec.rb' + - 'spec/services/projects/overwrite_project_service_spec.rb' + - 'spec/services/projects/update_pages_service_spec.rb' + - 'spec/services/projects/update_remote_mirror_service_spec.rb' + - 'spec/services/projects/update_repository_storage_service_spec.rb' + - 'spec/services/projects/update_service_spec.rb' + - 'spec/services/repositories/changelog_service_spec.rb' + - 'spec/services/search_service_spec.rb' + - 'spec/services/snippets/update_repository_storage_service_spec.rb' + - 'spec/services/spam/akismet_mark_as_spam_service_spec.rb' + - 'spec/services/spam/akismet_service_spec.rb' + - 'spec/services/spam/ham_service_spec.rb' + - 'spec/services/spam/spam_action_service_spec.rb' + - 'spec/services/spam/spam_params_spec.rb' + - 'spec/services/system_note_service_spec.rb' + - 'spec/services/system_notes/commit_service_spec.rb' + - 'spec/services/system_notes/issuables_service_spec.rb' + - 'spec/services/update_merge_request_metrics_service_spec.rb' + - 'spec/services/users/activity_service_spec.rb' + - 'spec/services/users/create_service_spec.rb' + - 'spec/services/users/refresh_authorized_projects_service_spec.rb' + - 'spec/services/users/update_service_spec.rb' + - 'spec/services/web_hook_service_spec.rb' + - 'spec/services/wiki_pages/base_service_spec.rb' + - 'spec/spam/concerns/has_spam_action_response_fields_spec.rb' + - 'spec/support/helpers/graphql_helpers.rb' + - 'spec/support/helpers/import_spec_helper.rb' + - 'spec/support/helpers/ldap_helpers.rb' + - 'spec/support/helpers/project_forks_helper.rb' + - 'spec/support/helpers/stub_metrics.rb' + - 'spec/support/helpers/stub_spam_services.rb' + - 'spec/support/import_export/common_util.rb' + - 'spec/support/prometheus/additional_metrics_shared_examples.rb' + - 'spec/support/shared_contexts/lib/gitlab/sidekiq_middleware/server_metrics_shared_context.rb' + - 'spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb' + - 'spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb' + - 'spec/support/shared_examples/controllers/snippets_sort_order_shared_examples.rb' + - 'spec/support/shared_examples/graphql/mutations/http_integrations_shared_examples.rb' + - 'spec/support/shared_examples/lib/gitlab/config/inheritable_shared_examples.rb' + - 'spec/support/shared_examples/lib/gitlab/diff_file_collections_shared_examples.rb' + - 'spec/support/shared_examples/metrics/active_record_subscriber_shared_examples.rb' + - 'spec/support/shared_examples/metrics/sampler_shared_examples.rb' + - 'spec/support/shared_examples/models/chat_integration_shared_examples.rb' + - 'spec/support/shared_examples/models/concerns/integrations/slack_mattermost_notifier_shared_examples.rb' + - 'spec/support/shared_examples/models/members_notifications_shared_example.rb' + - 'spec/support/shared_examples/models/project_ci_cd_settings_shared_examples.rb' + - 'spec/support/shared_examples/namespaces/hierarchy_examples.rb' + - 'spec/support/shared_examples/requests/api/composer_packages_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/conan_packages_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/debian_common_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/nuget_endpoints_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/pypi_packages_shared_examples.rb' + - 'spec/support/shared_examples/requests/api/rubygems_packages_shared_examples.rb' + - 'spec/support/shared_examples/requests/rack_attack_shared_examples.rb' + - 'spec/support/shared_examples/serializers/diff_file_entity_shared_examples.rb' + - 'spec/support/shared_examples/serializers/environment_serializer_shared_examples.rb' + - 'spec/support/shared_examples/services/alert_management/alert_processing/notifications_shared_examples.rb' + - 'spec/support/shared_examples/services/alert_management_shared_examples.rb' + - 'spec/support/shared_examples/services/boards/issues_move_service_shared_examples.rb' + - 'spec/support/shared_examples/services/check_ingress_ip_address_service_shared_examples.rb' + - 'spec/support/shared_examples/services/jira/requests/base_shared_examples.rb' + - 'spec/support/shared_examples/services/metrics/dashboard_shared_examples.rb' + - 'spec/support/shared_examples/services/projects/update_repository_storage_service_shared_examples.rb' + - 'spec/support/shared_examples/services/resource_events/synthetic_notes_builder_shared_examples.rb' + - 'spec/support/shared_examples/workers/background_migration_worker_shared_examples.rb' + - 'spec/support/shared_examples/workers/update_repository_move_shared_examples.rb' + - 'spec/tasks/gettext_rake_spec.rb' + - 'spec/tasks/gitlab/background_migrations_rake_spec.rb' + - 'spec/tasks/gitlab/check_rake_spec.rb' + - 'spec/tasks/gitlab/cleanup_rake_spec.rb' + - 'spec/tasks/gitlab/db_rake_spec.rb' + - 'spec/tasks/gitlab/packages/events_rake_spec.rb' + - 'spec/tasks/gitlab/setup_rake_spec.rb' + - 'spec/tooling/danger/project_helper_spec.rb' + - 'spec/tooling/lib/tooling/helm3_client_spec.rb' + - 'spec/tooling/lib/tooling/kubernetes_client_spec.rb' + - 'spec/tooling/rspec_flaky/example_spec.rb' + - 'spec/tooling/rspec_flaky/listener_spec.rb' + - 'spec/uploaders/file_uploader_spec.rb' + - 'spec/uploaders/object_storage_spec.rb' + - 'spec/uploaders/personal_file_uploader_spec.rb' + - 'spec/uploaders/records_uploads_spec.rb' + - 'spec/views/projects/issues/show.html.haml_spec.rb' + - 'spec/views/shared/milestones/_issuables.html.haml_spec.rb' + - 'spec/views/shared/wikis/_sidebar.html.haml_spec.rb' + - 'spec/workers/bulk_imports/export_request_worker_spec.rb' + - 'spec/workers/chat_notification_worker_spec.rb' + - 'spec/workers/ci/build_prepare_worker_spec.rb' + - 'spec/workers/ci/create_cross_project_pipeline_worker_spec.rb' + - 'spec/workers/ci/create_downstream_pipeline_worker_spec.rb' + - 'spec/workers/ci/pipeline_bridge_status_worker_spec.rb' + - 'spec/workers/ci/pipeline_success_unlock_artifacts_worker_spec.rb' + - 'spec/workers/ci/ref_delete_unlock_artifacts_worker_spec.rb' + - 'spec/workers/clusters/agents/delete_expired_events_worker_spec.rb' + - 'spec/workers/concerns/application_worker_spec.rb' + - 'spec/workers/concerns/gitlab/github_import/object_importer_spec.rb' + - 'spec/workers/concerns/gitlab/github_import/stage_methods_spec.rb' + - 'spec/workers/container_expiration_policies/cleanup_container_repository_worker_spec.rb' + - 'spec/workers/create_commit_signature_worker_spec.rb' + - 'spec/workers/environments/auto_stop_worker_spec.rb' + - 'spec/workers/error_tracking_issue_link_worker_spec.rb' + - 'spec/workers/gitlab/github_import/advance_stage_worker_spec.rb' + - 'spec/workers/gitlab/github_import/import_diff_note_worker_spec.rb' + - 'spec/workers/gitlab/github_import/import_issue_worker_spec.rb' + - 'spec/workers/gitlab/github_import/import_note_worker_spec.rb' + - 'spec/workers/gitlab/github_import/import_pull_request_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/finish_import_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_base_data_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_issues_and_diff_notes_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_lfs_objects_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_notes_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_pull_requests_merged_by_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_pull_requests_reviews_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_pull_requests_worker_spec.rb' + - 'spec/workers/gitlab/github_import/stage/import_repository_worker_spec.rb' + - 'spec/workers/gitlab_performance_bar_stats_worker_spec.rb' + - 'spec/workers/invalid_gpg_signature_update_worker_spec.rb' + - 'spec/workers/issues/rebalancing_worker_spec.rb' + - 'spec/workers/merge_request_mergeability_check_worker_spec.rb' + - 'spec/workers/new_issue_worker_spec.rb' + - 'spec/workers/new_merge_request_worker_spec.rb' + - 'spec/workers/pages_domain_ssl_renewal_worker_spec.rb' + - 'spec/workers/pages_domain_verification_worker_spec.rb' + - 'spec/workers/post_receive_spec.rb' + - 'spec/workers/project_cache_worker_spec.rb' + - 'spec/workers/projects/after_import_worker_spec.rb' + - 'spec/workers/propagate_integration_group_worker_spec.rb' + - 'spec/workers/propagate_integration_inherit_descendant_worker_spec.rb' + - 'spec/workers/propagate_integration_inherit_worker_spec.rb' + - 'spec/workers/propagate_integration_project_worker_spec.rb' + - 'spec/workers/purge_dependency_proxy_cache_worker_spec.rb' + - 'spec/workers/repository_import_worker_spec.rb' + - 'spec/workers/system_hook_push_worker_spec.rb' diff --git a/.rubocop_todo/style/accessor_grouping.yml b/.rubocop_todo/style/accessor_grouping.yml index a4fae856953..27b14007afd 100644 --- a/.rubocop_todo/style/accessor_grouping.yml +++ b/.rubocop_todo/style/accessor_grouping.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/AccessorGrouping: Exclude: - 'app/finders/template_finder.rb' diff --git a/.rubocop_todo/style/bare_percent_literals.yml b/.rubocop_todo/style/bare_percent_literals.yml index cb40669ca02..e98660024db 100644 --- a/.rubocop_todo/style/bare_percent_literals.yml +++ b/.rubocop_todo/style/bare_percent_literals.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/BarePercentLiterals: Exclude: - 'app/models/commit.rb' @@ -75,7 +75,6 @@ Style/BarePercentLiterals: - 'spec/lib/banzai/pipeline/full_pipeline_spec.rb' - 'spec/lib/banzai/pipeline/incident_management/timeline_event_pipeline_spec.rb' - 'spec/lib/banzai/pipeline/plain_markdown_pipeline_spec.rb' - - 'spec/lib/banzai/reference_parser/commit_parser_spec.rb' - 'spec/lib/banzai/reference_parser/issue_parser_spec.rb' - 'spec/lib/banzai/reference_parser/merge_request_parser_spec.rb' - 'spec/lib/gitlab/diff/highlight_spec.rb' diff --git a/.rubocop_todo/style/class_and_module_children.yml b/.rubocop_todo/style/class_and_module_children.yml index bff827ba5d3..9b5f27229a4 100644 --- a/.rubocop_todo/style/class_and_module_children.yml +++ b/.rubocop_todo/style/class_and_module_children.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/ClassAndModuleChildren: Exclude: - 'app/components/pajamas/toggle_component.rb' @@ -22,7 +22,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/admin/gitaly_servers_controller.rb' - 'app/controllers/admin/groups_controller.rb' - 'app/controllers/admin/health_check_controller.rb' - - 'app/controllers/admin/hook_logs_controller.rb' - 'app/controllers/admin/hooks_controller.rb' - 'app/controllers/admin/identities_controller.rb' - 'app/controllers/admin/impersonation_tokens_controller.rb' @@ -47,7 +46,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/clusters/base_controller.rb' - 'app/controllers/clusters/clusters_controller.rb' - 'app/controllers/concerns/integrations/actions.rb' - - 'app/controllers/concerns/integrations/hooks_execution.rb' - 'app/controllers/concerns/metrics/dashboard/prometheus_api_proxy.rb' - 'app/controllers/concerns/snippets/blobs_actions.rb' - 'app/controllers/concerns/snippets/send_blob.rb' @@ -149,7 +147,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/projects/ci/daily_build_group_report_results_controller.rb' - 'app/controllers/projects/ci/lints_controller.rb' - 'app/controllers/projects/ci/pipeline_editor_controller.rb' - - 'app/controllers/projects/ci/secure_files_controller.rb' - 'app/controllers/projects/cluster_agents_controller.rb' - 'app/controllers/projects/clusters/integrations_controller.rb' - 'app/controllers/projects/clusters_controller.rb' @@ -178,7 +175,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/projects/google_cloud/gcp_regions_controller.rb' - 'app/controllers/projects/google_cloud/revoke_oauth_controller.rb' - 'app/controllers/projects/google_cloud/service_accounts_controller.rb' - - 'app/controllers/projects/google_cloud_controller.rb' - 'app/controllers/projects/grafana_api_controller.rb' - 'app/controllers/projects/graphs_controller.rb' - 'app/controllers/projects/group_links_controller.rb' @@ -207,7 +203,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/projects/pipeline_schedules_controller.rb' - 'app/controllers/projects/pipelines_controller.rb' - 'app/controllers/projects/pipelines_settings_controller.rb' - - 'app/controllers/projects/product_analytics_controller.rb' - 'app/controllers/projects/project_members_controller.rb' - 'app/controllers/projects/protected_branches_controller.rb' - 'app/controllers/projects/protected_refs_controller.rb' @@ -225,7 +220,6 @@ Style/ClassAndModuleChildren: - 'app/controllers/projects/snippets/blobs_controller.rb' - 'app/controllers/projects/snippets_controller.rb' - 'app/controllers/projects/starrers_controller.rb' - - 'app/controllers/projects/tags/releases_controller.rb' - 'app/controllers/projects/tags_controller.rb' - 'app/controllers/projects/templates_controller.rb' - 'app/controllers/projects/terraform_controller.rb' @@ -361,7 +355,6 @@ Style/ClassAndModuleChildren: - 'app/workers/merge_requests/delete_source_branch_worker.rb' - 'app/workers/merge_requests/handle_assignees_change_worker.rb' - 'app/workers/merge_requests/resolve_todos_worker.rb' - - 'config/initializers/active_record_data_types.rb' - 'config/initializers/http_hostname_override.rb' - 'config/initializers/httpclient_patch.rb' - 'config/initializers/omniauth.rb' @@ -500,7 +493,6 @@ Style/ClassAndModuleChildren: - 'ee/app/models/geo/upload_registry.rb' - 'ee/app/models/protected_branch/required_code_owners_section.rb' - 'ee/app/models/protected_branch/unprotect_access_level.rb' - - 'ee/app/models/protected_environment/deploy_access_level.rb' - 'ee/app/serializers/vulnerabilities/feedback_entity.rb' - 'ee/app/serializers/vulnerabilities/feedback_serializer.rb' - 'ee/app/serializers/vulnerabilities/finding_diff_serializer.rb' @@ -515,9 +507,7 @@ Style/ClassAndModuleChildren: - 'ee/app/services/ee/projects/after_rename_service.rb' - 'ee/app/services/ee/projects/disable_deploy_key_service.rb' - 'ee/app/services/ee/projects/enable_deploy_key_service.rb' - - 'ee/app/services/ee/projects/update_pages_service.rb' - 'ee/db/fixtures/development/20_burndown.rb' - - 'ee/db/fixtures/development/20_vulnerabilities.rb' - 'ee/db/fixtures/development/21_dast_profiles.rb' - 'ee/db/fixtures/development/30_customizable_cycle_analytics.rb' - 'ee/db/fixtures/development/32_compliance_report_violations.rb' @@ -536,7 +526,6 @@ Style/ClassAndModuleChildren: - 'lib/gitlab/background_migration/recalculate_vulnerabilities_occurrences_uuid.rb' - 'lib/gitlab/background_migration/remove_duplicate_vulnerabilities_findings.rb' - 'lib/gitlab/background_migration/remove_occurrence_pipelines_and_duplicate_vulnerabilities_findings.rb' - - 'lib/gitlab/background_migration/update_jira_tracker_data_deployment_type_based_on_url.rb' - 'lib/gitlab/ci/badge/base.rb' - 'lib/gitlab/ci/badge/coverage/metadata.rb' - 'lib/gitlab/ci/badge/coverage/report.rb' diff --git a/.rubocop_todo/style/conditional_assignment.yml b/.rubocop_todo/style/conditional_assignment.yml index c9bbaaeb175..d16f2f7c3a7 100644 --- a/.rubocop_todo/style/conditional_assignment.yml +++ b/.rubocop_todo/style/conditional_assignment.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/ConditionalAssignment: Exclude: - 'app/helpers/icons_helper.rb' diff --git a/.rubocop_todo/style/each_for_simple_loop.yml b/.rubocop_todo/style/each_for_simple_loop.yml index 5d495f890d2..e7f99d69528 100644 --- a/.rubocop_todo/style/each_for_simple_loop.yml +++ b/.rubocop_todo/style/each_for_simple_loop.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/EachForSimpleLoop: Exclude: - 'ee/spec/lib/gitlab/insights/reducers/count_per_period_reducer_spec.rb' diff --git a/.rubocop_todo/style/empty_else.yml b/.rubocop_todo/style/empty_else.yml index 07e42692f60..bd30b4a7c50 100644 --- a/.rubocop_todo/style/empty_else.yml +++ b/.rubocop_todo/style/empty_else.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/EmptyElse: Exclude: - 'app/controllers/concerns/issuable_collections_action.rb' @@ -24,7 +24,6 @@ Style/EmptyElse: - 'app/models/resource_timebox_event.rb' - 'app/services/award_emojis/add_service.rb' - 'app/services/merge_requests/update_service.rb' - - 'app/workers/gitlab/github_import/stage/import_issue_events_worker.rb' - 'app/workers/post_receive.rb' - 'config/initializers/doorkeeper_openid_connect.rb' - 'ee/app/controllers/admin/audit_logs_controller.rb' @@ -37,7 +36,6 @@ Style/EmptyElse: - 'ee/app/services/gitlab_subscriptions/check_future_renewal_service.rb' - 'ee/app/services/projects/update_mirror_service.rb' - 'ee/app/workers/gitlab_subscriptions/notify_seats_exceeded_worker.rb' - - 'ee/db/fixtures/development/20_vulnerabilities.rb' - 'ee/lib/elastic/latest/note_instance_proxy.rb' - 'ee/lib/gitlab/analytics/cycle_analytics/summary/change_failure_rate.rb' - 'ee/lib/gitlab/geo/oauth/logout_token.rb' diff --git a/.rubocop_todo/style/empty_method.yml b/.rubocop_todo/style/empty_method.yml index 300d8678719..3c00f6278c5 100644 --- a/.rubocop_todo/style/empty_method.yml +++ b/.rubocop_todo/style/empty_method.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/EmptyMethod: Exclude: - 'app/controllers/admin/application_settings/appearances_controller.rb' @@ -11,7 +11,6 @@ Style/EmptyMethod: - 'app/controllers/admin/runners_controller.rb' - 'app/controllers/admin/topics_controller.rb' - 'app/controllers/admin/usage_trends_controller.rb' - - 'app/controllers/admin/users_controller.rb' - 'app/controllers/concerns/boards_actions.rb' - 'app/controllers/groups/milestones_controller.rb' - 'app/controllers/groups/runners_controller.rb' @@ -44,7 +43,6 @@ Style/EmptyMethod: - 'app/controllers/projects/mattermosts_controller.rb' - 'app/controllers/projects/pages_domains_controller.rb' - 'app/controllers/projects/pipeline_schedules_controller.rb' - - 'app/controllers/projects/product_analytics_controller.rb' - 'app/controllers/projects/runners_controller.rb' - 'app/controllers/projects/settings/integrations_controller.rb' - 'app/controllers/projects/settings/packages_and_registries_controller.rb' @@ -191,4 +189,3 @@ Style/EmptyMethod: - 'spec/lib/gitlab/utils/delegator_override_spec.rb' - 'spec/lib/gitlab/utils/override_spec.rb' - 'spec/lib/gitlab/utils/strong_memoize_spec.rb' - - 'spec/workers/concerns/waitable_worker_spec.rb' diff --git a/.rubocop_todo/style/explicit_block_argument.yml b/.rubocop_todo/style/explicit_block_argument.yml index 20e8c976fb7..895d09862d1 100644 --- a/.rubocop_todo/style/explicit_block_argument.yml +++ b/.rubocop_todo/style/explicit_block_argument.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/ExplicitBlockArgument: Exclude: - 'app/controllers/admin/background_migrations_controller.rb' @@ -38,7 +38,6 @@ Style/ExplicitBlockArgument: - 'lib/gitlab/application_context.rb' - 'lib/gitlab/authorized_keys.rb' - 'lib/gitlab/cache.rb' - - 'lib/gitlab/ci/build/artifacts/metadata/entry.rb' - 'lib/gitlab/ci/reports/test_suite.rb' - 'lib/gitlab/ci/variables/collection.rb' - 'lib/gitlab/cleanup/remote_uploads.rb' @@ -81,7 +80,6 @@ Style/ExplicitBlockArgument: - 'qa/qa/ee/page/project/wiki/show.rb' - 'qa/qa/flow/login.rb' - 'qa/qa/page/admin/menu.rb' - - 'qa/qa/page/base.rb' - 'qa/qa/page/component/blob_content.rb' - 'qa/qa/page/group/settings/group_deploy_tokens.rb' - 'qa/qa/page/profile/menu.rb' diff --git a/.rubocop_todo/style/float_division.yml b/.rubocop_todo/style/float_division.yml index 7fd0cda469d..b5cc208b836 100644 --- a/.rubocop_todo/style/float_division.yml +++ b/.rubocop_todo/style/float_division.yml @@ -1,7 +1,7 @@ --- +# Cop supports --autocorrect. Style/FloatDivision: Exclude: - 'ee/app/models/geo_node_status.rb' - 'ee/app/models/namespaces/storage/root_size.rb' - - 'qa/qa/support/formatters/allure_metadata_formatter.rb' - 'qa/qa/tools/reliable_report.rb' diff --git a/.rubocop_todo/style/format_string.yml b/.rubocop_todo/style/format_string.yml index 4da3c32416c..0e8abb1b12a 100644 --- a/.rubocop_todo/style/format_string.yml +++ b/.rubocop_todo/style/format_string.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/FormatString: Exclude: - 'app/components/diffs/overflow_warning_component.rb' @@ -14,7 +14,6 @@ Style/FormatString: - 'app/controllers/concerns/confirm_email_warning.rb' - 'app/controllers/concerns/enforces_two_factor_authentication.rb' - 'app/controllers/concerns/integrations/actions.rb' - - 'app/controllers/concerns/integrations/hooks_execution.rb' - 'app/controllers/concerns/membership_actions.rb' - 'app/controllers/concerns/redirects_for_missing_path_on_tree.rb' - 'app/controllers/concerns/spammable_actions/akismet_mark_as_spam_action.rb' @@ -28,7 +27,6 @@ Style/FormatString: - 'app/controllers/import/gitlab_groups_controller.rb' - 'app/controllers/import/gitlab_projects_controller.rb' - 'app/controllers/invites_controller.rb' - - 'app/controllers/jwt_controller.rb' - 'app/controllers/omniauth_callbacks_controller.rb' - 'app/controllers/profiles/chat_names_controller.rb' - 'app/controllers/profiles/emails_controller.rb' @@ -48,7 +46,6 @@ Style/FormatString: - 'app/finders/todos_finder.rb' - 'app/graphql/mutations/release_asset_links/create.rb' - 'app/helpers/auth_helper.rb' - - 'app/helpers/blob_helper.rb' - 'app/helpers/button_helper.rb' - 'app/helpers/ci/builds_helper.rb' - 'app/helpers/ci/pipelines_helper.rb' @@ -65,7 +62,6 @@ Style/FormatString: - 'app/helpers/members_helper.rb' - 'app/helpers/merge_requests_helper.rb' - 'app/helpers/mirror_helper.rb' - - 'app/helpers/notify_helper.rb' - 'app/helpers/preferences_helper.rb' - 'app/helpers/profiles_helper.rb' - 'app/helpers/projects/project_members_helper.rb' @@ -74,7 +70,6 @@ Style/FormatString: - 'app/helpers/reminder_emails_helper.rb' - 'app/helpers/search_helper.rb' - 'app/helpers/ssh_keys_helper.rb' - - 'app/helpers/storage_helper.rb' - 'app/helpers/tags_helper.rb' - 'app/helpers/time_helper.rb' - 'app/helpers/timeboxes_helper.rb' @@ -91,7 +86,6 @@ Style/FormatString: - 'app/models/concerns/limitable.rb' - 'app/models/concerns/metric_image_uploading.rb' - 'app/models/concerns/spammable.rb' - - 'app/models/concerns/timebox.rb' - 'app/models/concerns/token_authenticatable_strategies/encrypted.rb' - 'app/models/container_expiration_policy.rb' - 'app/models/custom_emoji.rb' @@ -126,7 +120,6 @@ Style/FormatString: - 'app/models/integrations/webex_teams.rb' - 'app/models/integrations/youtrack.rb' - 'app/models/integrations/zentao.rb' - - 'app/models/merge_request.rb' - 'app/models/merge_request_diff.rb' - 'app/models/milestone.rb' - 'app/models/pages_domain.rb' @@ -134,30 +127,25 @@ Style/FormatString: - 'app/models/resource_event.rb' - 'app/models/sent_notification.rb' - 'app/models/serverless/domain.rb' - - 'app/models/snippet.rb' - 'app/models/user.rb' - 'app/models/wiki.rb' - 'app/models/wiki_page.rb' - 'app/models/work_items/parent_link.rb' - 'app/presenters/ci/pipeline_presenter.rb' + - 'app/presenters/key_presenter.rb' - 'app/presenters/merge_request_presenter.rb' - 'app/presenters/project_presenter.rb' - - 'app/presenters/key_presenter.rb' - 'app/serializers/build_details_entity.rb' - 'app/services/alert_management/alerts/update_service.rb' - 'app/services/boards/lists/base_create_service.rb' - - 'app/services/bulk_imports/file_download_service.rb' - 'app/services/clusters/applications/check_progress_service.rb' - - 'app/services/clusters/applications/check_uninstall_progress_service.rb' - 'app/services/clusters/applications/install_service.rb' - - 'app/services/clusters/applications/patch_service.rb' - 'app/services/clusters/applications/upgrade_service.rb' - 'app/services/clusters/aws/authorize_role_service.rb' - 'app/services/clusters/aws/finalize_creation_service.rb' - 'app/services/clusters/aws/verify_provision_status_service.rb' - 'app/services/clusters/gcp/finalize_creation_service.rb' - 'app/services/clusters/gcp/verify_provision_status_service.rb' - - 'app/services/clusters/kubernetes/configure_istio_ingress_service.rb' - 'app/services/concerns/update_repository_storage_methods.rb' - 'app/services/concerns/validates_classification_label.rb' - 'app/services/gravatar_service.rb' @@ -196,10 +184,6 @@ Style/FormatString: - 'danger/roulette/Dangerfile' - 'ee/app/components/billing/plan_component.rb' - 'ee/app/components/namespaces/free_user_cap/alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/personable.rb' - - 'ee/app/components/namespaces/free_user_cap/personal_alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/personal_preview_alert_component.rb' - - 'ee/app/components/namespaces/free_user_cap/personal_usage_quota_limitations_alert_component.rb' - 'ee/app/components/namespaces/free_user_cap/preview_alert_component.rb' - 'ee/app/components/namespaces/free_user_cap/usage_quota_alert_component.rb' - 'ee/app/components/namespaces/free_user_cap/usage_quota_trial_alert_component.rb' @@ -213,7 +197,6 @@ Style/FormatString: - 'ee/app/controllers/ee/repositories/git_http_client_controller.rb' - 'ee/app/controllers/ee/repositories/lfs_api_controller.rb' - 'ee/app/controllers/groups/saml_group_links_controller.rb' - - 'ee/app/controllers/groups/settings/reporting_controller.rb' - 'ee/app/controllers/groups/sso_controller.rb' - 'ee/app/controllers/projects/requirements_management/requirements_controller.rb' - 'ee/app/controllers/subscriptions/groups_controller.rb' @@ -221,7 +204,6 @@ Style/FormatString: - 'ee/app/helpers/billing_plans_helper.rb' - 'ee/app/helpers/ee/application_helper.rb' - 'ee/app/helpers/ee/geo_helper.rb' - - 'ee/app/helpers/ee/groups/reporting_helper.rb' - 'ee/app/helpers/ee/groups/settings_helper.rb' - 'ee/app/helpers/ee/groups_helper.rb' - 'ee/app/helpers/ee/import_helper.rb' @@ -271,8 +253,6 @@ Style/FormatString: - 'ee/app/services/vulnerability_external_issue_links/create_service.rb' - 'ee/app/validators/user_existence_validator.rb' - 'ee/lib/audit/details.rb' - - 'ee/lib/ee/audit/project_changes_auditor.rb' - - 'ee/lib/ee/audit/project_setting_changes_auditor.rb' - 'ee/lib/ee/gitlab/checks/push_rules/branch_check.rb' - 'ee/lib/ee/gitlab/checks/push_rules/commit_check.rb' - 'ee/lib/ee/gitlab/ci/pipeline/chain/validate/security_orchestration_policy.rb' @@ -314,7 +294,6 @@ Style/FormatString: - 'lib/gitlab/console.rb' - 'lib/gitlab/database/async_indexes/index_creator.rb' - 'lib/gitlab/database/background_migration/batched_migration.rb' - - 'lib/gitlab/database/migration_helpers.rb' - 'lib/gitlab/database/partitioning/single_numeric_list_partition.rb' - 'lib/gitlab/database/partitioning/time_partition.rb' - 'lib/gitlab/database/partitioning_migration_helpers/table_management_helpers.rb' @@ -371,7 +350,6 @@ Style/FormatString: - 'spec/models/integrations/datadog_spec.rb' - 'spec/models/serverless/domain_spec.rb' - 'spec/requests/api/graphql/project/jira_projects_spec.rb' - - 'spec/services/clusters/applications/patch_service_spec.rb' - 'spec/services/clusters/applications/upgrade_service_spec.rb' - 'spec/services/groups/import_export/export_service_spec.rb' - 'spec/services/projects/import_export/export_service_spec.rb' diff --git a/.rubocop_todo/style/guard_clause.yml b/.rubocop_todo/style/guard_clause.yml index f46f8c8f4f6..4c0e73dea56 100644 --- a/.rubocop_todo/style/guard_clause.yml +++ b/.rubocop_todo/style/guard_clause.yml @@ -1,4 +1,5 @@ --- +# Cop supports --autocorrect. Style/GuardClause: Exclude: - 'app/controllers/admin/users_controller.rb' @@ -25,9 +26,7 @@ Style/GuardClause: - 'app/controllers/dashboard/todos_controller.rb' - 'app/controllers/groups/application_controller.rb' - 'app/controllers/groups_controller.rb' - - 'app/controllers/ide_controller.rb' - 'app/controllers/import/gitea_controller.rb' - - 'app/controllers/import/github_controller.rb' - 'app/controllers/import/gitlab_controller.rb' - 'app/controllers/import/manifest_controller.rb' - 'app/controllers/omniauth_callbacks_controller.rb' @@ -35,7 +34,6 @@ Style/GuardClause: - 'app/controllers/profiles/two_factor_auths_controller.rb' - 'app/controllers/projects/application_controller.rb' - 'app/controllers/projects/blob_controller.rb' - - 'app/controllers/projects/branches_controller.rb' - 'app/controllers/projects/commit_controller.rb' - 'app/controllers/projects/compare_controller.rb' - 'app/controllers/projects/design_management/designs/resized_image_controller.rb' @@ -69,7 +67,6 @@ Style/GuardClause: - 'app/graphql/resolvers/blobs_resolver.rb' - 'app/graphql/resolvers/board_list_issues_resolver.rb' - 'app/graphql/resolvers/concerns/board_item_filterable.rb' - - 'app/graphql/resolvers/concerns/issue_resolver_arguments.rb' - 'app/graphql/resolvers/concerns/time_frame_arguments.rb' - 'app/graphql/resolvers/projects/jira_projects_resolver.rb' - 'app/graphql/types/ci/job_type.rb' @@ -123,22 +120,17 @@ Style/GuardClause: - 'app/models/diff_viewer/base.rb' - 'app/models/environment.rb' - 'app/models/error_tracking/project_error_tracking_setting.rb' - - 'app/models/experiment_subject.rb' - 'app/models/external_pull_request.rb' - 'app/models/generic_commit_status.rb' - 'app/models/grafana_integration.rb' - - 'app/models/integrations/bamboo.rb' - 'app/models/integrations/base_issue_tracker.rb' - 'app/models/integrations/base_third_party_wiki.rb' - 'app/models/integrations/confluence.rb' - 'app/models/integrations/datadog.rb' - 'app/models/integrations/emails_on_push.rb' - 'app/models/integrations/field.rb' - - 'app/models/integrations/harbor.rb' - - 'app/models/integrations/jenkins.rb' - 'app/models/integrations/jira.rb' - 'app/models/integrations/pipelines_email.rb' - - 'app/models/integrations/teamcity.rb' - 'app/models/internal_id.rb' - 'app/models/issue.rb' - 'app/models/member.rb' @@ -170,7 +162,6 @@ Style/GuardClause: - 'app/models/snippet_input_action.rb' - 'app/models/user.rb' - 'app/models/users/in_product_marketing_email.rb' - - 'app/models/wiki.rb' - 'app/models/work_item.rb' - 'app/models/work_items/parent_link.rb' - 'app/presenters/ci/pipeline_presenter.rb' @@ -194,7 +185,6 @@ Style/GuardClause: - 'app/services/commits/create_service.rb' - 'app/services/concerns/alert_management/alert_processing.rb' - 'app/services/concerns/ci/job_token_scope/edit_scope_validations.rb' - - 'app/services/concerns/rate_limited_service.rb' - 'app/services/concerns/update_repository_storage_methods.rb' - 'app/services/concerns/validates_classification_label.rb' - 'app/services/deployments/update_environment_service.rb' @@ -221,7 +211,6 @@ Style/GuardClause: - 'app/services/merge_requests/add_spent_time_service.rb' - 'app/services/merge_requests/base_service.rb' - 'app/services/merge_requests/build_service.rb' - - 'app/services/merge_requests/handle_assignees_change_service.rb' - 'app/services/merge_requests/merge_base_service.rb' - 'app/services/merge_requests/merge_service.rb' - 'app/services/merge_requests/mergeability_check_service.rb' @@ -260,8 +249,6 @@ Style/GuardClause: - 'app/uploaders/file_uploader.rb' - 'app/validators/abstract_path_validator.rb' - 'app/validators/any_field_validator.rb' - - 'app/validators/array_members_validator.rb' - - 'app/validators/branch_filter_validator.rb' - 'app/validators/certificate_fingerprint_validator.rb' - 'app/validators/certificate_key_validator.rb' - 'app/validators/certificate_validator.rb' @@ -292,7 +279,6 @@ Style/GuardClause: - 'config/initializers/devise_dynamic_password_length_validation.rb' - 'config/initializers/google_api_client_patch.rb' - 'config/initializers/postgresql_cte.rb' - - 'config/initializers/wikicloth_redos_patch.rb' - 'config/object_store_settings.rb' - 'danger/feature_flag/Dangerfile' - 'db/migrate/20210302212623_rename_vuln_fingerprints_indexes.rb' @@ -322,13 +308,11 @@ Style/GuardClause: - 'ee/app/controllers/projects/security/policies_controller.rb' - 'ee/app/controllers/projects/settings/slacks_controller.rb' - 'ee/app/controllers/smartcard_controller.rb' - - 'ee/app/finders/ee/notes_finder.rb' - 'ee/app/finders/ee/template_finder.rb' - 'ee/app/finders/iterations_finder.rb' - 'ee/app/finders/security/vulnerabilities_finder.rb' - 'ee/app/graphql/mutations/concerns/mutations/shared_epic_arguments.rb' - 'ee/app/graphql/mutations/iterations/create.rb' - - 'ee/app/graphql/mutations/iterations/update.rb' - 'ee/app/graphql/mutations/projects/set_locked.rb' - 'ee/app/graphql/resolvers/analytics/devops_adoption/enabled_namespaces_resolver.rb' - 'ee/app/graphql/resolvers/epics_resolver.rb' @@ -374,12 +358,10 @@ Style/GuardClause: - 'ee/app/models/incident_management/escalation_rule.rb' - 'ee/app/models/incident_management/oncall_rotation.rb' - 'ee/app/models/ip_restriction.rb' - - 'ee/app/models/iterations/cadence.rb' - 'ee/app/models/namespace_limit.rb' - 'ee/app/models/preloaders/environments/protected_environment_preloader.rb' - 'ee/app/models/protected_environment.rb' - 'ee/app/models/protected_environments/deploy_access_level.rb' - - 'ee/app/models/sbom/occurrence.rb' - 'ee/app/models/users_security_dashboard_project.rb' - 'ee/app/models/vulnerabilities/feedback.rb' - 'ee/app/presenters/ee/merge_request_presenter.rb' @@ -426,7 +408,6 @@ Style/GuardClause: - 'ee/app/services/iterations/delete_service.rb' - 'ee/app/services/merge_trains/check_status_service.rb' - 'ee/app/services/merge_trains/refresh_merge_request_service.rb' - - 'ee/app/services/merge_trains/refresh_service.rb' - 'ee/app/services/namespaces/storage/email_notification_service.rb' - 'ee/app/services/projects/update_mirror_service.rb' - 'ee/app/services/security/override_uuids_service.rb' @@ -445,12 +426,10 @@ Style/GuardClause: - 'ee/db/geo/migrate/20180314175612_add_partial_index_to_project_registy_verification_failure_columns.rb' - 'ee/db/geo/migrate/20180315222132_add_partial_index_to_project_registy_checksum_columns.rb' - 'ee/db/geo/migrate/20180412213305_add_index_to_artifact_id_on_job_artifact_registry.rb' - - 'ee/lib/ee/api/ci/job_artifacts.rb' - 'ee/lib/ee/api/features.rb' - 'ee/lib/ee/api/helpers/projects_helpers.rb' - 'ee/lib/ee/api/projects.rb' - 'ee/lib/ee/api/search.rb' - - 'ee/lib/ee/audit/project_ci_cd_setting_changes_auditor.rb' - 'ee/lib/ee/gitlab/auth/ldap/access.rb' - 'ee/lib/ee/gitlab/auth/ldap/sync/group.rb' - 'ee/lib/ee/gitlab/auth/o_auth/user.rb' @@ -586,7 +565,6 @@ Style/GuardClause: - 'lib/gitlab/gitaly_client/blobs_stitcher.rb' - 'lib/gitlab/gitaly_client/conflicts_service.rb' - 'lib/gitlab/gitaly_client/operation_service.rb' - - 'lib/gitlab/gitaly_client/wiki_service.rb' - 'lib/gitlab/github_import.rb' - 'lib/gitlab/github_import/client.rb' - 'lib/gitlab/github_import/importer/pull_request_importer.rb' @@ -596,7 +574,6 @@ Style/GuardClause: - 'lib/gitlab/gitlab_import/client.rb' - 'lib/gitlab/gitlab_import/importer.rb' - 'lib/gitlab/graphql/query_analyzers/ast/recursion_analyzer.rb' - - 'lib/gitlab/i18n/metadata_entry.rb' - 'lib/gitlab/i18n/po_linter.rb' - 'lib/gitlab/import_export/after_export_strategies/web_upload_strategy.rb' - 'lib/gitlab/import_export/base/object_builder.rb' @@ -616,7 +593,6 @@ Style/GuardClause: - 'lib/gitlab/legacy_github_import/client.rb' - 'lib/gitlab/legacy_github_import/issuable_formatter.rb' - 'lib/gitlab/marginalia.rb' - - 'lib/gitlab/memory/watchdog.rb' - 'lib/gitlab/metrics/samplers/ruby_sampler.rb' - 'lib/gitlab/metrics/subscribers/action_cable.rb' - 'lib/gitlab/metrics/subscribers/active_record.rb' @@ -659,7 +635,6 @@ Style/GuardClause: - 'lib/gitlab/utils/override.rb' - 'lib/gitlab/webpack/manifest.rb' - 'lib/mattermost/session.rb' - - 'lib/release_highlights/validator/entry.rb' - 'lib/safe_zip/entry.rb' - 'lib/service_ping/devops_report.rb' - 'lib/system_check/app/systemd_unit_files_or_init_script_up_to_date_check.rb' @@ -670,7 +645,6 @@ Style/GuardClause: - 'qa/qa/ee/resource/license.rb' - 'qa/qa/mobile/page/main/menu.rb' - 'qa/qa/mobile/page/sub_menus/common.rb' - - 'qa/qa/page/base.rb' - 'qa/qa/page/component/invite_members_modal.rb' - 'qa/qa/page/component/select2.rb' - 'qa/qa/page/component/snippet.rb' @@ -679,7 +653,6 @@ Style/GuardClause: - 'qa/qa/page/project/settings/deploy_tokens.rb' - 'qa/qa/resource/api_fabricator.rb' - 'qa/qa/resource/package.rb' - - 'qa/qa/resource/project.rb' - 'qa/qa/resource/registry_repository.rb' - 'qa/qa/resource/reusable.rb' - 'qa/qa/resource/user_gpg.rb' @@ -688,20 +661,15 @@ Style/GuardClause: - 'qa/qa/service/cluster_provider/gcloud.rb' - 'qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/purchase/free_trial_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/group_file_template_spec.rb' - 'qa/qa/specs/helpers/feature_flag.rb' - 'qa/qa/vendor/jenkins/job.rb' - 'rubocop/cop/api/grape_array_missing_coerce.rb' - 'rubocop/cop/gitlab/event_store_subscriber.rb' - - 'rubocop/cop/gitlab/finder_with_find_by.rb' - - 'rubocop/cop/gitlab/keys_first_and_values_first.rb' - 'rubocop/cop/gitlab/policy_rule_boolean.rb' - 'rubocop/cop/ignored_columns.rb' - 'rubocop/cop/migration/add_limit_to_text_columns.rb' - - 'rubocop/cop/migration/update_column_in_batches.rb' - 'rubocop/cop/rspec/web_mock_enable.rb' - - 'rubocop/cop/usage_data/histogram_with_large_table.rb' - 'rubocop/cop/usage_data/large_table.rb' - 'rubocop/routes_under_scope.rb' - 'scripts/lint_templates_bash.rb' diff --git a/.rubocop_todo/style/hash_as_last_array_item.yml b/.rubocop_todo/style/hash_as_last_array_item.yml index 6c4309cd6c4..911ed2f02c4 100644 --- a/.rubocop_todo/style/hash_as_last_array_item.yml +++ b/.rubocop_todo/style/hash_as_last_array_item.yml @@ -1,11 +1,10 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/HashAsLastArrayItem: Exclude: - 'app/controllers/admin/application_settings_controller.rb' - 'app/controllers/admin/groups_controller.rb' - 'app/controllers/admin/users_controller.rb' - - 'app/controllers/boards/issues_controller.rb' - 'app/controllers/concerns/issuable_actions.rb' - 'app/controllers/concerns/issuable_collections.rb' - 'app/controllers/profiles_controller.rb' @@ -17,7 +16,6 @@ Style/HashAsLastArrayItem: - 'app/controllers/projects/settings/operations_controller.rb' - 'app/controllers/projects_controller.rb' - 'app/graphql/resolvers/clusters/agents_resolver.rb' - - 'app/graphql/resolvers/concerns/issue_resolver_arguments.rb' - 'app/graphql/types/boards/board_issuable_input_base_type.rb' - 'app/graphql/types/boards/board_issue_input_base_type.rb' - 'app/helpers/namespaces_helper.rb' @@ -35,7 +33,6 @@ Style/HashAsLastArrayItem: - 'ee/app/controllers/ee/admin/groups_controller.rb' - 'ee/app/controllers/ee/admin/users_controller.rb' - 'ee/app/controllers/groups/epics_controller.rb' - - 'ee/app/graphql/ee/resolvers/base_issues_resolver.rb' - 'ee/app/graphql/types/epics/negated_epic_filter_input_type.rb' - 'ee/app/models/ee/merge_request.rb' - 'ee/app/models/ee/vulnerability.rb' diff --git a/.rubocop_todo/style/hash_each_methods.yml b/.rubocop_todo/style/hash_each_methods.yml index cebfe5c0c7d..4764dc03b57 100644 --- a/.rubocop_todo/style/hash_each_methods.yml +++ b/.rubocop_todo/style/hash_each_methods.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/HashEachMethods: Exclude: - 'app/graphql/resolvers/concerns/caching_array_resolver.rb' @@ -60,16 +60,12 @@ Style/HashEachMethods: - 'lib/gitlab/metrics/subscribers/active_record.rb' - 'lib/gitlab/metrics/subscribers/load_balancing.rb' - 'lib/gitlab/middleware/multipart.rb' - - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb' - - 'lib/gitlab/usage_data.rb' - 'spec/controllers/projects_controller_spec.rb' - 'spec/factories/ci/reports/codequality_degradations.rb' - 'spec/finders/packages/group_packages_finder_spec.rb' - 'spec/helpers/application_helper_spec.rb' - 'spec/lib/gitlab/ci/status/build/failed_spec.rb' - 'spec/lib/gitlab/metrics/samplers/ruby_sampler_spec.rb' - - 'spec/lib/gitlab/usage_data_spec.rb' - - 'spec/models/ci/build_spec.rb' - 'spec/models/ci/job_artifact_spec.rb' - 'spec/models/ci/resource_group_spec.rb' - 'spec/models/clusters/cluster_spec.rb' diff --git a/.rubocop_todo/style/if_inside_else.yml b/.rubocop_todo/style/if_inside_else.yml index 40b71d7de04..c808b9da97d 100644 --- a/.rubocop_todo/style/if_inside_else.yml +++ b/.rubocop_todo/style/if_inside_else.yml @@ -1,4 +1,5 @@ --- +# Cop supports --autocorrect. Style/IfInsideElse: Exclude: - 'app/controllers/application_controller.rb' @@ -12,12 +13,9 @@ Style/IfInsideElse: - 'app/presenters/project_presenter.rb' - 'app/services/system_notes/commit_service.rb' - 'app/services/task_list_toggle_service.rb' - - 'app/services/user_project_access_changed_service.rb' - 'app/uploaders/gitlab_uploader.rb' - 'config/settings.rb' - - 'ee/app/controllers/ee/registrations/welcome_controller.rb' - 'ee/app/controllers/groups/omniauth_callbacks_controller.rb' - - 'ee/app/models/ee/namespace.rb' - 'ee/app/models/iterations/cadence.rb' - 'ee/app/models/protected_environments/authorizable.rb' - 'ee/app/policies/ee/group_policy.rb' @@ -28,7 +26,6 @@ Style/IfInsideElse: - 'ee/app/services/gitlab_subscriptions/fetch_subscription_plans_service.rb' - 'ee/app/services/vulnerability_external_issue_links/create_service.rb' - 'ee/app/workers/elastic/project_transfer_worker.rb' - - 'ee/app/workers/project_import_schedule_worker.rb' - 'ee/lib/gitlab/geo/base_batcher.rb' - 'lib/api/projects.rb' - 'lib/gitlab/auth.rb' diff --git a/.rubocop_todo/style/if_unless_modifier.yml b/.rubocop_todo/style/if_unless_modifier.yml index fc05a8bc163..ea1c2a141f0 100644 --- a/.rubocop_todo/style/if_unless_modifier.yml +++ b/.rubocop_todo/style/if_unless_modifier.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/IfUnlessModifier: Exclude: - 'app/channels/graphql_channel.rb' @@ -31,7 +31,6 @@ Style/IfUnlessModifier: - 'app/controllers/groups_controller.rb' - 'app/controllers/import/fogbugz_controller.rb' - 'app/controllers/import/gitea_controller.rb' - - 'app/controllers/import/github_controller.rb' - 'app/controllers/import/gitlab_controller.rb' - 'app/controllers/import/manifest_controller.rb' - 'app/controllers/omniauth_callbacks_controller.rb' @@ -43,7 +42,6 @@ Style/IfUnlessModifier: - 'app/controllers/projects/branches_controller.rb' - 'app/controllers/projects/commits_controller.rb' - 'app/controllers/projects/cycle_analytics_controller.rb' - - 'app/controllers/projects/deploy_keys_controller.rb' - 'app/controllers/projects/design_management/designs_controller.rb' - 'app/controllers/projects/imports_controller.rb' - 'app/controllers/projects/issues_controller.rb' @@ -93,7 +91,6 @@ Style/IfUnlessModifier: - 'app/graphql/mutations/todos/mark_all_done.rb' - 'app/graphql/resolvers/blobs_resolver.rb' - 'app/graphql/resolvers/concerns/board_item_filterable.rb' - - 'app/graphql/resolvers/concerns/issue_resolver_arguments.rb' - 'app/graphql/resolvers/concerns/time_frame_arguments.rb' - 'app/graphql/resolvers/project_pipeline_resolver.rb' - 'app/graphql/resolvers/timelog_resolver.rb' @@ -189,14 +186,10 @@ Style/IfUnlessModifier: - 'app/models/grafana_integration.rb' - 'app/models/group.rb' - 'app/models/integrations/asana.rb' - - 'app/models/integrations/bamboo.rb' - 'app/models/integrations/base_chat_notification.rb' - 'app/models/integrations/datadog.rb' - - 'app/models/integrations/harbor.rb' - - 'app/models/integrations/jenkins.rb' - 'app/models/integrations/jira.rb' - 'app/models/integrations/pushover.rb' - - 'app/models/integrations/teamcity.rb' - 'app/models/issue.rb' - 'app/models/issue_email_participant.rb' - 'app/models/label_note.rb' @@ -259,7 +252,6 @@ Style/IfUnlessModifier: - 'app/services/boards/lists/base_create_service.rb' - 'app/services/boards/lists/list_service.rb' - 'app/services/branches/validate_new_service.rb' - - 'app/services/ci/create_pipeline_service.rb' - 'app/services/ci/create_web_ide_terminal_service.rb' - 'app/services/ci/job_token_scope/remove_project_service.rb' - 'app/services/ci/parse_dotenv_artifact_service.rb' @@ -271,7 +263,6 @@ Style/IfUnlessModifier: - 'app/services/ci/runners/register_runner_service.rb' - 'app/services/ci/update_build_state_service.rb' - 'app/services/clusters/applications/base_service.rb' - - 'app/services/clusters/applications/prometheus_update_service.rb' - 'app/services/clusters/aws/fetch_credentials_service.rb' - 'app/services/clusters/gcp/provision_service.rb' - 'app/services/clusters/update_service.rb' @@ -292,13 +283,11 @@ Style/IfUnlessModifier: - 'app/services/error_tracking/collect_error_service.rb' - 'app/services/git/process_ref_changes_service.rb' - 'app/services/google_cloud/generate_pipeline_service.rb' - - 'app/services/google_cloud/setup_cloudsql_instance_service.rb' - 'app/services/groups/create_service.rb' - 'app/services/groups/transfer_service.rb' - 'app/services/groups/update_statistics_service.rb' - 'app/services/ide/base_config_service.rb' - 'app/services/import/bitbucket_server_service.rb' - - 'app/services/import/github_service.rb' - 'app/services/import/gitlab_projects/file_acquisition_strategies/remote_file.rb' - 'app/services/issuable/bulk_update_service.rb' - 'app/services/issuable/common_system_notes_service.rb' @@ -368,12 +357,10 @@ Style/IfUnlessModifier: - 'app/services/spam/spam_verdict_service.rb' - 'app/services/system_notes/issuables_service.rb' - 'app/services/tags/destroy_service.rb' - - 'app/services/two_factor/destroy_service.rb' - 'app/services/users/approve_service.rb' - 'app/services/users/build_service.rb' - 'app/services/users/respond_to_terms_service.rb' - 'app/services/wikis/create_attachment_service.rb' - - 'app/services/work_items/create_service.rb' - 'app/services/work_items/parent_links/create_service.rb' - 'app/services/work_items/task_list_reference_removal_service.rb' - 'app/services/work_items/task_list_reference_replacement_service.rb' @@ -382,7 +369,6 @@ Style/IfUnlessModifier: - 'app/validators/abstract_path_validator.rb' - 'app/validators/addressable_url_validator.rb' - 'app/validators/any_field_validator.rb' - - 'app/validators/branch_filter_validator.rb' - 'app/validators/certificate_key_validator.rb' - 'app/validators/certificate_validator.rb' - 'app/validators/cluster_name_validator.rb' @@ -399,9 +385,7 @@ Style/IfUnlessModifier: - 'app/workers/concerns/application_worker.rb' - 'app/workers/concerns/packages/cleanup_artifact_worker.rb' - 'app/workers/concerns/project_start_import.rb' - - 'app/workers/concerns/waitable_worker.rb' - 'app/workers/concerns/worker_attributes.rb' - - 'app/workers/database/batched_background_migration/single_database_worker.rb' - 'app/workers/delete_container_repository_worker.rb' - 'app/workers/file_hook_worker.rb' - 'app/workers/google_cloud/create_cloudsql_instance_worker.rb' @@ -427,10 +411,8 @@ Style/IfUnlessModifier: - 'config/initializers/google_api_client_patch.rb' - 'config/initializers/jira.rb' - 'config/initializers/kaminari_active_record_relation_methods_with_limit.rb' - - 'config/initializers/load_balancing.rb' - 'config/initializers/remove_active_job_execute_callback.rb' - 'config/initializers/seed_fu.rb' - - 'config/initializers/sidekiq.rb' - 'config/initializers/stackprof.rb' - 'config/initializers/validate_database_config.rb' - 'config/initializers_before_autoloader/002_sidekiq.rb' @@ -477,15 +459,12 @@ Style/IfUnlessModifier: - 'ee/app/controllers/projects/push_rules_controller.rb' - 'ee/app/controllers/projects/settings/slacks_controller.rb' - 'ee/app/controllers/trials_controller.rb' - - 'ee/app/finders/iterations_finder.rb' - 'ee/app/finders/merge_trains_finder.rb' - 'ee/app/finders/security/pipeline_vulnerabilities_finder.rb' - 'ee/app/finders/security/vulnerabilities_finder.rb' - - 'ee/app/graphql/ee/resolvers/base_issues_resolver.rb' - 'ee/app/graphql/mutations/audit_events/external_audit_event_destinations/create.rb' - 'ee/app/graphql/mutations/audit_events/external_audit_event_destinations/destroy.rb' - 'ee/app/graphql/mutations/boards/scoped_board_mutation.rb' - - 'ee/app/graphql/mutations/dast_site_profiles/create.rb' - 'ee/app/graphql/mutations/iterations/update.rb' - 'ee/app/graphql/mutations/projects/set_locked.rb' - 'ee/app/graphql/resolvers/analytics/devops_adoption/enabled_namespaces_resolver.rb' @@ -598,8 +577,6 @@ Style/IfUnlessModifier: - 'ee/app/services/geo/metrics_update_service.rb' - 'ee/app/services/geo/move_repository_service.rb' - 'ee/app/services/geo/prune_event_log_service.rb' - - 'ee/app/services/geo/repository_verification_primary_service.rb' - - 'ee/app/services/geo/repository_verification_secondary_service.rb' - 'ee/app/services/gitlab_subscriptions/plan_upgrade_service.rb' - 'ee/app/services/groups/memberships/export_service.rb' - 'ee/app/services/groups/update_repository_storage_service.rb' @@ -659,9 +636,7 @@ Style/IfUnlessModifier: - 'ee/lib/ee/api/helpers/variables_helpers.rb' - 'ee/lib/ee/api/internal/base.rb' - 'ee/lib/ee/api/merge_request_approvals.rb' - - 'ee/lib/ee/api/protected_branches.rb' - 'ee/lib/ee/api/settings.rb' - - 'ee/lib/ee/audit/project_changes_auditor.rb' - 'ee/lib/ee/banzai/filter/references/iteration_reference_filter.rb' - 'ee/lib/ee/container_registry/client.rb' - 'ee/lib/ee/gitlab/auth/ldap/access.rb' @@ -740,7 +715,6 @@ Style/IfUnlessModifier: - 'ee/spec/support/helpers/feature_approval_helper.rb' - 'ee/spec/support/helpers/search_results_helpers.rb' - 'ee/spec/support/http_io/http_io_helpers.rb' - - 'ee/spec/support/shared_examples/requests/api/graphql/geo/registries_shared_examples.rb' - 'ee/spec/views/layouts/header/help_dropdown/_cross_stage_fdm.html.haml_spec.rb' - 'ee/spec/workers/elastic/migration_worker_spec.rb' - 'lib/api/api_guard.rb' @@ -865,7 +839,6 @@ Style/IfUnlessModifier: - 'lib/gitlab/ci/config/extendable/entry.rb' - 'lib/gitlab/ci/config/external/file/base.rb' - 'lib/gitlab/ci/config/external/file/template.rb' - - 'lib/gitlab/ci/config/external/mapper.rb' - 'lib/gitlab/ci/config/normalizer.rb' - 'lib/gitlab/ci/parsers/coverage/sax_document.rb' - 'lib/gitlab/ci/parsers/security/common.rb' @@ -1023,7 +996,6 @@ Style/IfUnlessModifier: - 'lib/gitlab/template_parser/eval_state.rb' - 'lib/gitlab/untrusted_regexp.rb' - 'lib/gitlab/url_blocker.rb' - - 'lib/gitlab/usage_data.rb' - 'lib/gitlab/usage_data_counters/base_counter.rb' - 'lib/gitlab/usage_data_counters/hll_redis_counter.rb' - 'lib/gitlab/utils.rb' @@ -1055,7 +1027,6 @@ Style/IfUnlessModifier: - 'lib/tasks/gitlab/storage.rake' - 'lib/tasks/gitlab/update_templates.rake' - 'qa/qa/ee/resource/settings/elasticsearch.rb' - - 'qa/qa/flow/sign_up.rb' - 'qa/qa/page/component/select2.rb' - 'qa/qa/page/component/snippet.rb' - 'qa/qa/page/element.rb' @@ -1080,7 +1051,6 @@ Style/IfUnlessModifier: - 'qa/qa/specs/features/ee/browser_ui/1_manage/group/group_ldap_sync_spec.rb' - 'qa/qa/specs/helpers/context_selector.rb' - 'qa/qa/specs/parallel_runner.rb' - - 'qa/qa/support/loglinking.rb' - 'qa/qa/tools/delete_projects.rb' - 'qa/qa/tools/delete_user_projects.rb' - 'qa/qa/tools/generate_perf_testdata.rb' @@ -1125,7 +1095,6 @@ Style/IfUnlessModifier: - 'spec/helpers/invite_members_helper_spec.rb' - 'spec/lib/container_registry/gitlab_api_client_spec.rb' - 'spec/lib/gitlab/background_migration/disable_expiration_policies_linked_to_no_container_images_spec.rb' - - 'spec/lib/gitlab/ci/pipeline/seed/environment_spec.rb' - 'spec/lib/gitlab/config/entry/validators/nested_array_helpers_spec.rb' - 'spec/lib/gitlab/conflict/file_spec.rb' - 'spec/lib/gitlab/database/load_balancing_spec.rb' @@ -1148,10 +1117,8 @@ Style/IfUnlessModifier: - 'spec/requests/api/integrations_spec.rb' - 'spec/requests/users_controller_spec.rb' - 'spec/routing/import_routing_spec.rb' - - 'spec/rubocop_spec_helper.rb' - 'spec/serializers/issue_sidebar_basic_entity_spec.rb' - 'spec/services/application_settings/update_service_spec.rb' - - 'spec/services/clusters/applications/create_service_spec.rb' - 'spec/services/git/process_ref_changes_service_spec.rb' - 'spec/services/members/destroy_service_spec.rb' - 'spec/services/notification_recipients/builder/default_spec.rb' @@ -1162,7 +1129,6 @@ Style/IfUnlessModifier: - 'spec/services/projects/create_service_spec.rb' - 'spec/spec_helper.rb' - 'spec/support/capybara.rb' - - 'spec/support/database/multiple_databases.rb' - 'spec/support/external_authorization_service_helpers.rb' - 'spec/support/flaky_tests.rb' - 'spec/support/generate-seed-repo-rb' diff --git a/.rubocop_todo/style/keyword_parameters_order.yml b/.rubocop_todo/style/keyword_parameters_order.yml index ca6cb416b93..09360d82c8a 100644 --- a/.rubocop_todo/style/keyword_parameters_order.yml +++ b/.rubocop_todo/style/keyword_parameters_order.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/KeywordParametersOrder: Exclude: - 'app/controllers/concerns/product_analytics_tracking.rb' diff --git a/.rubocop_todo/style/lambda.yml b/.rubocop_todo/style/lambda.yml index 9da29f7bb59..e1c297ac5f6 100644 --- a/.rubocop_todo/style/lambda.yml +++ b/.rubocop_todo/style/lambda.yml @@ -56,7 +56,6 @@ Style/Lambda: - 'lib/gitlab/sidekiq_config/worker_matcher.rb' - 'lib/gitlab/sidekiq_middleware.rb' - 'lib/gitlab/utils/usage_data.rb' - - 'qa/qa/page/base.rb' - 'qa/qa/runtime/allure_report.rb' - 'qa/qa/specs/features/api/1_manage/import/import_large_github_repo_spec.rb' - 'qa/qa/support/api.rb' diff --git a/.rubocop_todo/style/next.yml b/.rubocop_todo/style/next.yml index 295aa2f6878..6800ba2baf3 100644 --- a/.rubocop_todo/style/next.yml +++ b/.rubocop_todo/style/next.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/Next: Exclude: - 'lib/gitlab/fogbugz_import/importer.rb' diff --git a/.rubocop_todo/style/numeric_literal_prefix.yml b/.rubocop_todo/style/numeric_literal_prefix.yml index 4e8b608e424..0060919d7b6 100644 --- a/.rubocop_todo/style/numeric_literal_prefix.yml +++ b/.rubocop_todo/style/numeric_literal_prefix.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/NumericLiteralPrefix: Exclude: - 'app/models/container_repository.rb' diff --git a/.rubocop_todo/style/percent_literal_delimiters.yml b/.rubocop_todo/style/percent_literal_delimiters.yml index bac2e807053..b1160a7d9f4 100644 --- a/.rubocop_todo/style/percent_literal_delimiters.yml +++ b/.rubocop_todo/style/percent_literal_delimiters.yml @@ -1,9 +1,8 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/PercentLiteralDelimiters: Exclude: - 'Guardfile' - - 'app/controllers/abuse_reports_controller.rb' - 'app/controllers/admin/application_settings_controller.rb' - 'app/controllers/admin/broadcast_messages_controller.rb' - 'app/controllers/application_controller.rb' @@ -18,7 +17,6 @@ Style/PercentLiteralDelimiters: - 'app/controllers/jira_connect/subscriptions_controller.rb' - 'app/controllers/profiles/two_factor_auths_controller.rb' - 'app/controllers/projects/performance_monitoring/dashboards_controller.rb' - - 'app/controllers/projects/product_analytics_controller.rb' - 'app/controllers/projects/service_desk_controller.rb' - 'app/controllers/repositories/lfs_locks_api_controller.rb' - 'app/finders/group_members_finder.rb' @@ -33,7 +31,6 @@ Style/PercentLiteralDelimiters: - 'app/helpers/diff_helper.rb' - 'app/helpers/emails_helper.rb' - 'app/helpers/external_link_helper.rb' - - 'app/helpers/icons_helper.rb' - 'app/helpers/labels_helper.rb' - 'app/helpers/markup_helper.rb' - 'app/helpers/nav_helper.rb' @@ -82,7 +79,6 @@ Style/PercentLiteralDelimiters: - 'app/models/concerns/clusters/agents/authorization_config_scopes.rb' - 'app/models/concerns/diff_positionable_note.rb' - 'app/models/concerns/enums/prometheus_metric.rb' - - 'app/models/concerns/integrations/base_data_fields.rb' - 'app/models/concerns/issuable.rb' - 'app/models/concerns/issue_available_features.rb' - 'app/models/concerns/mentionable/reference_regexes.rb' @@ -159,13 +155,11 @@ Style/PercentLiteralDelimiters: - 'app/services/import_export_clean_up_service.rb' - 'app/services/incident_management/pager_duty/process_webhook_service.rb' - 'app/services/issuable/bulk_update_service.rb' - - 'app/services/issues/export_csv_service.rb' - 'app/services/merge_requests/update_service.rb' - 'app/services/metrics/dashboard/default_embed_service.rb' - 'app/services/packages/debian/generate_distribution_service.rb' - 'app/services/preview_markdown_service.rb' - 'app/services/projects/apple_target_platform_detector_service.rb' - - 'app/services/projects/container_repository/cleanup_tags_service.rb' - 'app/services/projects/download_service.rb' - 'app/services/projects/hashed_storage/migrate_attachments_service.rb' - 'app/services/projects/lfs_pointers/lfs_object_download_list_service.rb' @@ -201,7 +195,6 @@ Style/PercentLiteralDelimiters: - 'config/initializers/invisible_captcha.rb' - 'config/initializers/lograge.rb' - 'config/initializers/rspec_profiling.rb' - - 'config/initializers/sidekiq.rb' - 'config/initializers_before_autoloader/000_inflections.rb' - 'config/object_store_settings.rb' - 'config/spring.rb' @@ -269,7 +262,6 @@ Style/PercentLiteralDelimiters: - 'ee/app/models/geo_node_status.rb' - 'ee/app/models/incident_management/issuable_resource_link.rb' - 'ee/app/models/integrations/github.rb' - - 'ee/app/models/integrations/gitlab_slack_application.rb' - 'ee/app/models/merge_requests/status_check_response.rb' - 'ee/app/models/saml_provider.rb' - 'ee/app/models/security/orchestration_policy_configuration.rb' @@ -285,7 +277,6 @@ Style/PercentLiteralDelimiters: - 'ee/app/services/epics/tree_reorder_service.rb' - 'ee/app/services/iterations/update_service.rb' - 'ee/app/services/jira/jql_builder_service.rb' - - 'ee/app/services/requirements_management/export_csv_service.rb' - 'ee/app/services/security/configuration/save_auto_fix_service.rb' - 'ee/app/services/security/dependency_list_service.rb' - 'ee/app/services/security/ingestion/tasks/update_vulnerability_uuids.rb' @@ -296,7 +287,6 @@ Style/PercentLiteralDelimiters: - 'ee/lib/ee/api/helpers/projects_helpers.rb' - 'ee/lib/ee/api/members.rb' - 'ee/lib/ee/api/search.rb' - - 'ee/lib/ee/audit/group_changes_auditor.rb' - 'ee/lib/ee/gitlab/alert_management/payload/generic.rb' - 'ee/lib/ee/gitlab/auth/ldap/adapter.rb' - 'ee/lib/ee/gitlab/background_migration/fix_incorrect_max_seats_used.rb' @@ -306,7 +296,6 @@ Style/PercentLiteralDelimiters: - 'ee/lib/ee/gitlab/etag_caching/router/rails.rb' - 'ee/lib/ee/gitlab/middleware/read_only/controller.rb' - 'ee/lib/ee/gitlab/path_regex.rb' - - 'ee/lib/ee/gitlab/uploads/migration_helper.rb' - 'ee/lib/ee/gitlab/usage_data.rb' - 'ee/lib/elastic/class_proxy_util.rb' - 'ee/lib/elastic/latest/config.rb' @@ -315,8 +304,6 @@ Style/PercentLiteralDelimiters: - 'ee/lib/elastic/latest/project_instance_proxy.rb' - 'ee/lib/elastic/latest/snippet_class_proxy.rb' - 'ee/lib/gitlab/auth/group_saml/auth_hash.rb' - - 'ee/lib/gitlab/ci/parsers/security/formatters/dast.rb' - - 'ee/lib/gitlab/geo.rb' - 'ee/lib/gitlab/geo/replicator.rb' - 'ee/lib/gitlab/usage/metrics/instrumentations/license_metric.rb' - 'ee/lib/tasks/gitlab/elastic/test.rake' @@ -339,7 +326,6 @@ Style/PercentLiteralDelimiters: - 'ee/spec/features/projects/environments/environments_spec.rb' - 'ee/spec/features/projects/integrations/user_activates_jira_spec.rb' - 'ee/spec/features/projects/settings/protected_environments_spec.rb' - - 'ee/spec/features/protected_branches_spec.rb' - 'ee/spec/features/users/login_spec.rb' - 'ee/spec/finders/template_finder_spec.rb' - 'ee/spec/frontend/fixtures/saml_providers.rb' @@ -347,7 +333,6 @@ Style/PercentLiteralDelimiters: - 'ee/spec/graphql/ee/types/boards/board_issue_input_type_spec.rb' - 'ee/spec/graphql/mutations/boards/update_spec.rb' - 'ee/spec/graphql/resolvers/board_groupings/epics_resolvers_spec.rb' - - 'ee/spec/graphql/resolvers/epics_resolver_spec.rb' - 'ee/spec/graphql/resolvers/pipeline_security_report_findings_resolver_spec.rb' - 'ee/spec/graphql/types/dast/profile_cadence_enum_spec.rb' - 'ee/spec/graphql/types/dast/scan_method_type_enum_spec.rb' @@ -439,7 +424,6 @@ Style/PercentLiteralDelimiters: - 'ee/spec/policies/group_policy_spec.rb' - 'ee/spec/policies/project_policy_spec.rb' - 'ee/spec/presenters/merge_request_approver_presenter_spec.rb' - - 'ee/spec/presenters/merge_request_presenter_spec.rb' - 'ee/spec/requests/admin/user_permission_exports_controller_spec.rb' - 'ee/spec/requests/api/dependencies_spec.rb' - 'ee/spec/requests/api/epics_spec.rb' @@ -483,7 +467,6 @@ Style/PercentLiteralDelimiters: - 'ee/spec/validators/json_schema_validator_spec.rb' - 'ee/spec/views/operations/index.html.haml_spec.rb' - 'ee/spec/views/shared/credentials_inventory/personal_access_tokens/_personal_access_token.html.haml_spec.rb' - - 'ee/spec/views/shared/credentials_inventory/project_access_tokens/_project_access_token.html.haml_spec.rb' - 'ee/spec/workers/ee/issuable_export_csv_worker_spec.rb' - 'ee/spec/workers/project_cache_worker_spec.rb' - 'ee/spec/workers/repository_import_worker_spec.rb' @@ -591,11 +574,9 @@ Style/PercentLiteralDelimiters: - 'lib/gitlab/sanitizers/exif.rb' - 'lib/gitlab/search/abuse_detection.rb' - 'lib/gitlab/search_context.rb' - - 'lib/gitlab/sidekiq_daemon/memory_killer.rb' - 'lib/gitlab/slash_commands/presenters/base.rb' - 'lib/gitlab/ssh_public_key.rb' - 'lib/gitlab/task_helpers.rb' - - 'lib/gitlab/uploads/migration_helper.rb' - 'lib/gitlab/url_blocker.rb' - 'lib/gitlab/usage/metrics/instrumentations/count_imported_projects_total_metric.rb' - 'lib/gitlab/usage/metrics/instrumentations/database_metric.rb' @@ -626,7 +607,6 @@ Style/PercentLiteralDelimiters: - 'qa/qa/ee/page/project/issue/show.rb' - 'qa/qa/ee/page/project/job/show.rb' - 'qa/qa/ee/page/project/packages/index.rb' - - 'qa/qa/ee/page/project/pipeline/show.rb' - 'qa/qa/ee/page/project/show.rb' - 'qa/qa/ee/page/project/snippet/index.rb' - 'qa/qa/ee/page/project/wiki/show.rb' @@ -635,7 +615,6 @@ Style/PercentLiteralDelimiters: - 'qa/qa/resource/visibility.rb' - 'qa/qa/service/cluster_provider/gcloud.rb' - 'qa/qa/service/praefect_manager.rb' - - 'qa/qa/specs/features/api/3_create/gitaly/praefect_repo_sync_spec.rb' - 'qa/qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb' - 'qa/qa/specs/features/browser_ui/2_plan/email/trigger_email_notification_spec.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb' @@ -704,7 +683,6 @@ Style/PercentLiteralDelimiters: - 'spec/features/projects/pipelines/legacy_pipelines_spec.rb' - 'spec/features/projects/pipelines/pipeline_spec.rb' - 'spec/features/projects/pipelines/pipelines_spec.rb' - - 'spec/features/protected_branches_spec.rb' - 'spec/features/tags/developer_views_tags_spec.rb' - 'spec/features/users/login_spec.rb' - 'spec/finders/alert_management/alerts_finder_spec.rb' @@ -742,7 +720,6 @@ Style/PercentLiteralDelimiters: - 'spec/helpers/page_layout_helper_spec.rb' - 'spec/helpers/profiles_helper_spec.rb' - 'spec/helpers/releases_helper_spec.rb' - - 'spec/helpers/storage_helper_spec.rb' - 'spec/helpers/tracking_helper_spec.rb' - 'spec/initializers/direct_upload_support_spec.rb' - 'spec/initializers/enumerator_next_patch_spec.rb' @@ -814,7 +791,6 @@ Style/PercentLiteralDelimiters: - 'spec/lib/gitlab/ci/pipeline/chain/template_usage_spec.rb' - 'spec/lib/gitlab/ci/pipeline/expression/lexeme/equals_spec.rb' - 'spec/lib/gitlab/ci/pipeline/seed/build_spec.rb' - - 'spec/lib/gitlab/ci/pipeline/seed/deployment_spec.rb' - 'spec/lib/gitlab/ci/reports/accessibility_reports_comparer_spec.rb' - 'spec/lib/gitlab/ci/reports/accessibility_reports_spec.rb' - 'spec/lib/gitlab/ci/reports/security/reports_spec.rb' @@ -1083,7 +1059,6 @@ Style/PercentLiteralDelimiters: - 'spec/requests/api/task_completion_status_spec.rb' - 'spec/requests/api/unleash_spec.rb' - 'spec/requests/api/users_spec.rb' - - 'spec/requests/api/version_spec.rb' - 'spec/requests/api/wikis_spec.rb' - 'spec/requests/ide_controller_spec.rb' - 'spec/requests/jwt_controller_spec.rb' @@ -1111,7 +1086,6 @@ Style/PercentLiteralDelimiters: - 'spec/services/ci/stuck_builds/drop_pending_service_spec.rb' - 'spec/services/ci/stuck_builds/drop_running_service_spec.rb' - 'spec/services/ci/stuck_builds/drop_scheduled_service_spec.rb' - - 'spec/services/clusters/applications/create_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb' - 'spec/services/deployments/update_environment_service_spec.rb' - 'spec/services/design_management/copy_design_collection/copy_service_spec.rb' @@ -1137,7 +1111,6 @@ Style/PercentLiteralDelimiters: - 'spec/services/pages_domains/obtain_lets_encrypt_certificate_service_spec.rb' - 'spec/services/product_analytics/build_graph_service_spec.rb' - 'spec/services/projects/branches_by_mode_service_spec.rb' - - 'spec/services/projects/container_repository/cleanup_tags_service_spec.rb' - 'spec/services/projects/lfs_pointers/lfs_link_service_spec.rb' - 'spec/services/projects/operations/update_service_spec.rb' - 'spec/services/projects/record_target_platforms_service_spec.rb' @@ -1191,7 +1164,6 @@ Style/PercentLiteralDelimiters: - 'spec/support_specs/matchers/exceed_query_limit_helpers_spec.rb' - 'spec/tasks/gitlab/db_rake_spec.rb' - 'spec/tasks/gitlab/task_helpers_spec.rb' - - 'spec/tasks/gitlab/uploads/migrate_rake_spec.rb' - 'spec/tooling/danger/customer_success_spec.rb' - 'spec/tooling/danger/datateam_spec.rb' - 'spec/tooling/danger/sidekiq_queues_spec.rb' @@ -1226,7 +1198,6 @@ Style/PercentLiteralDelimiters: - 'spec/workers/post_receive_spec.rb' - 'spec/workers/project_cache_worker_spec.rb' - 'spec/workers/projects/record_target_platforms_worker_spec.rb' - - 'spec/workers/repository_import_worker_spec.rb' - 'spec/workers/stuck_merge_jobs_worker_spec.rb' - 'spec/workers/update_project_statistics_worker_spec.rb' - 'tooling/danger/datateam.rb' diff --git a/.rubocop_todo/style/redundant_begin.yml b/.rubocop_todo/style/redundant_begin.yml index d2851de201b..59082cf629e 100644 --- a/.rubocop_todo/style/redundant_begin.yml +++ b/.rubocop_todo/style/redundant_begin.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantBegin: Exclude: - 'app/controllers/concerns/membership_actions.rb' @@ -27,7 +27,6 @@ Style/RedundantBegin: - 'ee/app/validators/ee/json_schema_validator.rb' - 'ee/lib/ee/api/helpers/award_emoji.rb' - 'ee/lib/gem_extensions/elasticsearch/model/adapter/multiple/records.rb' - - 'ee/lib/gitlab/ci/parsers/security/dast.rb' - 'ee/lib/omni_auth/strategies/group_saml.rb' - 'ee/lib/system_check/geo/authorized_keys_check.rb' - 'lib/api/helpers/award_emoji.rb' @@ -39,7 +38,6 @@ Style/RedundantBegin: - 'lib/gitlab.rb' - 'lib/gitlab/changes_list.rb' - 'lib/gitlab/color.rb' - - 'lib/gitlab/database/migration_helpers.rb' - 'lib/gitlab/database/schema_cache_with_renamed_table.rb' - 'lib/gitlab/favicon.rb' - 'lib/gitlab/import_export/base/relation_factory.rb' diff --git a/.rubocop_todo/style/redundant_condition.yml b/.rubocop_todo/style/redundant_condition.yml index 86be40f7ffa..c94a65c202c 100644 --- a/.rubocop_todo/style/redundant_condition.yml +++ b/.rubocop_todo/style/redundant_condition.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantCondition: Exclude: - 'ee/app/models/license.rb' diff --git a/.rubocop_todo/style/redundant_interpolation.yml b/.rubocop_todo/style/redundant_interpolation.yml index ca7e01ffa61..cd1397ccabd 100644 --- a/.rubocop_todo/style/redundant_interpolation.yml +++ b/.rubocop_todo/style/redundant_interpolation.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantInterpolation: Exclude: - 'app/components/diffs/stats_component.rb' @@ -16,8 +16,6 @@ Style/RedundantInterpolation: - 'app/helpers/tooling/visual_review_helper.rb' - 'app/models/concerns/issuable.rb' - 'app/models/integrations/base_chat_notification.rb' - - 'app/models/integrations/hangouts_chat.rb' - - 'app/models/integrations/microsoft_teams.rb' - 'app/models/integrations/pushover.rb' - 'app/models/merge_request.rb' - 'app/services/jira_import/start_import_service.rb' @@ -31,9 +29,6 @@ Style/RedundantInterpolation: - 'ee/app/helpers/ee/geo_helper.rb' - 'ee/app/services/geo/event_store.rb' - 'ee/app/services/geo/repository_updated_service.rb' - - 'ee/app/services/security/security_orchestration_policies/create_pipeline_service.rb' - - 'ee/app/services/users/abuse/excessive_projects_download_ban_service.rb' - - 'ee/app/services/users/abuse/git_abuse/namespace_throttle_service.rb' - 'ee/db/fixtures/development/31_devops_adoption.rb' - 'ee/lib/gitlab/insights/serializers/chartjs/base_serializer.rb' - 'ee/spec/features/epics/epic_issues_spec.rb' @@ -72,7 +67,6 @@ Style/RedundantInterpolation: - 'lib/gitlab/repository_cache_adapter.rb' - 'lib/gitlab/repository_hash_cache.rb' - 'lib/gitlab/repository_set_cache.rb' - - 'lib/gitlab/usage/metrics/names_suggestions/relation_parsers/constraints.rb' - 'lib/gitlab/usage/metrics/names_suggestions/relation_parsers/joins.rb' - 'lib/gitlab/usage_data_counters/hll_redis_counter.rb' - 'lib/gitlab/usage_data_counters/search_counter.rb' @@ -88,7 +82,6 @@ Style/RedundantInterpolation: - 'qa/qa/service/praefect_manager.rb' - 'qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/container_registry/container_registry_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/scan_result_policy_vulnerabilities_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/project_templates_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/parent_child_pipelines_dependent_relationship_spec.rb' - 'qa/qa/tools/generate_perf_testdata.rb' diff --git a/.rubocop_todo/style/redundant_parentheses.yml b/.rubocop_todo/style/redundant_parentheses.yml index 1ca658776b8..deef05f832f 100644 --- a/.rubocop_todo/style/redundant_parentheses.yml +++ b/.rubocop_todo/style/redundant_parentheses.yml @@ -1,6 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantParentheses: Exclude: - 'lib/gitlab/database/tables_truncate.rb' - - 'qa/qa/specs/features/ee/browser_ui/11_fulfillment/utilization/billing_seats_usage_data_spec.rb' diff --git a/.rubocop_todo/style/redundant_regexp_escape.yml b/.rubocop_todo/style/redundant_regexp_escape.yml index 5c97275ee4b..9da348f849d 100644 --- a/.rubocop_todo/style/redundant_regexp_escape.yml +++ b/.rubocop_todo/style/redundant_regexp_escape.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantRegexpEscape: Exclude: - 'app/controllers/help_controller.rb' @@ -11,7 +11,6 @@ Style/RedundantRegexpEscape: - 'app/models/deploy_token.rb' - 'app/models/design_management/design.rb' - 'app/models/integrations/chat_message/base_message.rb' - - 'app/models/integrations/datadog.rb' - 'app/models/integrations/teamcity.rb' - 'app/models/issue.rb' - 'app/models/label.rb' @@ -23,7 +22,6 @@ Style/RedundantRegexpEscape: - 'app/models/snippet.rb' - 'app/services/metrics/dashboard/grafana_metric_embed_service.rb' - 'app/uploaders/file_uploader.rb' - - 'config/initializers/wikicloth_redos_patch.rb' - 'config/routes/project.rb' - 'config/routes/uploads.rb' - 'ee/app/models/ee/epic.rb' @@ -60,7 +58,6 @@ Style/RedundantRegexpEscape: - 'lib/gitlab/git/repository.rb' - 'lib/gitlab/gitaly_client.rb' - 'lib/gitlab/harbor/query.rb' - - 'lib/gitlab/incoming_email.rb' - 'lib/gitlab/jira/dvcs.rb' - 'lib/gitlab/path_regex.rb' - 'lib/gitlab/private_commit_email.rb' @@ -68,7 +65,6 @@ Style/RedundantRegexpEscape: - 'lib/gitlab/quick_actions/extractor.rb' - 'lib/gitlab/regex.rb' - 'lib/gitlab/search/abuse_detection.rb' - - 'lib/gitlab/service_desk_email.rb' - 'lib/gitlab/task_helpers.rb' - 'lib/gitlab/url_sanitizer.rb' - 'lib/gitlab/utils.rb' @@ -78,11 +74,9 @@ Style/RedundantRegexpEscape: - 'lib/tasks/gettext.rake' - 'lib/tasks/gitlab/info.rake' - 'qa/qa/specs/features/ee/browser_ui/13_secure/license_compliance_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/13_secure/security_reports_spec.rb' - 'qa/spec/runtime/key/ecdsa_spec.rb' - 'qa/spec/runtime/key/ed25519_spec.rb' - 'qa/spec/runtime/key/rsa_spec.rb' - - 'rubocop/cop/gitlab/finder_with_find_by.rb' - 'scripts/qa/testcases-check' - 'scripts/setup/find-jh-branch.rb' - 'spec/controllers/projects_controller_spec.rb' diff --git a/.rubocop_todo/style/redundant_self.yml b/.rubocop_todo/style/redundant_self.yml index 8c688dc89c1..ec9aaac85dc 100644 --- a/.rubocop_todo/style/redundant_self.yml +++ b/.rubocop_todo/style/redundant_self.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/RedundantSelf: Exclude: - 'app/channels/awareness_channel.rb' @@ -71,7 +71,6 @@ Style/RedundantSelf: - 'app/models/concerns/mentionable.rb' - 'app/models/concerns/merge_request_reviewer_state.rb' - 'app/models/concerns/noteable.rb' - - 'app/models/concerns/packages/debian/distribution.rb' - 'app/models/concerns/participable.rb' - 'app/models/concerns/pg_full_text_searchable.rb' - 'app/models/concerns/protected_ref.rb' @@ -112,7 +111,6 @@ Style/RedundantSelf: - 'app/models/integrations/emails_on_push.rb' - 'app/models/integrations/jira.rb' - 'app/models/integrations/pipelines_email.rb' - - 'app/models/integrations/slack.rb' - 'app/models/integrations/zentao.rb' - 'app/models/internal_id.rb' - 'app/models/issue.rb' @@ -190,7 +188,6 @@ Style/RedundantSelf: - 'config/initializers/active_record_keyset_pagination.rb' - 'config/initializers/forbid_sidekiq_in_transactions.rb' - 'config/initializers/mail_encoding_patch.rb' - - 'config/initializers/wikicloth_redos_patch.rb' - 'db/post_migrate/20210329102724_add_new_trail_plans.rb' - 'db/post_migrate/20211029102822_add_open_source_plan.rb' - 'ee/app/graphql/resolvers/geo/registries_resolver.rb' @@ -223,7 +220,6 @@ Style/RedundantSelf: - 'ee/app/models/ee/issue.rb' - 'ee/app/models/ee/iteration.rb' - 'ee/app/models/ee/member.rb' - - 'ee/app/models/ee/merge_request.rb' - 'ee/app/models/ee/namespace.rb' - 'ee/app/models/ee/packages/package_file.rb' - 'ee/app/models/ee/project.rb' @@ -420,7 +416,6 @@ Style/RedundantSelf: - 'qa/qa/resource/user_gpg.rb' - 'qa/qa/runtime/release.rb' - 'qa/qa/scenario/bootable.rb' - - 'qa/qa/scenario/test/instance.rb' - 'sidekiq_cluster/sidekiq_cluster.rb' - 'spec/graphql/resolvers/group_labels_resolver_spec.rb' - 'spec/helpers/emails_helper_spec.rb' diff --git a/.rubocop_todo/style/single_argument_dig.yml b/.rubocop_todo/style/single_argument_dig.yml index a85039a45f5..8d35373a2c0 100644 --- a/.rubocop_todo/style/single_argument_dig.yml +++ b/.rubocop_todo/style/single_argument_dig.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/SingleArgumentDig: Exclude: - 'app/graphql/resolvers/namespace_projects_resolver.rb' @@ -38,7 +38,6 @@ Style/SingleArgumentDig: - 'lib/gitlab/auth/o_auth/auth_hash.rb' - 'lib/gitlab/ci/badge/coverage/template.rb' - 'lib/gitlab/ci/badge/template.rb' - - 'lib/gitlab/ci/lint.rb' - 'lib/gitlab/ci/parsers/accessibility/pa11y.rb' - 'lib/gitlab/ci/parsers/security/common.rb' - 'lib/gitlab/ci/reports/codequality_reports.rb' diff --git a/.rubocop_todo/style/sole_nested_conditional.yml b/.rubocop_todo/style/sole_nested_conditional.yml index 3c663b5f89a..20b70d36ce2 100644 --- a/.rubocop_todo/style/sole_nested_conditional.yml +++ b/.rubocop_todo/style/sole_nested_conditional.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/SoleNestedConditional: Exclude: - 'app/controllers/admin/application_settings_controller.rb' @@ -24,7 +24,6 @@ Style/SoleNestedConditional: - 'app/services/projects/create_service.rb' - 'app/services/projects/hashed_storage/migration_service.rb' - 'app/services/projects/hashed_storage/rollback_service.rb' - - 'app/workers/merge_requests/delete_source_branch_worker.rb' - 'ee/app/finders/ee/snippets_finder.rb' - 'ee/app/services/ee/issue_links/create_service.rb' - 'ee/app/services/ee/lfs/unlock_file_service.rb' @@ -39,7 +38,6 @@ Style/SoleNestedConditional: - 'ee/lib/elastic/latest/application_class_proxy.rb' - 'ee/lib/elastic/latest/issue_class_proxy.rb' - 'ee/lib/gitlab/code_owners/groups_loader.rb' - - 'lib/api/ci/helpers/runner.rb' - 'lib/api/deploy_keys.rb' - 'lib/api/helpers/label_helpers.rb' - 'lib/api/maven_packages.rb' diff --git a/.rubocop_todo/style/string_concatenation.yml b/.rubocop_todo/style/string_concatenation.yml index 65389d798d3..472ac17fd4a 100644 --- a/.rubocop_todo/style/string_concatenation.yml +++ b/.rubocop_todo/style/string_concatenation.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/StringConcatenation: Exclude: - 'app/components/pajamas/button_component.rb' @@ -66,7 +66,6 @@ Style/StringConcatenation: - 'ee/app/services/merge_requests/update_blocks_service.rb' - 'ee/app/workers/scan_security_report_secrets_worker.rb' - 'ee/lib/api/project_mirror.rb' - - 'ee/lib/ee/audit/project_changes_auditor.rb' - 'ee/lib/ee/gitlab/auth/ldap/person.rb' - 'ee/lib/ee/gitlab/background_migration/backfill_project_statistics_container_repository_size.rb' - 'ee/lib/ee/gitlab/background_migration/populate_latest_pipeline_ids.rb' @@ -77,7 +76,6 @@ Style/StringConcatenation: - 'ee/lib/omni_auth/strategies/kerberos.rb' - 'ee/lib/tasks/gitlab/elastic.rake' - 'ee/lib/tasks/gitlab/license.rake' - - 'ee/spec/controllers/trial_registrations_controller_spec.rb' - 'ee/spec/features/boards/boards_spec.rb' - 'ee/spec/features/projects/pipelines/pipeline_spec.rb' - 'ee/spec/helpers/search_helper_spec.rb' @@ -124,7 +122,6 @@ Style/StringConcatenation: - 'lib/gitlab/git.rb' - 'lib/gitlab/git/branch.rb' - 'lib/gitlab/git/tag.rb' - - 'lib/gitlab/git/wiki.rb' - 'lib/gitlab/github_import/importer/labels_importer.rb' - 'lib/gitlab/graphql/negatable_arguments.rb' - 'lib/gitlab/graphql/queries.rb' @@ -184,7 +181,6 @@ Style/StringConcatenation: - 'spec/features/projects/commits/user_browses_commits_spec.rb' - 'spec/features/projects/files/files_sort_submodules_with_folders_spec.rb' - 'spec/features/projects/import_export/import_file_spec.rb' - - 'spec/features/search/user_searches_for_code_spec.rb' - 'spec/finders/packages/go/module_finder_spec.rb' - 'spec/graphql/mutations/issues/create_spec.rb' - 'spec/helpers/application_helper_spec.rb' @@ -227,7 +223,6 @@ Style/StringConcatenation: - 'spec/lib/gitlab/gitaly_client/ref_service_spec.rb' - 'spec/lib/gitlab/gitaly_client/remote_service_spec.rb' - 'spec/lib/gitlab/gitaly_client/repository_service_spec.rb' - - 'spec/lib/gitlab/gitaly_client/wiki_service_spec.rb' - 'spec/lib/gitlab/import_export/snippet_repo_restorer_spec.rb' - 'spec/lib/gitlab/lfs/client_spec.rb' - 'spec/lib/gitlab/other_markup_spec.rb' @@ -262,9 +257,9 @@ Style/StringConcatenation: - 'spec/models/custom_emoji_spec.rb' - 'spec/models/grafana_integration_spec.rb' - 'spec/models/integrations/campfire_spec.rb' - - 'spec/models/integrations/datadog_spec.rb' - 'spec/models/integrations/chat_message/pipeline_message_spec.rb' - 'spec/models/integrations/chat_message/push_message_spec.rb' + - 'spec/models/integrations/datadog_spec.rb' - 'spec/models/integrations/jenkins_spec.rb' - 'spec/models/merge_request_diff_spec.rb' - 'spec/models/merge_request_spec.rb' @@ -292,7 +287,6 @@ Style/StringConcatenation: - 'spec/routing/git_http_routing_spec.rb' - 'spec/services/ci/find_exposed_artifacts_service_spec.rb' - 'spec/services/clusters/gcp/finalize_creation_service_spec.rb' - - 'spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb' - 'spec/services/clusters/kubernetes/create_or_update_service_account_service_spec.rb' - 'spec/services/error_tracking/list_projects_service_spec.rb' - 'spec/services/groups/update_service_spec.rb' @@ -311,7 +305,6 @@ Style/StringConcatenation: - 'spec/services/snippets/bulk_destroy_service_spec.rb' - 'spec/services/snippets/update_service_spec.rb' - 'spec/services/todo_service_spec.rb' - - 'spec/services/users/destroy_service_spec.rb' - 'spec/services/verify_pages_domain_service_spec.rb' - 'spec/support/capybara.rb' - 'spec/support/helpers/ci_artifact_metadata_generator.rb' diff --git a/.rubocop_todo/style/string_literals_in_interpolation.yml b/.rubocop_todo/style/string_literals_in_interpolation.yml index 29e94e77345..f601674a4bf 100644 --- a/.rubocop_todo/style/string_literals_in_interpolation.yml +++ b/.rubocop_todo/style/string_literals_in_interpolation.yml @@ -1,10 +1,9 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/StringLiteralsInInterpolation: Exclude: - 'app/graphql/mutations/base_mutation.rb' - 'app/helpers/colors_helper.rb' - - 'app/helpers/todos_helper.rb' - 'app/models/application_setting_implementation.rb' - 'app/models/ci/namespace_mirror.rb' - 'app/models/integrations/campfire.rb' @@ -21,7 +20,6 @@ Style/StringLiteralsInInterpolation: - 'ee/app/models/license.rb' - 'ee/app/services/epics/tree_reorder_service.rb' - 'ee/lib/ee/api/helpers/issues_helpers.rb' - - 'ee/lib/gitlab/elastic/helper.rb' - 'ee/lib/tasks/gitlab/elastic.rake' - 'ee/spec/features/admin/admin_settings_spec.rb' - 'ee/spec/features/subscriptions/expiring_subscription_message_spec.rb' @@ -29,7 +27,6 @@ Style/StringLiteralsInInterpolation: - 'lib/api/helpers/snippets_helpers.rb' - 'lib/api/validations/validators/check_assignees_count.rb' - 'lib/banzai/filter/references/abstract_reference_filter.rb' - - 'lib/banzai/filter/syntax_highlight_filter.rb' - 'lib/generators/gitlab/usage_metric_definition_generator.rb' - 'lib/gitlab/background_migration/fix_projects_without_prometheus_service.rb' - 'lib/gitlab/ci/config/entry/job.rb' diff --git a/.rubocop_todo/style/symbol_proc.yml b/.rubocop_todo/style/symbol_proc.yml index d373788dbc6..074b400c4bb 100644 --- a/.rubocop_todo/style/symbol_proc.yml +++ b/.rubocop_todo/style/symbol_proc.yml @@ -1,5 +1,5 @@ --- -# Cop supports --auto-correct. +# Cop supports --autocorrect. Style/SymbolProc: Exclude: - 'app/controllers/admin/users_controller.rb' @@ -13,7 +13,6 @@ Style/SymbolProc: - 'app/graphql/mutations/commits/create.rb' - 'app/graphql/mutations/concerns/mutations/work_items/widgetable.rb' - 'app/graphql/mutations/jira_import/start.rb' - - 'app/graphql/mutations/work_items/update_widgets.rb' - 'app/graphql/types/work_items/widgets/description_type.rb' - 'app/helpers/graph_helper.rb' - 'app/models/ci/build_metadata.rb' @@ -54,7 +53,6 @@ Style/SymbolProc: - 'app/serializers/linked_project_issue_entity.rb' - 'app/serializers/member_entity.rb' - 'app/serializers/member_user_entity.rb' - - 'app/serializers/merge_request_poll_widget_entity.rb' - 'app/serializers/merge_request_widget_entity.rb' - 'app/serializers/project_entity.rb' - 'app/serializers/project_mirror_entity.rb' @@ -172,7 +170,6 @@ Style/SymbolProc: - 'lib/gitlab/diff/rendered/notebook/diff_file_helper.rb' - 'lib/gitlab/git/diff_stats_collection.rb' - 'lib/gitlab/gitaly_client/commit_service.rb' - - 'lib/gitlab/gitaly_client/wiki_service.rb' - 'lib/gitlab/import_export/attributes_finder.rb' - 'lib/gitlab/import_export/base/relation_object_saver.rb' - 'lib/gitlab/import_export/fast_hash_serializer.rb' @@ -199,12 +196,10 @@ Style/SymbolProc: - 'qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/merge_request/rebase_merge_request_spec.rb' - 'qa/qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb' - - 'qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb' - 'qa/qa/specs/features/browser_ui/5_package/container_registry/online_garbage_collection_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/13_secure/enable_scanning_from_configuration_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/merge_request/approval_rules_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/3_create/repository/file_locking_spec.rb' - - 'qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_status_on_operation_dashboard_spec.rb' - 'qa/qa/specs/features/ee/browser_ui/4_verify/pipeline_subscription_with_group_owned_project_spec.rb' - 'rubocop/cop/gitlab/mark_used_feature_flags.rb' - 'rubocop/cop/gitlab/namespaced_class.rb' diff --git a/app/graphql/mutations/incident_management/timeline_event/update.rb b/app/graphql/mutations/incident_management/timeline_event/update.rb index 1f53bdc19cb..b35feed3082 100644 --- a/app/graphql/mutations/incident_management/timeline_event/update.rb +++ b/app/graphql/mutations/incident_management/timeline_event/update.rb @@ -18,6 +18,10 @@ module Mutations required: false, description: 'Timestamp when the event occurred.' + argument :timeline_event_tag_names, [GraphQL::Types::String], + required: false, + description: copy_field_description(Types::IncidentManagement::TimelineEventType, :timeline_event_tags) + def resolve(id:, **args) timeline_event = authorized_find!(id: id) diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb index fd181109a94..bbbbda104d4 100644 --- a/app/helpers/issuables_helper.rb +++ b/app/helpers/issuables_helper.rb @@ -146,7 +146,7 @@ module IssuablesHelper if issuable.respond_to?(:work_item_type) && WorkItems::Type::WI_TYPES_WITH_CREATED_HEADER.include?(issuable.work_item_type.base_type) output << content_tag(:span, sprite_icon("#{issuable.work_item_type.icon_name}", css_class: 'gl-icon gl-vertical-align-middle gl-text-gray-500'), class: 'gl-mr-2', aria: { hidden: 'true' }) - output << content_tag(:span, s_('IssuableStatus|%{wi_type} created %{created_at} by ').html_safe % { wi_type: issuable.issue_type.capitalize, created_at: time_ago_with_tooltip(issuable.created_at) }, class: 'gl-mr-2') + output << content_tag(:span, s_('IssuableStatus|%{wi_type} created %{created_at} by ').html_safe % { wi_type: IntegrationsHelper.integration_issue_type(issuable.issue_type), created_at: time_ago_with_tooltip(issuable.created_at) }, class: 'gl-mr-2') else output << content_tag(:span, s_('IssuableStatus|Created %{created_at} by').html_safe % { created_at: time_ago_with_tooltip(issuable.created_at) }, class: 'gl-mr-2') end diff --git a/app/models/concerns/has_user_type.rb b/app/models/concerns/has_user_type.rb index ccb5bebcc39..b5352db5a56 100644 --- a/app/models/concerns/has_user_type.rb +++ b/app/models/concerns/has_user_type.rb @@ -14,10 +14,11 @@ module HasUserType migration_bot: 7, security_bot: 8, automation_bot: 9, - security_policy_bot: 10 + security_policy_bot: 10, + admin_bot: 11 }.with_indifferent_access.freeze - BOT_USER_TYPES = %w[alert_bot project_bot support_bot visual_review_bot migration_bot security_bot automation_bot security_policy_bot].freeze + BOT_USER_TYPES = %w[alert_bot project_bot support_bot visual_review_bot migration_bot security_bot automation_bot security_policy_bot admin_bot].freeze NON_INTERNAL_USER_TYPES = %w[human project_bot service_user].freeze INTERNAL_USER_TYPES = (USER_TYPES.keys - NON_INTERNAL_USER_TYPES).freeze diff --git a/app/models/user.rb b/app/models/user.rb index dae7ea75583..0916a89e4d2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -906,6 +906,17 @@ class User < ApplicationRecord end end + def admin_bot + email_pattern = "admin-bot%s@#{Settings.gitlab.host}" + + unique_internal(where(user_type: :admin_bot), 'GitLab-Admin-Bot', email_pattern) do |u| + u.bio = 'Admin bot used for tasks that require admin privileges' + u.name = 'GitLab Admin Bot' + u.avatar = bot_avatar(image: 'admin-bot.png') + u.admin = true + end + end + # Return true if there is only single non-internal user in the deployment, # ghost user is ignored. def single_user? diff --git a/app/services/ci/track_failed_build_service.rb b/app/services/ci/track_failed_build_service.rb index caf7034234c..abaec197b66 100644 --- a/app/services/ci/track_failed_build_service.rb +++ b/app/services/ci/track_failed_build_service.rb @@ -42,7 +42,8 @@ module Ci build_name: @build.name, build_artifact_types: @build.job_artifact_types, exit_code: @exit_code, - failure_reason: @failure_reason + failure_reason: @failure_reason, + project: @build.project_id } end end diff --git a/app/services/incident_management/timeline_events/update_service.rb b/app/services/incident_management/timeline_events/update_service.rb index 8d4e29c6857..0e424f86e1a 100644 --- a/app/services/incident_management/timeline_events/update_service.rb +++ b/app/services/incident_management/timeline_events/update_service.rb @@ -17,14 +17,30 @@ module IncidentManagement @note = params[:note] @occurred_at = params[:occurred_at] @validation_context = VALIDATION_CONTEXT + @timeline_event_tags = params[:timeline_event_tag_names] end def execute return error_no_permissions unless allowed? - timeline_event.assign_attributes(update_params) + unless timeline_event_tags.nil? + new_tags = timeline_event + .project + .incident_management_timeline_event_tags + .by_names(timeline_event_tags) - if timeline_event.save(context: validation_context) + non_existing_tags = validate_tags(new_tags) + + return error("#{_("Following tags don't exist")}: #{non_existing_tags}") if non_existing_tags.any? + end + + begin + timeline_event_saved = update_timeline_event_and_event_tags(new_tags) + rescue ActiveRecord::RecordInvalid + error_in_save(timeline_event) + end + + if timeline_event_saved add_system_note(timeline_event) track_usage_event(:incident_management_timeline_event_edited, user.id) @@ -36,7 +52,17 @@ module IncidentManagement private - attr_reader :timeline_event, :incident, :user, :note, :occurred_at, :validation_context + attr_reader :timeline_event, :incident, :user, :note, :occurred_at, :validation_context, :timeline_event_tags + + def update_timeline_event_and_event_tags(new_tags) + ApplicationRecord.transaction do + timeline_event.timeline_event_tags = new_tags unless timeline_event_tags.nil? + + timeline_event.assign_attributes(update_params) + + timeline_event.save!(context: validation_context) + end + end def update_params { updated_by_user: user, note: note, occurred_at: occurred_at }.compact @@ -61,6 +87,10 @@ module IncidentManagement :none end + def validate_tags(new_tags) + timeline_event_tags.map(&:downcase) - new_tags.map(&:name).map(&:downcase) + end + def allowed? user&.can?(:edit_incident_management_timeline_event, timeline_event) end diff --git a/app/workers/projects/inactive_projects_deletion_cron_worker.rb b/app/workers/projects/inactive_projects_deletion_cron_worker.rb index af62efeb089..31fdb3d9615 100644 --- a/app/workers/projects/inactive_projects_deletion_cron_worker.rb +++ b/app/workers/projects/inactive_projects_deletion_cron_worker.rb @@ -22,9 +22,9 @@ module Projects return unless ::Gitlab::CurrentSettings.delete_inactive_projects? @start_time ||= ::Gitlab::Metrics::System.monotonic_time - admin_user = User.admins.active.first + admin_bot = ::User.admin_bot - return unless admin_user + return unless admin_bot notified_inactive_projects = Gitlab::InactiveProjectsDeletionWarningTracker.notified_projects @@ -39,14 +39,14 @@ module Projects raise TimeoutError end - with_context(project: project, user: admin_user) do + with_context(project: project, user: admin_bot) do deletion_warning_email_sent_on = notified_inactive_projects["project:#{project.id}"] if send_deletion_warning_email?(deletion_warning_email_sent_on, project) - send_notification(project, admin_user) + send_notification(project, admin_bot) elsif deletion_warning_email_sent_on && delete_due_to_inactivity?(deletion_warning_email_sent_on) Gitlab::InactiveProjectsDeletionWarningTracker.new(project.id).reset - delete_project(project, admin_user) + delete_project(project, admin_bot) end end end diff --git a/doc/administration/inactive_project_deletion.md b/doc/administration/inactive_project_deletion.md index 88d8e3fc648..ea5658bef84 100644 --- a/doc/administration/inactive_project_deletion.md +++ b/doc/administration/inactive_project_deletion.md @@ -12,7 +12,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w Administrators of large GitLab instances can find that over time, projects become inactive and are no longer used. These projects take up unnecessary disk space. With inactive project deletion, you can identify these projects, warn the maintainers ahead of time, and then delete the projects if they remain inactive. When an inactive project is -deleted, the action generates an audit event that it was performed by the first active administrator. +deleted, the action generates an audit event that it was performed by the @GitLab-Admin-Bot. For the default setting on GitLab.com, see the [GitLab.com settings page](../user/gitlab_com/index.md#inactive-project-deletion). diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md index 2d2b1d7adcd..6bdb0cef560 100644 --- a/doc/api/graphql/reference/index.md +++ b/doc/api/graphql/reference/index.md @@ -5086,6 +5086,7 @@ Input type: `TimelineEventUpdateInput` | <a id="mutationtimelineeventupdateid"></a>`id` | [`IncidentManagementTimelineEventID!`](#incidentmanagementtimelineeventid) | ID of the timeline event to update. | | <a id="mutationtimelineeventupdatenote"></a>`note` | [`String`](#string) | Text note of the timeline event. | | <a id="mutationtimelineeventupdateoccurredat"></a>`occurredAt` | [`Time`](#time) | Timestamp when the event occurred. | +| <a id="mutationtimelineeventupdatetimelineeventtagnames"></a>`timelineEventTagNames` | [`[String!]`](#string) | Tags for the incident timeline event. | #### Fields diff --git a/doc/development/documentation/versions.md b/doc/development/documentation/versions.md index 030bdec0361..14a58452598 100644 --- a/doc/development/documentation/versions.md +++ b/doc/development/documentation/versions.md @@ -46,7 +46,7 @@ The item text must include these words in order. Capitalization doesn't matter. - `introduced`, `enabled`, `deprecated`, `changed`, `moved`, `recommended`, `removed`, or `renamed` - `in` or `to` -- `GitLab` +- `GitLab` (or, for external projects, the name of the project) If possible, include a link to the related issue, merge request, or epic. Do not link to the pricing page. Do not include the subscription tier. diff --git a/doc/user/application_security/secret_detection/index.md b/doc/user/application_security/secret_detection/index.md index 8a066cf1be1..08583f4bbf9 100644 --- a/doc/user/application_security/secret_detection/index.md +++ b/doc/user/application_security/secret_detection/index.md @@ -88,14 +88,22 @@ To enable Secret Detection, either: ### Enable Secret Detection by including the template -You should use this method if you have an existing GitLab CI/CD configuration file. +Use this method if you have an existing GitLab CI/CD configuration file. -Add the following extract to your `.gitlab-ci.yml` file: +1. On the top bar, select **Main menu > Projects** and find your project. +1. On the left sidebar, select **CI/CD > Editor**. +1. Copy and paste the following to the bottom of the `.gitlab-ci.yml` file: -```yaml -include: - - template: Jobs/Secret-Detection.gitlab-ci.yml -``` + ```yaml + include: + - template: Jobs/Secret-Detection.gitlab-ci.yml + ``` + +1. Select the **Validate** tab, then select **Validate pipeline**. + The message **Simulation completed successfully** indicates the file is valid. +1. Select the **Edit** tab. +1. Optional. In **Commit message**, customize the commit message. +1. Select **Commit changes**. Pipelines now include a Secret Detection job, and the results are included in the merge request widget. diff --git a/lib/assets/images/bot_avatars/admin-bot.png b/lib/assets/images/bot_avatars/admin-bot.png Binary files differnew file mode 100644 index 00000000000..8418676d9b1 --- /dev/null +++ b/lib/assets/images/bot_avatars/admin-bot.png diff --git a/lib/gitlab/http_connection_adapter.rb b/lib/gitlab/http_connection_adapter.rb index 7b1657d3854..3ef60be67a9 100644 --- a/lib/gitlab/http_connection_adapter.rb +++ b/lib/gitlab/http_connection_adapter.rb @@ -44,7 +44,8 @@ module Gitlab Gitlab::UrlBlocker.validate!(url, allow_local_network: allow_local_requests?, allow_localhost: allow_local_requests?, allow_object_storage: allow_object_storage?, - dns_rebind_protection: dns_rebind_protection?) + dns_rebind_protection: dns_rebind_protection?, + schemes: %w[http https]) rescue Gitlab::UrlBlocker::BlockedUrlError => e raise Gitlab::HTTP::BlockedUrlError, "URL '#{url}' is blocked: #{e.message}" end diff --git a/qa/qa/service/praefect_manager.rb b/qa/qa/service/praefect_manager.rb index c332e7a6198..42841e576f5 100644 --- a/qa/qa/service/praefect_manager.rb +++ b/qa/qa/service/praefect_manager.rb @@ -173,6 +173,8 @@ module QA raise PrometheusQueryError, "Unable to query read distribution metrics" unless result['status'] == 'success' + raise PrometheusQueryError, "No read distribution metrics found" if result['data']['result'].empty? + result['data']['result'].map { |result| { node: result['metric']['storage'], value: result['value'][1].to_i } } end diff --git a/spec/graphql/mutations/incident_management/timeline_event/update_spec.rb b/spec/graphql/mutations/incident_management/timeline_event/update_spec.rb index 7081fb7117e..317e8f5fcb6 100644 --- a/spec/graphql/mutations/incident_management/timeline_event/update_spec.rb +++ b/spec/graphql/mutations/incident_management/timeline_event/update_spec.rb @@ -7,21 +7,33 @@ RSpec.describe Mutations::IncidentManagement::TimelineEvent::Update do let_it_be(:reporter) { create(:user) } let_it_be(:project) { create(:project) } let_it_be(:incident) { create(:incident, project: project) } + let_it_be(:tag1) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 1') } + let_it_be(:tag2) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 2') } let_it_be_with_reload(:timeline_event) do create(:incident_management_timeline_event, project: project, incident: incident) end + # Pre-attach a tag to the event + let_it_be(:tag_link1) do + create(:incident_management_timeline_event_tag_link, + timeline_event: timeline_event, + timeline_event_tag: tag1 + ) + end + let(:args) do { id: timeline_event_id, note: note, - occurred_at: occurred_at + occurred_at: occurred_at, + timeline_event_tag_names: tag_names } end let(:note) { 'Updated Note' } let(:timeline_event_id) { GitlabSchema.id_from_object(timeline_event).to_s } let(:occurred_at) { 1.minute.ago } + let(:tag_names) { [] } before do project.add_developer(developer) @@ -92,6 +104,36 @@ RSpec.describe Mutations::IncidentManagement::TimelineEvent::Update do expect(resolve).to eq(timeline_event: nil, errors: ["Occurred at can't be blank"]) end end + + context 'when timeline event tag do not exist' do + let(:tag_names) { ['some other tag'] } + + it 'does not update the timeline event' do + expect { resolve }.not_to change { timeline_event.reload.updated_at } + end + + it 'responds with error' do + expect(resolve).to eq(timeline_event: nil, errors: ["Following tags don't exist: [\"some other tag\"]"]) + end + end + end + + context 'when timeline event tags are passed' do + let(:tag_names) { [tag2.name] } + + it 'returns updated timeline event' do + expect(resolve).to eq( + timeline_event: timeline_event.reload, + errors: [] + ) + end + + it 'removes tag1 and assigns tag2 to the event' do + response = resolve + timeline_event = response[:timeline_event] + + expect(timeline_event.timeline_event_tags).to contain_exactly(tag2) + end end end diff --git a/spec/lib/gitlab/http_connection_adapter_spec.rb b/spec/lib/gitlab/http_connection_adapter_spec.rb index a241a4b6490..5e2c6be8993 100644 --- a/spec/lib/gitlab/http_connection_adapter_spec.rb +++ b/spec/lib/gitlab/http_connection_adapter_spec.rb @@ -124,5 +124,16 @@ RSpec.describe Gitlab::HTTPConnectionAdapter do expect(connection.port).to eq(443) end end + + context 'when URL scheme is not HTTP/HTTPS' do + let(:uri) { URI('ssh://example.org') } + + it 'raises error' do + expect { subject }.to raise_error( + Gitlab::HTTP::BlockedUrlError, + "URL 'ssh://example.org' is blocked: Only allowed schemes are http, https" + ) + end + end end end diff --git a/spec/models/concerns/has_user_type_spec.rb b/spec/models/concerns/has_user_type_spec.rb index 3938257708e..964a35d4d39 100644 --- a/spec/models/concerns/has_user_type_spec.rb +++ b/spec/models/concerns/has_user_type_spec.rb @@ -5,7 +5,7 @@ require 'spec_helper' RSpec.describe User do specify 'types consistency checks', :aggregate_failures do expect(described_class::USER_TYPES.keys) - .to match_array(%w[human ghost alert_bot project_bot support_bot service_user security_bot visual_review_bot migration_bot automation_bot security_policy_bot]) + .to match_array(%w[human ghost alert_bot project_bot support_bot service_user security_bot visual_review_bot migration_bot automation_bot security_policy_bot admin_bot]) expect(described_class::USER_TYPES).to include(*described_class::BOT_USER_TYPES) expect(described_class::USER_TYPES).to include(*described_class::NON_INTERNAL_USER_TYPES) expect(described_class::USER_TYPES).to include(*described_class::INTERNAL_USER_TYPES) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 43541250904..021083dc918 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -6808,7 +6808,8 @@ RSpec.describe User do { user_type: :support_bot }, { user_type: :security_bot }, { user_type: :automation_bot }, - { user_type: :security_policy_bot } + { user_type: :security_policy_bot }, + { user_type: :admin_bot } ] end @@ -6896,6 +6897,7 @@ RSpec.describe User do 'security_bot' | false 'automation_bot' | false 'security_policy_bot' | false + 'admin_bot' | false end with_them do @@ -7045,18 +7047,26 @@ RSpec.describe User do it_behaves_like 'bot users', :ghost it_behaves_like 'bot users', :automation_bot it_behaves_like 'bot users', :security_policy_bot + it_behaves_like 'bot users', :admin_bot it_behaves_like 'bot user avatars', :alert_bot, 'alert-bot.png' it_behaves_like 'bot user avatars', :support_bot, 'support-bot.png' it_behaves_like 'bot user avatars', :security_bot, 'security-bot.png' it_behaves_like 'bot user avatars', :security_policy_bot, 'security-bot.png' it_behaves_like 'bot user avatars', :automation_bot, 'support-bot.png' + it_behaves_like 'bot user avatars', :admin_bot, 'admin-bot.png' context 'when bot is the support_bot' do subject { described_class.support_bot } it { is_expected.to be_confirmed } end + + context 'when bot is the admin bot' do + subject { described_class.admin_bot } + + it { is_expected.to be_admin } + end end describe '#confirmation_required_on_sign_in?' do diff --git a/spec/requests/api/graphql/mutations/incident_management/timeline_event/update_spec.rb b/spec/requests/api/graphql/mutations/incident_management/timeline_event/update_spec.rb index 542d51b990f..207dd55d527 100644 --- a/spec/requests/api/graphql/mutations/incident_management/timeline_event/update_spec.rb +++ b/spec/requests/api/graphql/mutations/incident_management/timeline_event/update_spec.rb @@ -8,18 +8,30 @@ RSpec.describe 'Updating an incident timeline event' do let_it_be(:user) { create(:user) } let_it_be(:project) { create(:project) } let_it_be(:incident) { create(:incident, project: project) } + let_it_be(:tag1) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 1') } + let_it_be(:tag2) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 2') } let_it_be_with_reload(:timeline_event) do create(:incident_management_timeline_event, incident: incident, project: project) end + # Pre-attach a tag to the event + let_it_be(:tag_link1) do + create(:incident_management_timeline_event_tag_link, + timeline_event: timeline_event, + timeline_event_tag: tag1 + ) + end + let(:occurred_at) { 1.minute.ago.iso8601 } let(:note) { 'Updated note' } + let(:tag_names) { [] } let(:variables) do { id: timeline_event.to_global_id.to_s, note: note, - occurred_at: occurred_at + occurred_at: occurred_at, + timeline_event_tag_names: tag_names } end @@ -33,6 +45,7 @@ RSpec.describe 'Updating an incident timeline event' do author { id username } updatedByUser { id username } incident { id title } + timelineEventTags { nodes { name } } note noteHtml occurredAt @@ -71,6 +84,9 @@ RSpec.describe 'Updating an incident timeline event' do 'id' => incident.to_global_id.to_s, 'title' => incident.title }, + 'timelineEventTags' => { + 'nodes' => [] + }, 'note' => note, 'noteHtml' => timeline_event.note_html, 'occurredAt' => occurred_at, @@ -85,4 +101,27 @@ RSpec.describe 'Updating an incident timeline event' do it_behaves_like 'timeline event mutation responds with validation error', error_message: 'Timeline text is too long (maximum is 280 characters)' end + + context 'when timeline event tag names are passed' do + context 'when tags exist' do + let(:tag_names) { [tag2.name] } + + it 'removes tag1 and adds tag2' do + post_graphql_mutation(mutation, current_user: user) + + timeline_event_response = mutation_response['timelineEvent'] + tag_names = timeline_event_response['timelineEventTags']['nodes'] + + expect(response).to have_gitlab_http_status(:success) + expect(tag_names).to contain_exactly({ "name" => tag2.name }) + end + end + + context 'when tags do not exist' do + let(:tag_names) { ['some other tag'] } + + it_behaves_like 'timeline event mutation responds with validation error', + error_message: "Following tags don't exist: [\"some other tag\"]" + end + end end diff --git a/spec/services/ci/track_failed_build_service_spec.rb b/spec/services/ci/track_failed_build_service_spec.rb index d83e56f0669..676769d2fc7 100644 --- a/spec/services/ci/track_failed_build_service_spec.rb +++ b/spec/services/ci/track_failed_build_service_spec.rb @@ -21,19 +21,22 @@ RSpec.describe Ci::TrackFailedBuildService do expect(response.success?).to be true + context = { + schema: described_class::SCHEMA_URL, + data: { + build_id: build.id, + build_name: build.name, + build_artifact_types: ["sast"], + exit_code: exit_code, + failure_reason: failure_reason, + project: project.id + } + } + expect_snowplow_event( category: 'ci::build', action: 'failed', - context: [{ - schema: described_class::SCHEMA_URL, - data: { - build_id: build.id, - build_name: build.name, - build_artifact_types: ["sast"], - exit_code: exit_code, - failure_reason: failure_reason - } - }], + context: [context], user: user, project: project.id) end diff --git a/spec/services/incident_management/timeline_events/update_service_spec.rb b/spec/services/incident_management/timeline_events/update_service_spec.rb index 2373a73e108..8ccc6ded6d0 100644 --- a/spec/services/incident_management/timeline_events/update_service_spec.rb +++ b/spec/services/incident_management/timeline_events/update_service_spec.rb @@ -6,6 +6,16 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do let_it_be(:user) { create(:user) } let_it_be(:project) { create(:project) } let_it_be(:incident) { create(:incident, project: project) } + let_it_be(:tag1) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 1') } + let_it_be(:tag2) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 2') } + let_it_be(:tag3) { create(:incident_management_timeline_event_tag, project: project, name: 'Tag 3') } + + let!(:tag_link1) do + create(:incident_management_timeline_event_tag_link, + timeline_event: timeline_event, + timeline_event_tag: tag3 + ) + end let!(:timeline_event) { create(:incident_management_timeline_event, project: project, incident: incident) } let(:occurred_at) { 1.minute.ago } @@ -13,6 +23,24 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do let(:current_user) { user } describe '#execute' do + shared_examples 'successful tag response' do + it_behaves_like 'successful response' + + it 'adds the new tag' do + expect { execute }.to change { timeline_event.timeline_event_tags.count }.by(1) + end + + it 'adds the new tag link' do + expect { execute }.to change { IncidentManagement::TimelineEventTagLink.count }.by(1) + end + + it 'returns the new tag in response' do + timeline_event = execute.payload[:timeline_event] + + expect(timeline_event.timeline_event_tags.pluck_names).to contain_exactly(tag1.name, tag3.name) + end + end + shared_examples 'successful response' do it 'responds with success', :aggregate_failures do expect(execute).to be_success @@ -67,7 +95,7 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do it_behaves_like 'passing the correct was_changed value', :occurred_at_and_note context 'when note is nil' do - let(:params) { { occurred_at: occurred_at } } + let(:params) { { occurred_at: occurred_at, timeline_event_tag_names: [tag3.name, tag2.name] } } it_behaves_like 'successful response' it_behaves_like 'passing the correct was_changed value', :occurred_at @@ -79,18 +107,30 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do it 'updates occurred_at' do expect { execute }.to change { timeline_event.occurred_at }.to(params[:occurred_at]) end + + it 'updates the tags' do + expect { execute }.to change { timeline_event.timeline_event_tags.count }.by(1) + end end context 'when note is blank' do - let(:params) { { note: '', occurred_at: occurred_at } } + let(:params) { { note: '', occurred_at: occurred_at, timeline_event_tag_names: [tag3.name, tag2.name] } } it_behaves_like 'error response', "Timeline text can't be blank" + + it 'does not add the tags as it rollsback the transaction' do + expect { execute }.not_to change { timeline_event.timeline_event_tags.count } + end end context 'when note is more than 280 characters long' do - let(:params) { { note: 'n' * 281, occurred_at: occurred_at } } + let(:params) { { note: 'n' * 281, occurred_at: occurred_at, timeline_event_tag_names: [tag3.name, tag2.name] } } it_behaves_like 'error response', 'Timeline text is too long (maximum is 280 characters)' + + it 'does not add the tags as it rollsback the transaction' do + expect { execute }.not_to change { timeline_event.timeline_event_tags.count } + end end context 'when occurred_at is nil' do @@ -109,9 +149,13 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do end context 'when occurred_at is blank' do - let(:params) { { note: 'Updated note', occurred_at: '' } } + let(:params) { { note: 'Updated note', occurred_at: '', timeline_event_tag_names: [tag3.name, tag2.name] } } it_behaves_like 'error response', "Occurred at can't be blank" + + it 'does not add the tags as it rollsback the transaction' do + expect { execute }.not_to change { timeline_event.timeline_event_tags.count } + end end context 'when both occurred_at and note is nil' do @@ -142,6 +186,90 @@ RSpec.describe IncidentManagement::TimelineEvents::UpdateService do it_behaves_like 'error response', 'You have insufficient permissions to manage timeline events for this incident' end + + context 'when timeline event tags are passed' do + context 'when they exist' do + let(:params) do + { + note: 'Updated note', + occurred_at: occurred_at, + timeline_event_tag_names: [tag3.name, tag1.name] + } + end + + it_behaves_like 'successful tag response' + + context 'when tag name is of random case' do + let(:params) do + { + note: 'Updated note', + occurred_at: occurred_at, + timeline_event_tag_names: ['tAg 3', 'TaG 1'] + } + end + + it_behaves_like 'successful tag response' + end + + context 'when tag is removed' do + let(:params) { { note: 'Updated note', occurred_at: occurred_at, timeline_event_tag_names: [tag2.name] } } + + it_behaves_like 'successful response' + + it 'adds the new tag and removes the old tag' do + # Since it adds a tag (+1) and removes old tag (-1) so next change in count in 0 + expect { execute }.to change { timeline_event.timeline_event_tags.count }.by(0) + end + + it 'adds the new tag link and removes the old tag link' do + # Since it adds a tag link (+1) and removes old tag link (-1) so next change in count in 0 + expect { execute }.to change { IncidentManagement::TimelineEventTagLink.count }.by(0) + end + + it 'returns the new tag and does not contain the old tag in response' do + timeline_event = execute.payload[:timeline_event] + + expect(timeline_event.timeline_event_tags.pluck_names).to contain_exactly(tag2.name) + end + end + + context 'when all assigned tags are removed' do + let(:params) { { note: 'Updated note', occurred_at: occurred_at, timeline_event_tag_names: [] } } + + it_behaves_like 'successful response' + + it 'removes all the assigned tags' do + expect { execute }.to change { timeline_event.timeline_event_tags.count }.by(-1) + end + + it 'removes all the assigned tag links' do + expect { execute }.to change { IncidentManagement::TimelineEventTagLink.count }.by(-1) + end + + it 'does not contain any tags in response' do + timeline_event = execute.payload[:timeline_event] + + expect(timeline_event.timeline_event_tags.pluck_names).to be_empty + end + end + end + + context 'when they do not exist' do + let(:params) do + { + note: 'Updated note 2', + occurred_at: occurred_at, + timeline_event_tag_names: ['non existing tag'] + } + end + + it_behaves_like 'error response', "Following tags don't exist: [\"non existing tag\"]" + + it 'does not update the note' do + expect { execute }.not_to change { timeline_event.reload.note } + end + end + end end context 'when user does not have permissions' do diff --git a/spec/workers/projects/inactive_projects_deletion_cron_worker_spec.rb b/spec/workers/projects/inactive_projects_deletion_cron_worker_spec.rb index 50b5b0a6e7b..f3c6434dc85 100644 --- a/spec/workers/projects/inactive_projects_deletion_cron_worker_spec.rb +++ b/spec/workers/projects/inactive_projects_deletion_cron_worker_spec.rb @@ -36,7 +36,7 @@ RSpec.describe Projects::InactiveProjectsDeletionCronWorker do describe "#perform" do subject(:worker) { described_class.new } - let_it_be(:admin_user) { create(:user, :admin) } + let_it_be(:admin_bot) { create(:user, :admin_bot) } let_it_be(:non_admin_user) { create(:user) } let_it_be(:new_blank_project) do create_project_with_statistics.tap do |project| @@ -121,7 +121,7 @@ RSpec.describe Projects::InactiveProjectsDeletionCronWorker do end expect(::Projects::InactiveProjectsDeletionNotificationWorker).not_to receive(:perform_async) - expect(::Projects::DestroyService).to receive(:new).with(inactive_large_project, admin_user, {}) + expect(::Projects::DestroyService).to receive(:new).with(inactive_large_project, admin_bot, {}) .at_least(:once).and_call_original worker.perform |