Add cop to avoid find in Sidekiq workers
This commit adds a new RuboCop rule `Gitlab/NoFindInWorkers` to prevent
the use of `.find` in workers. It also enabled "grace period" and generated TODOs.
Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
显示
- .rubocop.yml 6 个添加, 0 个删除.rubocop.yml
- .rubocop_todo/gitlab/no_find_in_workers.yml 100 个添加, 0 个删除.rubocop_todo/gitlab/no_find_in_workers.yml
- ee/app/workers/llm/completion_worker.rb 2 个添加, 0 个删除ee/app/workers/llm/completion_worker.rb
- gems/config/rubocop.yml 4 个添加, 0 个删除gems/config/rubocop.yml
- rubocop/cop/gitlab/no_find_in_workers.rb 43 个添加, 0 个删除rubocop/cop/gitlab/no_find_in_workers.rb
- spec/rubocop/cop/gitlab/no_find_in_workers_spec.rb 36 个添加, 0 个删除spec/rubocop/cop/gitlab/no_find_in_workers_spec.rb
加载中
想要评论请 注册 或 登录