Skip to content

Activate RuboCop manual todos if envvar REVEAL_RUBOCOP_TODO is set

Peter Leitzen requested to merge pl-rubocop-enable-todos into master

What does this MR do?

This MR enables developers to activate all RuboCop todos (or undo all Excludes) 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 Excluded files without notice. UnExcludeing offenses in local environment could encourage them to fix Excluded offense incrementally during day-to-day work.

Refs !52922 (comment 499726694).

Screenshots (strongly suggested)

Before After
Screenshot_from_2021-02-02_18-19-57 Screenshot_from_2021-02-18_10-49-29

Does this MR meet the acceptance criteria?

Conformity

Edited by Peter Leitzen

Merge request reports