Skip to content
Snippets Groups Projects

Style/RedundantFreeze: Fix offenses in rubocop, qa, tooling

Merged Peter Leitzen requested to merge pl-rubocop-fix-style-redundant-freeze-1 into master

What does this MR do and why?

This MR fixes some offenses for :rubocop: Style/RedundantFreeze.

Regexp and Range literals are frozen objects since Ruby 3.0.

From Ruby 3.0, this cop allows explicit freezing of interpolated string literals when # frozen-string-literal: true is used.

Auto-corrected via:

rubocop -a --only Style/RedundantFreeze rubocop scripts spec tooling qa

:train: MR train

How to set up and validate locally

REVEAL_RUBOCOP_TODO=1 rubocop --only Style/RedundantFreeze rubocop scripts spec tooling qa

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 Peter Leitzen

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading