Cop to disallow methods that use subtransactions
Add a new cop that disallows common methods that use subtransactions within their implementation: safe_ensure_unique and create_or_find_by variants.
上级
13646226
No related branches found
No related tags found
显示
- .rubocop.yml 5 个添加, 0 个删除.rubocop.yml
- app/controllers/clusters/clusters_controller.rb 1 个添加, 1 个删除app/controllers/clusters/clusters_controller.rb
- app/models/application_record.rb 1 个添加, 1 个删除app/models/application_record.rb
- app/models/concerns/cache_markdown_field.rb 1 个添加, 1 个删除app/models/concerns/cache_markdown_field.rb
- app/models/external_pull_request.rb 1 个添加, 1 个删除app/models/external_pull_request.rb
- app/services/merge_requests/approval_service.rb 1 个添加, 1 个删除app/services/merge_requests/approval_service.rb
- app/services/terraform/remote_state_handler.rb 1 个添加, 1 个删除app/services/terraform/remote_state_handler.rb
- ee/lib/ee/gitlab/background_migration/migrate_approver_to_approval_rules.rb 1 个添加, 1 个删除...ackground_migration/migrate_approver_to_approval_rules.rb
- rubocop/cop/performance/active_record_subtransaction_methods.rb 26 个添加, 0 个删除...p/cop/performance/active_record_subtransaction_methods.rb
- spec/rubocop/cop/performance/active_record_subtransaction_methods_spec.rb 25 个添加, 0 个删除.../performance/active_record_subtransaction_methods_spec.rb
加载中
想要评论请 注册 或 登录