Activate RuboCop manual todos if envvar REVEAL_RUBOCOP_TODO is set
What does this MR do?
This MR enables developers to activate all RuboCop todos (or undo all Exclude
s) from .rubocop_manual_todo.yml
by setting the environment variable REVEAL_RUBOCOP_TODO
.
Example: REVEAL_RUBOCOP_TODO=1 bundle exec rubocop <file>
Why?
It seems we keep adding new RuboCop offenses for all Exclude
d files without notice. UnExclude
ing offenses in local environment could encourage them to fix Exclude
d offense incrementally during day-to-day work.
Refs !52922 (comment 499726694).
Screenshots (strongly suggested)
Before | After |
---|---|
Does this MR meet the acceptance criteria?
Conformity
Edited by Peter Leitzen