Skip to content

Fix CodeReuse/ActiveRecord offenses in workers

Thong Kuah requested to merge fix_ar_cop_in_workers into master

What does this MR do and why?

Fix CodeReuse/ActiveRecord offenses in workers

Use the allowed find_by_id method instead of find_by(id: 1).

Fixed with:

git grep -l 'find_by(id:' app/workers ee/app/workers/ | xargs sed -i "" 's/find_by(id: /find_by_id(/g'


git moc | xargs sed -i "" -E '/^[[:space:]]+\# rubocop: enable/d'
git moc | xargs sed -i "" -E '/^[[:space:]]+\# rubocop: disable/d'

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Thong Kuah

Merge request reports

Loading