Cleanup Rubocop offenses
What does this MR do and why?
Second part of Rubocop cleanup. Follows !122739 (diffs)
No user facing changes here, only Rubocop fixes.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #239356