Resolve "Add a 'custom cop' to RuboCop that bans ENV assignment"

What does this MR do?

This adds a new RSpec::EnvAssignment that forbids calling ENV#[]= in specs and autocorrects to use stub_env instead.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #18765 (closed)

Edited by Rémy Coutable

Merge request reports

Loading