Style/RedundantFreeze: Fix offenses in rubocop, qa, tooling
What does this MR do and why?
This MR fixes some offenses for Style/RedundantFreeze
.
Regexp
andRange
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

MR train

-
Style/RedundantFreeze: Fix offenses in rubocop,... (!126506 - merged)
YOU ARE HERE - Style/RedundantFreeze: Fix offenses in EE (!126508 - merged)
- Style/RedundantFreeze: Fix offenses in app/ (!126510 - closed)
- Style/RedundantFreeze: Fix offenses in lib/gitl... (!126513 - closed)
- Style/RedundantFreeze: Fix offenses in lib/[a-f... (!126516 - closed)
- Style/RedundantFreeze: Fix offenses in lib (!126519 - closed)
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Peter Leitzen
Merge request reports
Activity
Please register or sign in to reply