From 653e60367900815a3d4ab0a303878db8987e1480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 7 Aug 2026 14:00:46 -0400 Subject: [PATCH] Enable Style/RedundantFreeze cop This cop checks usages of Object#freeze on immutable objects. --- dev.yml | 5 +++++ rubocop.yml | 3 --- test/fixtures/full_config.yml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dev.yml b/dev.yml index b37cade2..96327e43 100644 --- a/dev.yml +++ b/dev.yml @@ -5,3 +5,8 @@ up: - bundler test: bundle exec rake + +commands: + dump-config: + description: Dump the full RuboCop config as a YAML file for testing + run: bundle exec rake config:dump diff --git a/rubocop.yml b/rubocop.yml index bc9d919b..9106c728 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -1196,9 +1196,6 @@ Style/RedundantFilterChain: Style/RedundantFormat: Enabled: false -Style/RedundantFreeze: - Enabled: false - Style/RedundantHeredocDelimiterQuotes: Enabled: false diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index 4d4190a3..45fefb8f 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -4166,7 +4166,7 @@ Style/RedundantFormat: VersionChanged: '1.72' Style/RedundantFreeze: Description: Checks usages of Object#freeze on immutable objects. - Enabled: false + Enabled: true VersionAdded: '0.34' VersionChanged: '0.66' Style/RedundantHeredocDelimiterQuotes: