Skip to content

Fix Rubocop Rails/InverseOf violations in CI namespace

Tan Le requested to merge tle-fix-rubocop-inverse-of-c into master

What does this MR do and why?

Fix Rubocop Rails/InverseOf violations.

This change will hint Rails to use already loaded data instead of fetching it again through a relationship.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Run the following command to generate existing violations
    rake rubocop:todo:generate[Rails/InverseOf]
  2. Confirm that there are no additional change to the .rubocop_todo/rails/inverse_of.yml

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 Tan Le

Merge request reports

Loading