From 2ede129d56ceff5e785855c1065d0b90043e5ad8 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sat, 26 Sep 2026 09:19:48 -0700 Subject: [PATCH] Enable Style/FrozenStringLiteralComment Remove the `Style/FrozenStringLiteralComment: Enabled: false` entry from .rubocop.yml so the cop runs with its default EnforcedStyle (always). Every file RuboCop inspects already starts with `# frozen_string_literal: true`, so no pragmas needed adding and no mutation fixes were required. The cop now keeps new files from dropping the pragma. The string-mutation sites that remain were reviewed and are safe: - `msg <<` in Api.print_env and PrintEnvTool.call appends to interpolated heredocs, which are not frozen on Ruby >= 3.0 (the gem requires >= 3.3). - BaseView#say appends to an explicit `+''` buffer. --- .rubocop.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index fb38f87..bd23d84 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -41,9 +41,6 @@ Style/Documentation: Style/SignalException: Enabled: false -Style/FrozenStringLiteralComment: - Enabled: false - Style/MultilineBlockChain: Enabled: false