Skip to content

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

Rémy Coutable requested to merge 18765-stub_env_in_specs into master

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