Fix various RuboCop and JetBrains linter errors
What does this MR do and why?
- Fix various RuboCop and JetBrains linter errors
- Add some missing files to the Remote Dev smoke test script's rubocop step.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.