Match namespaced factories in Migration/EnsureFactoryForTable Cop
Before this change we only matched tables against their file name e.g. ```ruby create_table :projects_branch_rules_squash_options do ``` Would require a factory stored in: `spec/factories/projects_branch_rules_squash_options.rb` However, we often use namespacing to retain some structure within the codebase. This change allows us to specify a factory in: `spec/factories/projects/branch_rules/squash_options.rb`
显示
- .rubocop_todo/migration/ensure_factory_for_table.yml 0 个添加, 14 个删除.rubocop_todo/migration/ensure_factory_for_table.yml
- db/migrate/20240515022318_create_duo_workflows_tables.rb 1 个添加, 1 个删除db/migrate/20240515022318_create_duo_workflows_tables.rb
- db/migrate/20240626125526_create_dependency_list_export_parts_table.rb 0 个添加, 2 个删除...240626125526_create_dependency_list_export_parts_table.rb
- db/migrate/20240809134250_create_p_ci_build_trace_metadata.rb 0 个添加, 2 个删除...igrate/20240809134250_create_p_ci_build_trace_metadata.rb
- db/migrate/20240829143538_create_system_access_instance_microsoft_applications.rb 0 个添加, 3 个删除...8_create_system_access_instance_microsoft_applications.rb
- db/migrate/20240829143654_create_system_access_instance_microsoft_graph_access_tokens.rb 0 个添加, 3 个删除...e_system_access_instance_microsoft_graph_access_tokens.rb
- db/migrate/20240829163210_create_instance_integrations_table.rb 1 个添加, 1 个删除...rate/20240829163210_create_instance_integrations_table.rb
- db/migrate/20240829205910_create_ci_job_artifact_reports.rb 1 个添加, 1 个删除db/migrate/20240829205910_create_ci_job_artifact_reports.rb
- db/migrate/20240902100524_create_packages_conan_recipe_revisions.rb 1 个添加, 1 个删除.../20240902100524_create_packages_conan_recipe_revisions.rb
- db/migrate/20240906134338_create_packages_conan_package_references.rb 1 个添加, 1 个删除...0240906134338_create_packages_conan_package_references.rb
- db/migrate/20240910132920_create_ci_job_token_authorizations.rb 1 个添加, 1 个删除...rate/20240910132920_create_ci_job_token_authorizations.rb
- db/migrate/20241106114853_create_system_access_group_microsoft_applications.rb 1 个添加, 1 个删除...4853_create_system_access_group_microsoft_applications.rb
- db/migrate/20241106115015_create_system_access_group_microsoft_graph_access_tokens.rb 1 个添加, 1 个删除...eate_system_access_group_microsoft_graph_access_tokens.rb
- rubocop/cop/migration/ensure_factory_for_table.rb 6 个添加, 5 个删除rubocop/cop/migration/ensure_factory_for_table.rb
- spec/rubocop/cop/migration/ensure_factory_for_table_spec.rb 39 个添加, 8 个删除spec/rubocop/cop/migration/ensure_factory_for_table_spec.rb
想要评论请 注册 或 登录